Class TrackInfo
Implements
IBufferMessage
IMessage
Namespace: LiveKit.Proto
Assembly: Uniform.LiveKit.Protocol.dll
Syntax
public sealed class TrackInfo : IMessage<TrackInfo>, IEquatable<TrackInfo>, IDeepCloneable<TrackInfo>, IBufferMessage, IMessage
Constructors
TrackInfo()
Declaration
TrackInfo(TrackInfo)
Declaration
public TrackInfo(TrackInfo other)
Parameters
Fields
AudioFeaturesFieldNumber
Field number for the "audio_features" field.
Declaration
public const int AudioFeaturesFieldNumber = 19
Field Value
BackupCodecPolicyFieldNumber
Field number for the "backup_codec_policy" field.
Declaration
public const int BackupCodecPolicyFieldNumber = 20
Field Value
CodecsFieldNumber
Field number for the "codecs" field.
Declaration
public const int CodecsFieldNumber = 13
Field Value
DisableDtxFieldNumber
Field number for the "disable_dtx" field.
Declaration
public const int DisableDtxFieldNumber = 8
Field Value
DisableRedFieldNumber
Field number for the "disable_red" field.
Declaration
public const int DisableRedFieldNumber = 15
Field Value
EncryptionFieldNumber
Field number for the "encryption" field.
Declaration
public const int EncryptionFieldNumber = 16
Field Value
HeightFieldNumber
Field number for the "height" field.
Declaration
public const int HeightFieldNumber = 6
Field Value
LayersFieldNumber
Field number for the "layers" field.
Declaration
public const int LayersFieldNumber = 10
Field Value
MidFieldNumber
Field number for the "mid" field.
Declaration
public const int MidFieldNumber = 12
Field Value
MimeTypeFieldNumber
Field number for the "mime_type" field.
Declaration
public const int MimeTypeFieldNumber = 11
Field Value
MutedFieldNumber
Field number for the "muted" field.
Declaration
public const int MutedFieldNumber = 4
Field Value
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 3
Field Value
PacketTrailerFeaturesFieldNumber
Field number for the "packet_trailer_features" field.
Declaration
public const int PacketTrailerFeaturesFieldNumber = 21
Field Value
SidFieldNumber
Field number for the "sid" field.
Declaration
public const int SidFieldNumber = 1
Field Value
SimulcastFieldNumber
Field number for the "simulcast" field.
Declaration
public const int SimulcastFieldNumber = 7
Field Value
SourceFieldNumber
Field number for the "source" field.
Declaration
public const int SourceFieldNumber = 9
Field Value
StereoFieldNumber
Field number for the "stereo" field.
Declaration
public const int StereoFieldNumber = 14
Field Value
StreamFieldNumber
Field number for the "stream" field.
Declaration
public const int StreamFieldNumber = 17
Field Value
TypeFieldNumber
Field number for the "type" field.
Declaration
public const int TypeFieldNumber = 2
Field Value
VersionFieldNumber
Field number for the "version" field.
Declaration
public const int VersionFieldNumber = 18
Field Value
WidthFieldNumber
Field number for the "width" field.
Declaration
public const int WidthFieldNumber = 5
Field Value
Properties
AudioFeatures
Declaration
public RepeatedField<AudioTrackFeature> AudioFeatures { get; }
Property Value
BackupCodecPolicy
Declaration
public BackupCodecPolicy BackupCodecPolicy { get; set; }
Property Value
Codecs
Declaration
public RepeatedField<SimulcastCodecInfo> Codecs { get; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
| Type |
Description |
| MessageDescriptor |
|
DisableDtx
true if DTX (Discontinuous Transmission) is disabled for audio
Declaration
[Obsolete]
public bool DisableDtx { get; set; }
Property Value
DisableRed
true if RED (Redundant Encoding) is disabled for audio
Declaration
public bool DisableRed { get; set; }
Property Value
Encryption
Declaration
public Encryption.Types.Type Encryption { get; set; }
Property Value
Height
original height of video (unset for audio)
Declaration
public uint Height { get; set; }
Property Value
Layers
see codecs for layers of individual codec
Declaration
[Obsolete]
public RepeatedField<VideoLayer> Layers { get; }
Property Value
Mid
Declaration
public string Mid { get; set; }
Property Value
MimeType
Declaration
public string MimeType { get; set; }
Property Value
Muted
Declaration
public bool Muted { get; set; }
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
PacketTrailerFeatures
Declaration
public RepeatedField<PacketTrailerFeature> PacketTrailerFeatures { get; }
Property Value
Parser
Declaration
public static MessageParser<TrackInfo> Parser { get; }
Property Value
Sid
Declaration
public string Sid { get; set; }
Property Value
Simulcast
true if track is simulcasted
Declaration
[Obsolete]
public bool Simulcast { get; set; }
Property Value
Source
Declaration
public TrackSource Source { get; set; }
Property Value
Stereo
deprecated in favor of audio_features
Declaration
[Obsolete]
public bool Stereo { get; set; }
Property Value
Stream
Declaration
public string Stream { get; set; }
Property Value
Type
Declaration
public TrackType Type { get; set; }
Property Value
Version
Declaration
public TimedVersion Version { get; set; }
Property Value
Width
original width of video (unset for audio)
clients may receive a lower resolution version with simulcast
Declaration
public uint Width { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Declaration
public int CalculateSize()
Returns
| Type |
Description |
| int |
The number of bytes required to write this message
to a coded output stream.
|
Clone()
Creates a deep clone of this object.
Declaration
Returns
| Type |
Description |
| TrackInfo |
A deep clone of this object.
|
Equals(TrackInfo)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TrackInfo other)
Parameters
| Type |
Name |
Description |
| TrackInfo |
other |
An object to compare with this object.
|
Returns
| Type |
Description |
| bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| object |
other |
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
Merges the data from the specified coded input stream with the current message.
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
| Type |
Name |
Description |
| CodedInputStream |
input |
|
MergeFrom(TrackInfo)
Merges the given message into this one.
Declaration
public void MergeFrom(TrackInfo other)
Parameters
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
| Type |
Name |
Description |
| CodedOutputStream |
output |
Coded output stream to write the data to. Must not be null.
|
Implements
Google.Protobuf.IMessage<T>
Google.Protobuf.IDeepCloneable<T>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage