setDataSourceFactory

open fun setDataSourceFactory(httpDataSourceFactory: Factory)

Sets the HttpDataSource.Factory, which is used when creating the MediaSource. WARNING: When creating a customized HttpDataSource.Factory, you must make sure to use the default user agent HTTP_USER_AGENT to avoid losing Brightcove Analytics and Delivery Rules support.

Parameters

httpDataSourceFactory

the http data source factory