Class SessionDescription
A session description.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class SessionDescription
Properties
HasAudio
Gets a value indicating whether an audio stream is described.
Declaration
public bool HasAudio { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasData
Gets a value indicating whether a data stream is described.
Declaration
public bool HasData { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasVideo
Gets a value indicating whether a video stream is described.
Declaration
public bool HasVideo { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOffer
Gets a value indicating whether this instance is offer.
Declaration
public bool IsOffer { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SdpMessage
Gets or sets the SDP message.
Declaration
public Message SdpMessage { get; set; }
Property Value
Type | Description |
---|---|
Message |
SessionId
Gets the session id of the remote description, if remote description is set. Returns null otherwise.
Declaration
public long SessionId { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
SessionVersion
Gets or sets the version of the remote description, if remote description is set. Returns null otherwise.
Declaration
public long SessionVersion { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
TieBreaker
Gets or sets the tie breaker in case of a role conflict.
Declaration
public string TieBreaker { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets or sets the type.
Declaration
public SessionDescriptionType Type { get; set; }
Property Value
Type | Description |
---|---|
SessionDescriptionType |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static SessionDescription FromJson(string sessionDescriptionJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionDescriptionJson | The JSON to deserialize. |
Returns
Type | Description |
---|---|
SessionDescription | The deserialized session description. |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(SessionDescription)
Serializes an instance to JSON.
Declaration
public static string ToJson(SessionDescription sessionDescription)
Parameters
Type | Name | Description |
---|---|---|
SessionDescription | sessionDescription | The session description. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |