Class MediaTrackInfo
Media track information
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MediaTrackInfo : Info
Constructors
MediaTrackInfo()
Create MediaTrackInfo instance.
Declaration
public MediaTrackInfo()
MediaTrackInfo(MediaTrackStats, MediaTrackStats)
Create MediaTrackInfo instance.
Declaration
public MediaTrackInfo(MediaTrackStats stats, MediaTrackStats lastStats)
Parameters
Type | Name | Description |
---|---|---|
MediaTrackStats | stats | |
MediaTrackStats | lastStats |
Properties
Detached
Gets or sets the whether the media track is detached.
Declaration
public bool? Detached { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Muted
Gets or sets the whether the media track is muted.
Declaration
public bool? Muted { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Report
Gets or sets the data stream report.
Declaration
public MediaTrackReport Report { get; set; }
Property Value
Type | Description |
---|---|
MediaTrackReport |
Stopped
Gets or sets the whether the media track is stopped.
Declaration
public bool? Stopped { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | valueJson | The value in JSON format. |
Overrides
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static MediaTrackInfo FromJson(string mediaTrackInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaTrackInfoJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaTrackInfo | The deserialized instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static MediaTrackInfo[] FromJsonArray(string mediaTrackInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaTrackInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaTrackInfo[] | The deserialized array. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(MediaTrackInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(MediaTrackInfo mediaTrackInfo)
Parameters
Type | Name | Description |
---|---|---|
MediaTrackInfo | mediaTrackInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |
ToJsonArray(MediaTrackInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(MediaTrackInfo[] mediaTrackInfos)
Parameters
Type | Name | Description |
---|---|---|
MediaTrackInfo[] | mediaTrackInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |