Class DataStream.Types.Header
- Namespace
- Livekit.Server.Sdk.Dotnet
- Assembly
- LivekitApi.dll
main DataStream.Header that contains a oneof for specific headers
public sealed class DataStream.Types.Header : IMessage<DataStream.Types.Header>, IEquatable<DataStream.Types.Header>, IDeepCloneable<DataStream.Types.Header>, IBufferMessage, IMessage
- Inheritance
-
DataStream.Types.Header
- Implements
-
IBufferMessage
- Inherited Members
Constructors
Header()
public Header()
Header(Header)
public Header(DataStream.Types.Header other)
Parameters
otherDataStream.Types.Header
Properties
Attributes
user defined attributes map that can carry additional info
public MapField<string, string> Attributes { get; }
Property Value
ByteHeader
public DataStream.Types.ByteHeader ByteHeader { get; set; }
Property Value
Compression
public DataStream.Types.CompressionType Compression { get; set; }
Property Value
ContentHeaderCase
public DataStream.Types.Header.ContentHeaderOneofCase ContentHeaderCase { get; }
Property Value
EncryptionType
this is set on the DataPacket
[Obsolete]
public Encryption.Types.Type EncryptionType { get; set; }
Property Value
HasInlineContent
Gets whether the "inline_content" field is set
public bool HasInlineContent { get; }
Property Value
HasTotalLength
Gets whether the "total_length" field is set
public bool HasTotalLength { get; }
Property Value
InlineContent
Optional inline content so that a data stream can be sent as a single packet for short payloads.
public ByteString InlineContent { get; set; }
Property Value
MimeType
public string MimeType { get; set; }
Property Value
StreamId
unique identifier for this data stream
public string StreamId { get; set; }
Property Value
TextHeader
public DataStream.Types.TextHeader TextHeader { get; set; }
Property Value
Timestamp
using int64 for Unix timestamp
public long Timestamp { get; set; }
Property Value
Topic
public string Topic { get; set; }
Property Value
TotalLength
only populated for finite streams, if it's a stream of unknown size this stays empty
public ulong TotalLength { get; set; }
Property Value
Methods
ClearContentHeader()
public void ClearContentHeader()
ClearInlineContent()
Clears the value of the "inline_content" field
public void ClearInlineContent()
ClearTotalLength()
Clears the value of the "total_length" field
public void ClearTotalLength()