public class StreamInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamInfo.NalAdaptationFlags
NAL adaptation types enum.
|
static class |
StreamInfo.StreamingType
Streaming types that must correspond to the native counterparts
|
| Modifier and Type | Field and Description |
|---|---|
static int |
STREAM_INFO_CURRENT_VERSION
StreamInfo structure current version.
|
| Constructor and Description |
|---|
StreamInfo(int version,
String name,
StreamInfo.StreamingType streamingType,
String contentType,
String kmsKeyId,
long retentionPeriod,
boolean adaptive,
long maxLatency,
long fragmentDuration,
boolean keyFrameFragmentation,
boolean frameTimecodes,
boolean absoluteFragmentTimes,
boolean fragmentAcks,
boolean recoverOnError,
String codecId,
String trackName,
int avgBandwidthBps,
int frameRate,
long bufferDuration,
long replayDuration,
long connectionStalenessDuration,
long timecodeScale,
boolean recalculateMetrics,
byte[] codecPrivateData,
Tag[] tags,
StreamInfo.NalAdaptationFlags nalAdaptationFlags) |
| Modifier and Type | Method and Description |
|---|---|
static String |
codecIdFromContentType(String contentType) |
static String |
createTrackName(String contentType)
Generates a track name from a content type
|
int |
getAvgBandwidthBps() |
long |
getBufferDuration() |
String |
getCodecId() |
byte[] |
getCodecPrivateData() |
long |
getConnectionStalenessDuration() |
String |
getContentType() |
long |
getFragmentDuration() |
int |
getFrameRate() |
String |
getKmsKeyId() |
long |
getMaxLatency() |
int |
getNalAdaptationFlags() |
String |
getName() |
long |
getReplayDuration() |
long |
getRetentionPeriod() |
int |
getStreamingType() |
Tag[] |
getTags() |
long |
getTimecodeScale() |
String |
getTrackName() |
int |
getVersion() |
boolean |
isAbsoluteFragmentTimes() |
boolean |
isAdaptive() |
boolean |
isFragmentAcks() |
boolean |
isFrameTimecodes() |
boolean |
isKeyFrameFragmentation() |
boolean |
isRecalculateMetrics() |
boolean |
isRecoverOnError() |
public static final int STREAM_INFO_CURRENT_VERSION
public StreamInfo(int version,
@Nullable
String name,
@NonNull
StreamInfo.StreamingType streamingType,
@NonNull
String contentType,
@Nullable
String kmsKeyId,
long retentionPeriod,
boolean adaptive,
long maxLatency,
long fragmentDuration,
boolean keyFrameFragmentation,
boolean frameTimecodes,
boolean absoluteFragmentTimes,
boolean fragmentAcks,
boolean recoverOnError,
@Nullable
String codecId,
@Nullable
String trackName,
int avgBandwidthBps,
int frameRate,
long bufferDuration,
long replayDuration,
long connectionStalenessDuration,
long timecodeScale,
boolean recalculateMetrics,
@Nullable
byte[] codecPrivateData,
@Nullable
Tag[] tags,
@NonNull
StreamInfo.NalAdaptationFlags nalAdaptationFlags)
@NonNull public static String createTrackName(@NonNull String contentType)
contentType - Content type@NonNull public static String codecIdFromContentType(@NonNull String contentType) throws KinesisVideoException
KinesisVideoExceptionpublic int getVersion()
@Nullable public String getName()
public int getStreamingType()
@NonNull public String getContentType()
@Nullable public String getKmsKeyId()
public long getRetentionPeriod()
public boolean isAdaptive()
public long getMaxLatency()
public long getFragmentDuration()
public boolean isKeyFrameFragmentation()
public boolean isFrameTimecodes()
public boolean isAbsoluteFragmentTimes()
public boolean isFragmentAcks()
public boolean isRecoverOnError()
@Nullable public String getCodecId()
@Nullable public String getTrackName()
public int getAvgBandwidthBps()
public int getFrameRate()
public long getBufferDuration()
public long getReplayDuration()
public long getConnectionStalenessDuration()
public long getTimecodeScale()
public boolean isRecalculateMetrics()
@Nullable public byte[] getCodecPrivateData()
@Nullable public Tag[] getTags()
@NonNull public int getNalAdaptationFlags()
Copyright © 2019. All rights reserved.