Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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

com.amazon.kepler.media.types.MediaId* — Required
This uniquely identifies the currently selected media.

hasVideo

bool — Required
Indicates if the currently selected media includes video content.

availableAudioTracks

Track*[] — Required
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.

availableTextTracks

Track*[] — Required
The text (captions, subtitles) tracks available for the currently selected media. This array can be empty.

duration

com.amazon.apmf.MonotonicDuration? — Optional
The total duration of the selected media. The duration is optional as this may represent a live stream or simply not available.

startTime

com.amazon.apmf.RealTimeInstant? — Optional
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.

seekRangeStart

com.amazon.apmf.MonotonicDuration? — Optional
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.

seekRangeEnd

com.amazon.apmf.MonotonicDuration? — Optional
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.

activeAudioTrack

Track? — Optional
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.

activeTextTrack

Track? — Optional
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.

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.
Last modified on October 29, 2026