AndroidVirtualVideoSource

class AndroidVirtualVideoSource(nativeVideoSource: VideoSource, nativeVideoTrack: VideoTrack, val stream: MediaStream, width: Int, height: Int) : VirtualVideoSource

Android implementation of VirtualVideoSource. Allows feeding processed Bitmap frames into a WebRTC video track.

Constructors

Link copied to clipboard
constructor(nativeVideoSource: VideoSource, nativeVideoTrack: VideoTrack, stream: MediaStream, width: Int, height: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val stream: MediaStream

The MediaStream containing the virtual video track. This stream can be used as virtualStream in PrepopulateUserMedia.

Link copied to clipboard
open override val videoTrack: MediaStreamTrack

The video track from this virtual source. This track can be used with WebRtcProducer.replaceTrack().

Functions

Link copied to clipboard
open override fun onFrame(bitmap: Any, timestampNs: Long, rotation: Int)

Sends a processed frame to this virtual video source. The frame will be encoded and sent to remote participants.

Link copied to clipboard
open override fun release()

Releases all resources.

Link copied to clipboard
open override fun start()

Starts the virtual video source.

Link copied to clipboard
open override fun stop()

Stops the virtual video source.