getMediaFormatTracksAvailable

open fun getMediaFormatTracksAvailable(video: Video, mediaFormatListener: MediaDownloadable.MediaFormatListener)

An asynchronous call to retrieve the MediaFormat tracks available for a given video. The result will be given through the com.brightcove.player.offline.MediaDownloadable.MediaFormatListener listener.

NOTE: Only the video type DASH is currently supported. This method requires the Media Manifest to retrieve the requested information, therefore it might download the manifest and store it to the directory provided by getDownloadPath, if it has not been done already. If this directory is invalid, it will throw a InvalidDownloadPathException.

Parameters

video

video to retrieve MediaFormatTracks from.

mediaFormatListener

callback to return MediaDownloadable

Throws

when the current download path is invalid.