Data object MediaInfo
interface struct MediaInfo
This type provides information about the currently selected media.
The information includes its identification, available tracks, duration,
and other.
Fields
id
This uniquely identifies the currently selected media.com.amazon.kepler.media.types.MediaId*— Required
hasVideo
bool — Required
Indicates if the currently selected media includes video content.
availableAudioTracks
The audio tracks available for the currently selected media. The array of tracks may be empty if the selected media only contains video but no audio. When the selected media contains audio, this should contain at minimum one track entry.Track*[]— Required
availableTextTracks
The text (captions, subtitles) tracks available for the currently selected media. This array can be empty.Track*[]— Required
duration
The total duration of the selected media. The duration is optional as this may represent a live stream or simply not available.com.amazon.apmf.MonotonicDuration?— Optional
startTime
The time when the selected media started or is scheduled to start. This can be used to identify the starting time for a live stream for example.com.amazon.apmf.RealTimeInstant?— Optional
seekRangeStart
The start of the seekable range within the selected media where 0 indicates the start of the media. This defines how far back the media can be seeked to.com.amazon.apmf.MonotonicDuration?— Optional
seekRangeEnd
The end of the seekable range within the selected media where 0 indicates the start of the media. This defines how close to the live edge in a live stream can be seeked to. For media with a known duration, this can be used to indicate it can only be seek this far, perhaps because of limited buffering.com.amazon.apmf.MonotonicDuration?— Optional
activeAudioTrack
The currently active audio track. This supports dynamic changes in audio track language selection during playback. When set to null, this indicates audio is currently not being played.Track?— Optional
activeTextTrack
The currently active text track. This supports dynamic changes in subtitle or caption selection during playback. When set to null, this indicates text/subtitles/captions are currently disabled.Track?— Optional
currentRating
float? — Optional
The current rating of the selected media.
The possible values are advertised through [Capabilities#ratings].
This can be null if no rating has been provided or the media cannot be rated.
