startVideoShare

open override fun startVideoShare(videoSource: VideoSource)

Start to share video with a provided custom VideoSource which can be used to provide custom VideoFrames to be transmitted to remote clients. This will call VideoSource.addVideoSink on the provided source and VideoSource.removeVideoSink on the previously provided source.

Calling this function repeatedly will replace the previous VideoSource as the one being transmitted.

Parameters

videoSource

: VideoSource - The source of video frames to be sent to other clients.


open override fun startVideoShare(videoSource: VideoSource, config: LocalVideoConfiguration)

Start to share video with configuration and a provided custom VideoSource which can be used to provide custom VideoFrames to be transmitted to remote clients. This will call VideoSource.addVideoSink on the provided source and VideoSource.removeVideoSink on the previously provided source.

Calling this function repeatedly will replace the previous VideoSource as the one being transmitted, will update the content share configuration, e.g. maxBitRateKbps.

Parameters

videoSource

: VideoSource - The source of video frames to be sent to other clients.

config

: LocalVideoConfiguration - The configuration of emitted video stream, e.g. maxBitRateKbps