ICameraStreamController

interface ICameraStreamController : IMediaStreamController

Controller for a media stream bound to the device camera

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 fun changeFormat(format: FrameFormat): Boolean

Update the frame format of the current source camera

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

Link copied to clipboard
abstract suspend fun switchCamera(camera: CameraFormat): Boolean

Bind this media stream to a new camera and frame format

Properties

Link copied to clipboard
abstract val cameraName: String

The name of the source camera

Link copied to clipboard
abstract val isStarted: Boolean