Class SessionDescription
A session description.
Inheritance
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class SessionDescription : object
Properties
HasAudio
Gets a value indicating whether an audio stream is described.
Declaration
public bool HasAudio { get; }
Property Value
Type | Description |
---|---|
System. |
HasData
Gets a value indicating whether a data stream is described.
Declaration
public bool HasData { get; }
Property Value
Type | Description |
---|---|
System. |
HasVideo
Gets a value indicating whether a video stream is described.
Declaration
public bool HasVideo { get; }
Property Value
Type | Description |
---|---|
System. |
IsOffer
Gets a value indicating whether this instance is offer.
Declaration
public bool IsOffer { get; }
Property Value
Type | Description |
---|---|
System. |
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. |
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. |
TieBreaker
Gets or sets the tie breaker in case of a role conflict.
Declaration
public string TieBreaker { get; set; }
Property Value
Type | Description |
---|---|
System. |
Type
Gets or sets the type.
Declaration
public SessionDescriptionType Type { get; set; }
Property Value
Type | Description |
---|---|
Session |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static SessionDescription FromJson(string sessionDescriptionJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
sessionDescriptionJson | The JSON to deserialize. |
Returns
Type | Description |
---|---|
Session |
The deserialized session description. |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(SessionDescription)
Serializes an instance to JSON.
Declaration
public static string ToJson(SessionDescription sessionDescription)
Parameters
Type | Name | Description |
---|---|---|
Session |
sessionDescription | The session description. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |