DefaultMediaManager

constructor(mediaSurfaceProvider: MediaSurfaceProvider?, coroutineContext: CoroutineContext, context: Context)

Parameters

mediaSurfaceProvider

a MediaSurfaceProvider that will automatically call renderVideoOnSurface for the latest MediaSurface

coroutineContext

the CoroutineContext on which the media will be managed

context

the Context to access local resources

constructor(mediaSurfaceProvider: MediaSurfaceProvider?, settings: DefaultMediaManager.Settings, coroutineContext: CoroutineContext)

Parameters

mediaSurfaceProvider

a MediaSurfaceProvider that will automatically call renderVideoOnSurface for the latest MediaSurface

settings

the Settings used to configure the Media Manager

coroutineContext

the CoroutineContext on which the media will be managed

constructor(mediaSurfaceProvider: MediaSurfaceProvider?, settings: DefaultMediaManager.Settings, coroutineContext: CoroutineContext)

Parameters

mediaSurfaceProvider

a MediaSurfaceProvider that will automatically call renderVideoOnSurface for the latest MediaSurface

settings

the Settings used to configure the Media Manager

coroutineContext

the CoroutineContext on which the media will be managed