JavaCameraStreamController

class JavaCameraStreamController(controller: ICameraStreamController, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)) : JavaMediaStreamController

Controller for a media stream bound to the device camera

Constructors

Link copied to clipboard
fun JavaCameraStreamController(controller: ICameraStreamController, 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: FrameFormat): Boolean

Update the frame format of the current source camera

Link copied to clipboard
fun getCameraName(): String

The name of the source camera

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

Link copied to clipboard
fun switchCamera(camera: CameraFormat): Future<Boolean>

Bind this media stream to a new camera and frame format