Interface IVideoSource
Interface for video sources, whether local or remote.
Namespace: Microsoft.MixedReality.WebRTC
Assembly: Microsoft.MixedReality.WebRTC.dll
Syntax
public interface IVideoSource
Properties
| Improve this Doc View SourceEnabled
Enabled status of the source. If enabled, produces video frames as expected. If disabled, produces black frames instead.
Declaration
bool Enabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
FrameEncoding
Video encoding indicating the kind of frames the source is producing.
Declaration
VideoEncoding FrameEncoding { get; }
Property Value
Type | Description |
---|---|
VideoEncoding |
Events
| Improve this Doc View SourceArgb32VideoFrameReady
Event that occurs when a new video frame is available from the source, either because the source produced it locally (VideoTrackSource, LocalVideoTrack) or because it received it from the remote peer (RemoteVideoTrack).
Declaration
event Argb32VideoFrameDelegate Argb32VideoFrameReady
Event Type
Type | Description |
---|---|
Argb32VideoFrameDelegate |
Remarks
The event delivers to the handlers an ARGB32-encoded video frame.
This event is invoked on the WebRTC worker thread. Handlers can be added/removed safely while the event is invoked, but access to any resource used by its handlers must be synchronized manually. Note that a handler might be invoked (at most once) after it has been removed from the event.
I420AVideoFrameReady
Event that occurs when a new video frame is available from the source, either because the source produced it locally (VideoTrackSource, LocalVideoTrack) or because it received it from the remote peer (RemoteVideoTrack).
Declaration
event I420AVideoFrameDelegate I420AVideoFrameReady
Event Type
Type | Description |
---|---|
I420AVideoFrameDelegate |
Remarks
The event delivers to the handlers an I420-encoded video frame.
This event is invoked on the WebRTC worker thread. Handlers can be added/removed safely while the event is invoked, but access to any resource used by its handlers must be synchronized manually. Note that a handler might be invoked (at most once) after it has been removed from the event.