Skip to content

Commit

Permalink
Bug fix for broken MKV generated due to difference between trackInfoT…
Browse files Browse the repository at this point in the history
…ype in Java and C layer.
  • Loading branch information
chehefen committed Feb 21, 2019
1 parent b08c91e commit 8d7faf7
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ export LD_LIBRARY_PATH=/<YOUR_PRODUCER_SDK_CPP_DOWNLOAD>/amazon-kinesis-video-st
This should resolve native library loading issues.

## Release Notes
### Release 1.9.2 (21 Feburary 2019)
* Bug fix for broken MKV generated due to difference between trackInfoType in Java and C layer.

### Release 1.9.1 (19 Feburary 2019)
* Bug fix for credentials not rotating issue when given credentials expire in less than 40 minutes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import static com.amazonaws.kinesisvideo.util.StreamInfoConstants.RETENTION_ONE_HOUR;
import static com.amazonaws.kinesisvideo.util.StreamInfoConstants.USE_FRAME_TIMECODES;
import static com.amazonaws.kinesisvideo.util.StreamInfoConstants.VERSION_ZERO;
import static com.amazonaws.kinesisvideo.util.StreamInfoConstants.VIDEO_CODEC_ID;
import static com.amazonaws.kinesisvideo.util.StreamInfoConstants.VIDEO_CONTENT_TYPE;

import javax.annotation.Nonnull;
Expand Down Expand Up @@ -97,7 +98,7 @@ public StreamInfo getStreamInfo() {
RELATIVE_TIMECODES,
REQUEST_FRAGMENT_ACKS,
RECOVER_ON_FAILURE,
VIDEO_CONTENT_TYPE,
VIDEO_CODEC_ID,
"test-track",
DEFAULT_BITRATE,
imageFileMediaSourceConfiguration.getFps(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.amazonaws.kinesisvideo.producer;

/* IMPORTANT!!! Make sure the values in this file correspond to their native counterparts in MKV_TRACK_INFO_TYPE
stucture from amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-pic/src/mkvgen/include/com/amazonaws/kinesis/video/mkvgen/Include.h */
public enum MkvTrackInfoType {
VIDEO(0), AUDIO(1), UNKNOWN(-1);
VIDEO(1), AUDIO(2), UNKNOWN(3);
private final int mValue;

public static final int getStatusCode(String status) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public final class VersionUtil {

public static final String AWS_SDK_KVS_PRODUCER_VERSION_STRING = "1.9.1";
public static final String AWS_SDK_KVS_PRODUCER_VERSION_STRING = "1.9.2";

private static final String DEFAULT_USER_AGENT_NAME = "AWS-SDK-KVS";

Expand Down

0 comments on commit 8d7faf7

Please sign in to comment.