VideoSourceAdapter

class VideoSourceAdapter : VideoSink, VideoSource

VideoSourceAdapter provides two classes to adapt VideoSource to com.xodee.client.video.VideoSource.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class VideoFrameI420BufferAdapter(i420Buffer: VideoFrameI420Buffer) : VideoFrameI420Buffer
Link copied to clipboard
class VideoFrameRGBABufferAdapter(rgbaBuffer: VideoFrameRGBABuffer) : VideoFrameRGBABuffer
Link copied to clipboard
class VideoFrameTextureBufferAdapter(textureBuffer: VideoFrameTextureBuffer) : VideoFrameTextureBuffer

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun addSink(sink: VideoSink)
Link copied to clipboard
open override fun getContentHint(): ContentHint
Link copied to clipboard
open override fun onVideoFrameReceived(frame: VideoFrame)

Receive a video frame from some upstream source. The VideoSink may render, store, process, and forward the frame, among other applications.

Link copied to clipboard
open override fun removeSink(sink: VideoSink)