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 isRunning: AtomicBoolean

Indicates whether the receiver is running.

Link copied to clipboard
open override val screen: ScreenObjectContainer

The video screen container object.

Link copied to clipboard
open override var stream: Stream?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun onSurfaceChanged(surface: Surface?)
Link copied to clipboard

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

Link copied to clipboard
open override fun startRunning()

Tells the receiver to start running.

Link copied to clipboard
open override fun stopRunning()

Tells the receiver to stop running.

Link copied to clipboard

Unregister a MediaProjection listener.