Class AddTrackRequest
Inheritance
AddTrackRequest
Implements
IBufferMessage
IMessage
Namespace: LiveKit.Proto
Assembly: Uniform.LiveKit.Protocol.dll
Syntax
public sealed class AddTrackRequest : IMessage<AddTrackRequest>, IEquatable<AddTrackRequest>, IDeepCloneable<AddTrackRequest>, IBufferMessage, IMessage
Constructors
AddTrackRequest()
Declaration
AddTrackRequest(AddTrackRequest)
Declaration
public AddTrackRequest(AddTrackRequest other)
Parameters
Fields
AudioFeaturesFieldNumber
Field number for the "audio_features" field.
Declaration
public const int AudioFeaturesFieldNumber = 17
Field Value
BackupCodecPolicyFieldNumber
Field number for the "backup_codec_policy" field.
Declaration
public const int BackupCodecPolicyFieldNumber = 16
Field Value
CidFieldNumber
Field number for the "cid" field.
Declaration
public const int CidFieldNumber = 1
Field Value
DisableDtxFieldNumber
Field number for the "disable_dtx" field.
Declaration
public const int DisableDtxFieldNumber = 7
Field Value
DisableRedFieldNumber
Field number for the "disable_red" field.
Declaration
public const int DisableRedFieldNumber = 13
Field Value
EncryptionFieldNumber
Field number for the "encryption" field.
Declaration
public const int EncryptionFieldNumber = 14
Field Value
HeightFieldNumber
Field number for the "height" field.
Declaration
public const int HeightFieldNumber = 5
Field Value
LayersFieldNumber
Field number for the "layers" field.
Declaration
public const int LayersFieldNumber = 9
Field Value
MutedFieldNumber
Field number for the "muted" field.
Declaration
public const int MutedFieldNumber = 6
Field Value
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 2
Field Value
PacketTrailerFeaturesFieldNumber
Field number for the "packet_trailer_features" field.
Declaration
public const int PacketTrailerFeaturesFieldNumber = 18
Field Value
SidFieldNumber
Field number for the "sid" field.
Declaration
public const int SidFieldNumber = 11
Field Value
SimulcastCodecsFieldNumber
Field number for the "simulcast_codecs" field.
Declaration
public const int SimulcastCodecsFieldNumber = 10
Field Value
SourceFieldNumber
Field number for the "source" field.
Declaration
public const int SourceFieldNumber = 8
Field Value
StereoFieldNumber
Field number for the "stereo" field.
Declaration
public const int StereoFieldNumber = 12
Field Value
StreamFieldNumber
Field number for the "stream" field.
Declaration
public const int StreamFieldNumber = 15
Field Value
TypeFieldNumber
Field number for the "type" field.
Declaration
public const int TypeFieldNumber = 3
Field Value
WidthFieldNumber
Field number for the "width" field.
Declaration
public const int WidthFieldNumber = 4
Field Value
Properties
AudioFeatures
Declaration
public RepeatedField<AudioTrackFeature> AudioFeatures { get; }
Property Value
BackupCodecPolicy
Declaration
public BackupCodecPolicy BackupCodecPolicy { get; set; }
Property Value
Cid
client ID of track, to match it when RTC track is received
Declaration
public string Cid { get; set; }
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
Declaration
public uint Height { get; set; }
Property Value
Layers
Declaration
public RepeatedField<VideoLayer> Layers { get; }
Property Value
Muted
true to add track and initialize to 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<AddTrackRequest> Parser { get; }
Property Value
Sid
server ID of track, publish new codec to exist track
Declaration
public string Sid { get; set; }
Property Value
SimulcastCodecs
Declaration
public RepeatedField<SimulcastCodec> SimulcastCodecs { get; }
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
which stream the track belongs to, used to group tracks together.
if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together
Declaration
public string Stream { get; set; }
Property Value
Type
Declaration
public TrackType Type { get; set; }
Property Value
Width
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
public AddTrackRequest Clone()
Returns
Equals(AddTrackRequest)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(AddTrackRequest other)
Parameters
| Type |
Name |
Description |
| AddTrackRequest |
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(AddTrackRequest)
Merges the given message into this one.
Declaration
public void MergeFrom(AddTrackRequest 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