createKohii
Creates a new Kohii instance using an ExoPlayerConfig. Note that an application should not hold many instance of Kohii.
Parameters
context
the Context.
config
the ExoPlayerConfig.
fun createKohii( context: Context, playerCreator: (Context) -> Player? = null, rendererProviderFactory: RendererProviderFactory = { PlayerViewProvider() }): Kohii
Content copied to clipboard
Creates a new Kohii instance using a custom playerCreator and rendererProviderFactory. Note that an application should not hold many instance of Kohii.
Parameters
context
the Context.
playerCreator
the custom creator for the Player. If null
, it will use the default one.
rendererProviderFactory
the custom RendererProviderFactory.