MediaPlayerItem methods for accessing MediaResource information
The methods in the MediaPlayerItem class allow you to obtain information about the content stream represented by a loaded MediaResource.
List <String> getAdTags()
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.
List <DRMMetadataInfo> getDRMMetadataInfos();
Lists all the DRM metadata objects discovered in the manifest.
True if closed-caption tracks are available.
List <ClosedCaptionsTrack> getClosedCationsTracks();
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. Note: 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.
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.
List <TimedMetadata> getTimedMetadata();
Provides a list of the timed metadata objects associated with the stream.
Multiple profiles (bit rates)
True if the stream is a multiple bit rate (MBR) stream.
List <Profile> getProfiles();
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.
Retrieves the currently selected 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.
Retrieves the currently selected playback rate.
Returns the MediaPlayerItemConfig instance associated with this item.
Returns the media resource associated with this item.
Returns the media identifier associated with this item. This ID is set when the item is loaded using MediaPlayerItemLoader.load .