Class VideoSource
Base class for video sources plugging into the internal peer connection API to expose a single video stream to a renderer (MediaPlayer or custom).
Namespace: Microsoft.MixedReality.WebRTC.Unity
Assembly: cs.temp.dll.dll
Syntax
public abstract class VideoSource : MonoBehaviour
Fields
FrameQueue
Frame queue holding the pending frames enqueued by the video source itself, which a video renderer needs to read and display.
Declaration
public VideoFrameQueue<I420VideoFrameStorage> FrameQueue
Field Value
Type | Description |
---|---|
VideoFrameQueue<I420VideoFrameStorage> |
VideoStreamStarted
Event invoked from the main Unity thread when the video stream starts. This means that video frames are available and the renderer should start polling.
Declaration
public VideoStreamStartedEvent VideoStreamStarted
Field Value
Type | Description |
---|---|
VideoStreamStartedEvent |
VideoStreamStopped
Event invoked from the main Unity thread when the video stream stops. This means that the video frame queue is not populated anymore, though some frames may still be present in it that may be rendered.
Declaration
public VideoStreamStoppedEvent VideoStreamStopped
Field Value
Type | Description |
---|---|
VideoStreamStoppedEvent |