Class MediaSource
Capture tracks directly from a room via SDK. Unifies deprecated Participant, TrackComposite, and Track egress.
public sealed class MediaSource : IMessage<MediaSource>, IEquatable<MediaSource>, IDeepCloneable<MediaSource>, IBufferMessage, IMessage
- Inheritance
-
MediaSource
- Implements
-
IMessage<MediaSource>IDeepCloneable<MediaSource>IBufferMessageIMessage
- Inherited Members
Constructors
MediaSource()
public MediaSource()
MediaSource(MediaSource)
public MediaSource(MediaSource other)
Parameters
otherMediaSource
Fields
AudioFieldNumber
Field number for the "audio" field.
public const int AudioFieldNumber = 3
Field Value
DataFieldNumber
Field number for the "data" field.
public const int DataFieldNumber = 4
Field Value
ParticipantVideoFieldNumber
Field number for the "participant_video" field.
public const int ParticipantVideoFieldNumber = 2
Field Value
VideoTrackIdFieldNumber
Field number for the "video_track_id" field.
public const int VideoTrackIdFieldNumber = 1
Field Value
Properties
Audio
public AudioConfig Audio { get; set; }
Property Value
Data
public DataConfig Data { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasVideoTrackId
Gets whether the "video_track_id" field is set
public bool HasVideoTrackId { get; }
Property Value
Parser
public static MessageParser<MediaSource> Parser { get; }
Property Value
- MessageParser<MediaSource>
ParticipantVideo
public ParticipantVideo ParticipantVideo { get; set; }
Property Value
VideoCase
public MediaSource.VideoOneofCase VideoCase { get; }
Property Value
VideoTrackId
public string VideoTrackId { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearVideo()
public void ClearVideo()
ClearVideoTrackId()
Clears the value of the oneof if it's currently set to "video_track_id"
public void ClearVideoTrackId()
Clone()
Creates a deep clone of this object.
public MediaSource Clone()
Returns
- MediaSource
A deep clone of this object.
Equals(MediaSource)
public bool Equals(MediaSource other)
Parameters
otherMediaSource
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(MediaSource)
Merges the given message into this one.
public void MergeFrom(MediaSource other)
Parameters
otherMediaSource
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.