StartSelector class
Identifies the chunk on the Kinesis video stream where you want the
GetMedia API to start returning media data. You have the
following options to identify the starting chunk:
- Choose the latest (or oldest) chunk.
- Identify a specific chunk. You can identify a specific chunk either by providing a fragment number or timestamp (server or producer).
-
Each chunk's metadata includes a continuation token as a Matroska (MKV) tag
(
AWS_KINESISVIDEO_CONTINUATION_TOKEN). If your previousGetMediarequest terminated, you can use this tag value in your nextGetMediarequest. The API then starts returning chunks starting where the last API ended.
Constructors
- StartSelector({required StartSelectorType startSelectorType, String? afterFragmentNumber, String? continuationToken, DateTime? startTimestamp})
Properties
- afterFragmentNumber → String?
-
Specifies the fragment number from where you want the
GetMediaAPI to start returning the fragments.final - continuationToken → String?
-
Continuation token that Kinesis Video Streams returned in the previous
GetMediaresponse. TheGetMediaAPI then starts with the chunk identified by the continuation token.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startSelectorType → StartSelectorType
-
Identifies the fragment on the Kinesis video stream where you want to start
getting the data from.
final
- startTimestamp → DateTime?
-
A timestamp value. This value is required if you choose the
PRODUCER_TIMESTAMP or the SERVER_TIMESTAMP as the
startSelectorType. TheGetMediaAPI then starts with the chunk containing the fragment that has the specified timestamp.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited