|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MediaPlayerItem
Media player item is an interface to represent audio-video media. Once a media resource is processed by the media player, its characteristics become available through media player item. The developer can select the desired alternate audio or closed captioning track.
Method Summary | |
---|---|
List<String> |
getAdTags()
Provides the list of ad tags, used for the ad placement process. |
List<AudioTrack> |
getAudioTracks()
Provides the list of currently available audio tracks. |
List<Integer> |
getAvailableSpeeds()
Provides the list of available "speeds" in the context of the "trick-play" feature. |
List<ClosedCaptionsTrack> |
getClosedCaptionsTracks()
Provides the list of currently available closed captions tracks. |
List<DRMMetadataInfo> |
getDRMMetadataInfos()
A list of all the DRM metadata objects discovered in the manifest. |
List<Profile> |
getProfiles()
Provides the list of currently available bit-rates profiles for the current playback window. |
MediaResource |
getResource()
Returns the media resource associated with this item. |
AudioTrack |
getSelectedAudioTrack()
Returns the currently selected alternate audio track. |
ClosedCaptionsTrack |
getSelectedClosedCaptionsTrack()
Returns the currently selected closed caption track. |
List<TimedMetadata> |
getTimedMetadata()
Provides the list of currently available timed metadata for the current playback window. |
boolean |
hasAlternateAudio()
Flag indicating that the media has alternate audio tracks. |
boolean |
hasClosedCaptions()
Flag indicating that the media has alternate closed captions tracks. |
boolean |
hasTimedMetadata()
Flag indicating that the media has timed metadata. |
boolean |
isDynamic()
Flag indicating that the media has multiple bit-rate profiles. |
boolean |
isLive()
Flag indicating if the stream is live or not. |
boolean |
isProtected()
Flag indicating that the media is protected through the DRM module. |
boolean |
isTrickPlaySupported()
Flag indicating that whether the "trick-play" feature is supported. |
boolean |
selectAudioTrack(AudioTrack audioTrack)
Selects an alternate audio track to play. |
boolean |
selectClosedCaptionsTrack(ClosedCaptionsTrack closedCaptionsTrack)
Selects a close captions track to display. |
Method Detail |
---|
MediaResource getResource()
boolean isLive()
boolean hasAlternateAudio()
List<AudioTrack> getAudioTracks()
AudioTrack getSelectedAudioTrack()
boolean selectAudioTrack(AudioTrack audioTrack)
audioTrack
- the audio track to be selected
boolean hasClosedCaptions()
List<ClosedCaptionsTrack> getClosedCaptionsTracks()
ClosedCaptionsTrack getSelectedClosedCaptionsTrack()
boolean selectClosedCaptionsTrack(ClosedCaptionsTrack closedCaptionsTrack)
closedCaptionsTrack
- the CC track to be selected
boolean hasTimedMetadata()
List<TimedMetadata> getTimedMetadata()
boolean isDynamic()
boolean isProtected()
List<DRMMetadataInfo> getDRMMetadataInfos()
List<Profile> getProfiles()
boolean isTrickPlaySupported()
List<Integer> getAvailableSpeeds()
List<String> getAdTags()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |