MuxMediaSourceFactory

A MediaSource.Factory configured to work best with Mux Video.

If possible, you should prefer to allow us to manage the MediaSourceFactory by using the defaults on MuxPlayer.Builder. Also prefer to use this over DefaultMediaSourceFactory so we can provide our own defaults (turning on CMCD, caching, etc)

We also provide our own DataSource.Factory, which is a DefaultMediaSourceFactory that also delegates to our disk caching layer. You can override it with the dataSourceFactory ctor param, but caching is disabled by default so you don't need to worry about it if you don't want caching

If you wish to inject your own DefaultMediaSourceFactory then its DataSource.Factory will be superseded by Mux's custom one. To override that, you can provide your own value for innerFactory

Constructors

Link copied to clipboard
constructor(ctx: Context, dataSourceFactory: DataSource.Factory, innerFactory: DefaultMediaSourceFactory = DefaultMediaSourceFactory(ctx))

Types

Link copied to clipboard
object Companion