Class BaseStreamInfo
- Namespace
- LiveKit.Rtc
- Assembly
- LivekitRtc.dll
Base information for a data stream.
public class BaseStreamInfo
- Inheritance
-
BaseStreamInfo
- Derived
- Inherited Members
Constructors
BaseStreamInfo(string, string, string, long, long?, Dictionary<string, string>?)
Initializes base stream info.
protected BaseStreamInfo(string streamId, string mimeType, string topic, long timestamp, long? size, Dictionary<string, string>? attributes)
Parameters
streamIdstringUnique ID of the stream.
mimeTypestringMIME type of the content.
topicstringTopic the stream was sent on.
timestamplongSend time, in milliseconds since the Unix epoch.
sizelong?Total size in bytes, or null when unknown.
attributesDictionary<string, string>Custom attributes, or null.
Properties
Attributes
Gets the stream attributes.
public Dictionary<string, string> Attributes { get; }
Property Value
MimeType
Gets the MIME type.
public string MimeType { get; }
Property Value
Size
Gets the total size if known.
public long? Size { get; }
Property Value
- long?
StreamId
Gets the stream ID.
public string StreamId { get; }
Property Value
Timestamp
Gets the timestamp in milliseconds.
public long Timestamp { get; }
Property Value
Topic
Gets the topic.
public string Topic { get; }