public final class MediaSourceUtil
extends java.lang.Object
DashManifest and HlsMasterPlaylist.| Constructor and Description |
|---|
MediaSourceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static android.net.Uri |
findInitializationUri(com.google.android.exoplayer2.source.dash.manifest.Representation representation)
Finds the location of the representation's initialization data.
|
static java.lang.String |
findRenditionUrl(com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest,
int trackType,
com.google.android.exoplayer2.Format format)
Finds the rendition url from the
DashManifest object for the specified track type
and the format. |
static java.lang.String |
findRenditionUrl(com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist hlsMasterPlaylist,
int trackType,
com.google.android.exoplayer2.Format format)
Finds the rendition url from the
HlsMasterPlaylist object for the specified track type
and the format. |
static java.lang.String |
findRenditionUrl(java.lang.Object manifest,
com.google.android.exoplayer2.Format format)
Finds the rendition url from the manifest object given the track type and the format.
|
static java.lang.String |
findRenditionUrl(java.lang.Object manifest,
int trackType,
com.google.android.exoplayer2.Format format)
Finds the rendition url from the manifest object given the track type and the format.
|
static int |
findTrackType(com.google.android.exoplayer2.Format format)
Finds the track type of the specified format.
|
static int |
getBrightcoveRoleFlag(java.lang.String roleValue)
Gets the Brightcove Role Flag matching the Role Value.
|
static java.lang.String |
getBrightcoveRoleValue(int flag)
Gets the Brightcove Role Value matching the Role Flag.
|
public static int findTrackType(@NonNull
com.google.android.exoplayer2.Format format)
format - the format.@Nullable
public static java.lang.String findRenditionUrl(@Nullable
java.lang.Object manifest,
int trackType,
@NonNull
com.google.android.exoplayer2.Format format)
DashManifest or HlsManifest.manifest - the manifesttrackType - the track typeformat - the format@Nullable
public static java.lang.String findRenditionUrl(@Nullable
java.lang.Object manifest,
@NonNull
com.google.android.exoplayer2.Format format)
DashManifest or HlsManifest.manifest - the manifestformat - the format@Nullable
public static java.lang.String findRenditionUrl(@NonNull
com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest,
int trackType,
@NonNull
com.google.android.exoplayer2.Format format)
DashManifest object for the specified track type
and the format.dashManifest - reference to the DASH manifest.trackType - the track typeformat - the format@NonNull
public static android.net.Uri findInitializationUri(@NonNull
com.google.android.exoplayer2.source.dash.manifest.Representation representation)
representation - reference to the representation@Nullable
public static java.lang.String findRenditionUrl(@NonNull
com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist hlsMasterPlaylist,
int trackType,
@NonNull
com.google.android.exoplayer2.Format format)
HlsMasterPlaylist object for the specified track type
and the format.hlsMasterPlaylist - reference to the HLS master playlist.trackType - the track typeformat - the formatpublic static int getBrightcoveRoleFlag(java.lang.String roleValue)
BrightcoveDashManifestParser reads the
AdaptationSet Role value and adds a Brightcove Flag to the Format.selectionFlags,
depending on the Role value.roleValue - the role string valuepublic static java.lang.String getBrightcoveRoleValue(int flag)
BrightcoveDashManifestParser reads the
AdaptationSet Role value and adds a Brightcove Flag to the Format.selectionFlags,
depending on the Role value.flag - the Brightcove Role Flag