public class StreamInfo
extends java.lang.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,
java.lang.String name,
StreamInfo.StreamingType streamingType,
java.lang.String contentType,
java.lang.String kmsKeyId,
long retentionPeriod,
boolean adaptive,
long maxLatency,
long fragmentDuration,
boolean keyFrameFragmentation,
boolean frameTimecodes,
boolean absoluteFragmentTimes,
boolean fragmentAcks,
boolean recoverOnError,
java.lang.String codecId,
java.lang.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 java.lang.String |
codecIdFromContentType(java.lang.String contentType) |
static java.lang.String |
createTrackName(java.lang.String contentType)
Generates a track name from a content type
|
int |
getAvgBandwidthBps() |
long |
getBufferDuration() |
java.lang.String |
getCodecId() |
byte[] |
getCodecPrivateData() |
long |
getConnectionStalenessDuration() |
java.lang.String |
getContentType() |
long |
getFragmentDuration() |
int |
getFrameRate() |
java.lang.String |
getKmsKeyId() |
long |
getMaxLatency() |
int |
getNalAdaptationFlags() |
java.lang.String |
getName() |
long |
getReplayDuration() |
long |
getRetentionPeriod() |
int |
getStreamingType() |
Tag[] |
getTags() |
long |
getTimecodeScale() |
java.lang.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, java.lang.String name, StreamInfo.StreamingType streamingType, java.lang.String contentType, java.lang.String kmsKeyId, long retentionPeriod, boolean adaptive, long maxLatency, long fragmentDuration, boolean keyFrameFragmentation, boolean frameTimecodes, boolean absoluteFragmentTimes, boolean fragmentAcks, boolean recoverOnError, java.lang.String codecId, java.lang.String trackName, int avgBandwidthBps, int frameRate, long bufferDuration, long replayDuration, long connectionStalenessDuration, long timecodeScale, boolean recalculateMetrics, byte[] codecPrivateData, Tag[] tags, StreamInfo.NalAdaptationFlags nalAdaptationFlags)
public static java.lang.String createTrackName(java.lang.String contentType)
contentType
- Content typepublic static java.lang.String codecIdFromContentType(java.lang.String contentType) throws KinesisVideoException
KinesisVideoException
public int getVersion()
public java.lang.String getName()
public int getStreamingType()
public java.lang.String getContentType()
public java.lang.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()
public java.lang.String getCodecId()
public java.lang.String getTrackName()
public int getAvgBandwidthBps()
public int getFrameRate()
public long getBufferDuration()
public long getReplayDuration()
public long getConnectionStalenessDuration()
public long getTimecodeScale()
public boolean isRecalculateMetrics()
public byte[] getCodecPrivateData()
public Tag[] getTags()
public int getNalAdaptationFlags()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.