public static interface AdsMediaSource.MediaSourceFactory
MediaSources to play ad media.| Modifier and Type | Method and Description |
|---|---|
MediaSource |
createMediaSource(android.net.Uri uri,
android.os.Handler handler,
MediaSourceEventListener listener)
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, @Nullable android.os.Handler handler, @Nullable MediaSourceEventListener listener)
MediaSource for loading the ad media with the specified uri.uri - The URI of the media or manifest to play.handler - A handler for listener events. May be null if delivery of events is not
required.listener - A listener for events. May be null if delivery of events is not required.int[] getSupportedTypes()
C.TYPE_DASH, C.TYPE_SS, C.TYPE_HLS or C.TYPE_OTHER.