IScreenCaptureController

interface IScreenCaptureController : IMediaStreamController

Controller for the media stream bound to a screen recorder

Functions

Link copied to clipboard
abstract suspend fun addSink(sink: VideoSink)

Add a video sink to the local media stream.

Link copied to clipboard
abstract suspend fun changeFormat(format: FrameSize): Boolean

Update the screen recorder's frame size

Link copied to clipboard
abstract suspend fun removeSink(sink: VideoSink)

Remove a previously added video sink

Link copied to clipboard
abstract suspend fun start(): Boolean

Start recording and broadcasting the media stream

Link copied to clipboard
abstract fun stop(): Boolean

Pause recording and broadcasting the media stream

Properties

Link copied to clipboard
abstract val format: FrameSize

The current frame size

Link copied to clipboard
abstract val isStarted: Boolean