public static interface MediaDownloadable.MediaFormatListener
Modifier and Type | Method and Description |
---|---|
void |
onResult(MediaDownloadable mediaDownloadable,
android.os.Bundle mediaFormatBundle)
Method to be called when the tracks are available.
|
void onResult(MediaDownloadable mediaDownloadable, android.os.Bundle mediaFormatBundle)
MediaDownloadable.VIDEO_RENDITIONS
,
MediaDownloadable.AUDIO_LANGUAGES
and MediaDownloadable.CAPTIONS
which will return a Parcelable ArrayList
ex. ArrayList
Sometimes the audio has additional information as the role, such as 'main', 'alternate', commentary, etc.
but that information can't be retrieved from the MediaFormat object. To get that information you need to use
the key
ex. ArrayListMediaDownloadable.AUDIO_LANGUAGE_ROLES
to get an ArrayListMediaDownloadable.AUDIO_LANGUAGES
.
mediaDownloadable,
- the object containing the information about the video to be downloadedmediaFormatBundle
- the bundle having the tracks