MediaSourceUtil

Provides utility method to work with DashManifest and HlsMultivariantPlaylist.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun findInitializationUri(representation: Representation): Uri
Finds the location of the representation's initialization data.
Link copied to clipboard
open fun findRenditionUrl(manifest: Any, format: Format): String
open fun findRenditionUrl(manifest: Any, trackType: Int, format: Format): String
Finds the rendition url from the manifest object given the track type and the format.
open fun findRenditionUrl(dashManifest: DashManifest, trackType: Int, format: Format): String
Finds the rendition url from the DashManifest object for the specified track type and the format.
open fun findRenditionUrl(hlsMasterPlaylist: HlsMultivariantPlaylist, trackType: Int, format: Format): String
Finds the rendition url from the HlsMultivariantPlaylist object for the specified track type and the format.
Link copied to clipboard
open fun findTrackType(format: Format): Int
Finds the track type of the specified format.
Link copied to clipboard
open fun getBrightcoveRoleFlag(roleValue: String): Int
Gets the Brightcove Role Flag matching the Role Value.
Link copied to clipboard
Gets the Brightcove Role Value matching the Role Flag.
Link copied to clipboard
open fun isAudioOnly(tracks: Tracks): Boolean
Check if the Tracks has an audio track and no video track.