MediaProjectionSource

A video source that captures a display by the MediaProjection API.

Constructors

Link copied to clipboard
constructor(context: Context, mediaProjection: MediaProjection)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val video: VideoScreenObject

The video screen container object.

Functions

Link copied to clipboard
open suspend override fun close(): Result<Unit>

Closes a source.

Link copied to clipboard
open override fun onSurfaceChanged(surface: Surface?)
Link copied to clipboard
open suspend override fun open(mixer: MediaMixer): Result<Unit>

Open a source.

Link copied to clipboard

Register a listener to receive notifications about when the MediaProjection changes state.

Link copied to clipboard

Unregister a MediaProjection listener.