ActivityMediaSurfaceProvider
constructor(activityClass: KClass<Activity>, activitySurfaceHolder: Activity.() -> SurfaceHolder?, observer: LifecycleManagerObserver = LifecycleManagerObserver())
Parameters
Activity
the type of android.app.Activity that provides the SurfaceHolder
activitySurfaceHolder
method for getting a SurfaceHolder from an instance of Activity
observer
the LifecycleManagerObserver to observe the lifecycle