The methods in the MediaPlayerItem class allow you to obtain information about the content stream represented by a loaded MediaResource.
Provides the list of ad tags that are used for the ad placement process.
True if the stream is live; false if it is VOD.
True if the stream is DRM protected.
Lists all the DRM metadata objects discovered in the manifest.
True if closed-caption tracks are available.
Provides a list of available closed-caption tracks.
|ClosedCaptionsTrack get SelectedClosedCaptionsTrack();||
Retrieves the current closed caption track selected with SelectClosedCaptionsTrack .
|selectClosedCaptionsTrack ( ClosedCaptionsTrack closedCaptionsTrack)||
Sets a closed-caption track to be the current closed-caption track.
|Alternate audio tracks|
True if the stream has alternate audio tracks.
Tip: The main (default) audio track is also part of the alternate audio track list.
TVSDK for Android considers the main audio track to be one of the items in the alternate audio track list. Because of this, the only case where MediaPlayerItem.hasAlternateAudio returns false is when the stream has no audio at all. If the content has only one audio track, this method returns true, and MediaPlayerItem.getAudioTracks returns a list with a single element (the default audio track).
|List<AudioTrack> getAudioTracks();||Provides a list of available alternate audio tracks.|
Provides a list of available alternate audio tracks.
Retrieves the audio track selected with selectAudioTrack .
|selectAudioTrack ( AudioTrack audioTrack )||
Selects an audio track to be the current audio track.
True if the stream has associated timed metadata.
Provides a list of the timed metadata objects associated with the stream.
True if the stream is a multiple bit rate (MBR) stream.
Provides a list of the associated bit rate profiles. For each profile, you can retrieve its bit rate and the height and width of the profile.
True if the player supports fast forward, rewind, and resume.
|List< Float> getAvailablePlaybackRates||
Provides the list of available playback rates in the context of the trick-play feature.
Returns the media resource associated with this item.