DefaultMediaPlayer

constructor(mediaSurfaceProvider: MediaSurfaceProvider?, mediaManagerBuilder: BaseMediaManager.Builder, coroutineContext: CoroutineContext)

Constructor that provides a BaseMediaManager to manage media playback

Parameters

mediaSurfaceProvider

an optional MediaSurfaceProvider to attach to the BaseMediaManager

mediaManagerBuilder

a BaseMediaManager.Builder to provide the BaseMediaManager to manage playback

coroutineContext

the CoroutineContext on which to run the media player


constructor(createPlaybackStateRepo: (CoroutineContext) -> BasePlaybackStateRepo, coroutineContext: CoroutineContext)

Parameters

createPlaybackStateRepo

method for creating a BasePlaybackStateRepo to manage the PlaybackState of this player

coroutineContext

the CoroutineContext on which to run the media player