public static interface AdsMediaSource.MediaSourceFactory
MediaSources to play ad media.| Modifier and Type | Method and Description |
|---|---|
MediaSource |
createMediaSource(android.net.Uri uri)
Creates a new
MediaSource for loading the ad media with the specified uri. |
int[] |
getSupportedTypes()
Returns the content types supported by media sources created by this factory.
|
MediaSource createMediaSource(android.net.Uri uri)
MediaSource for loading the ad media with the specified uri.uri - The URI of the media or manifest to play.int[] getSupportedTypes()
C.TYPE_DASH, C.TYPE_SS, C.TYPE_HLS or C.TYPE_OTHER.