Struct FrameRequest
Request sent to an external video source via its registered callback to generate a new video frame for the track(s) connected to it.
Namespace: Microsoft.MixedReality.WebRTC
Assembly: Microsoft.MixedReality.WebRTC.dll
Syntax
public ref struct FrameRequest
Fields
| Improve this Doc View SourceRequestId
Unique request identifier, for error checking.
Declaration
public uint RequestId
Field Value
| Type | Description |
|---|---|
| UInt32 |
Source
Video track source this request is associated with.
Declaration
public ExternalVideoTrackSource Source
Field Value
| Type | Description |
|---|---|
| ExternalVideoTrackSource |
TimestampMs
Frame timestamp, in milliseconds. This corresponds to the time when the request was made to the native video track source.
Declaration
public long TimestampMs
Field Value
| Type | Description |
|---|---|
| Int64 |
Methods
| Improve this Doc View SourceCompleteRequest(in Argb32VideoFrame)
Complete the current request by providing a video frame for it. This must be used if the video track source was created with CreateFromArgb32Callback(Argb32VideoFrameRequestDelegate).
Declaration
public void CompleteRequest(in Argb32VideoFrame frame)
Parameters
| Type | Name | Description |
|---|---|---|
| Argb32VideoFrame | frame | The video frame used to complete the request. |
CompleteRequest(in I420AVideoFrame)
Complete the current request by providing a video frame for it. This must be used if the video track source was created with CreateFromI420ACallback(I420AVideoFrameRequestDelegate).
Declaration
public void CompleteRequest(in I420AVideoFrame frame)
Parameters
| Type | Name | Description |
|---|---|---|
| I420AVideoFrame | frame | The video frame used to complete the request. |