Class NewVideoStreamRequest
Create a new VideoStream VideoStream is used to receive video frames from a track
public sealed class NewVideoStreamRequest : Google.Protobuf.IMessage<NewVideoStreamRequest>, Google.Protobuf.IBufferMessage
- Inheritance
-
NewVideoStreamRequest
- Implements
-
IBufferMessage
- Extension Methods
Constructors
NewVideoStreamRequest()
public NewVideoStreamRequest()
NewVideoStreamRequest(NewVideoStreamRequest)
public NewVideoStreamRequest(NewVideoStreamRequest other)
Parameters
otherNewVideoStreamRequest
Fields
FormatFieldNumber
Field number for the "format" field.
public const int FormatFieldNumber = 3
Field Value
NormalizeStrideFieldNumber
Field number for the "normalize_stride" field.
public const int NormalizeStrideFieldNumber = 4
Field Value
QueueSizeFramesFieldNumber
Field number for the "queue_size_frames" field.
public const int QueueSizeFramesFieldNumber = 5
Field Value
TrackHandleFieldNumber
Field number for the "track_handle" field.
public const int TrackHandleFieldNumber = 1
Field Value
TypeFieldNumber
Field number for the "type" field.
public const int TypeFieldNumber = 2
Field Value
Properties
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Format
Get the frame on a specific format
public VideoBufferType Format { get; set; }
Property Value
HasFormat
Gets whether the "format" field is set
public bool HasFormat { get; }
Property Value
HasNormalizeStride
Gets whether the "normalize_stride" field is set
public bool HasNormalizeStride { get; }
Property Value
HasQueueSizeFrames
Gets whether the "queue_size_frames" field is set
public bool HasQueueSizeFrames { get; }
Property Value
HasTrackHandle
Gets whether the "track_handle" field is set
public bool HasTrackHandle { get; }
Property Value
HasType
Gets whether the "type" field is set
public bool HasType { get; }
Property Value
NormalizeStride
if true, stride will be set to width/chroma_width
public bool NormalizeStride { get; set; }
Property Value
Parser
public static Google.Protobuf.MessageParser<NewVideoStreamRequest> Parser { get; }
Property Value
- MessageParser<NewVideoStreamRequest>
QueueSizeFrames
Maximum number of queued WebRTC sink frames on the receive path. Omit this field to use the default bounded queue size of 1 frame. Set it to 0 to request unbounded buffering.
If your application consumes both audio and video, keep the queue sizing strategy coordinated across both streams. Using a much larger queue, or unbounded buffering, for only one of them can increase end-to-end latency for that stream and cause audio/video drift.
public uint QueueSizeFrames { get; set; }
Property Value
TrackHandle
public ulong TrackHandle { get; set; }
Property Value
Type
public VideoStreamType Type { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearFormat()
Clears the value of the "format" field
public void ClearFormat()
ClearNormalizeStride()
Clears the value of the "normalize_stride" field
public void ClearNormalizeStride()
ClearQueueSizeFrames()
Clears the value of the "queue_size_frames" field
public void ClearQueueSizeFrames()
ClearTrackHandle()
Clears the value of the "track_handle" field
public void ClearTrackHandle()
ClearType()
Clears the value of the "type" field
public void ClearType()
Clone()
public NewVideoStreamRequest Clone()
Returns
Equals(NewVideoStreamRequest)
public bool Equals(NewVideoStreamRequest other)
Parameters
otherNewVideoStreamRequest
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(NewVideoStreamRequest)
public void MergeFrom(NewVideoStreamRequest other)
Parameters
otherNewVideoStreamRequest
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream