JavaScreenCaptureController

class JavaScreenCaptureController(controller: IScreenCaptureController, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)) : JavaMediaStreamController

Controller for the media stream bound to a screen recorder

Constructors

Link copied to clipboard
fun JavaScreenCaptureController(controller: IScreenCaptureController, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))

Functions

Link copied to clipboard
fun addSink(sink: VideoSink): Future<Unit>

Add a video sink to the local media stream.

Link copied to clipboard
fun changeFormat(format: FrameSize): Future<Boolean>

Update the screen recorder's frame size

Link copied to clipboard
fun getFormat(): FrameSize

The current frame size

Link copied to clipboard
fun isStarted(): Boolean
Link copied to clipboard
fun removeSink(sink: VideoSink): Future<Unit>

Remove a previously added video sink

Link copied to clipboard
fun start(): Future<Boolean>

Start recording and broadcasting the media stream

Link copied to clipboard
fun stop(): Boolean

Pause recording and broadcasting the media stream