Class MediaIntent
Represents media intent information for negotiating the intentions of the SDK.
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class MediaIntent : object
Constructors
MediaIntent()
Initializes a new instance of the MediaIntent class.
Declaration
protected MediaIntent()
Properties
Bitrate
Gets or sets the target output bitrate, in kbps. A value of -1 indicates unset (no target).
Declaration
public long Bitrate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
IsVideo
Gets or sets whether this intent is for video media.
Declaration
public bool IsVideo { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LocalDirection
Gets or sets the local stream direction.
Declaration
public StreamDirection LocalDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| StreamDirection |
Methods
Parse(String)
Parses a media intent string into a MediaIntent object.
Declaration
public static MediaIntent Parse(string media)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | media | The serialized media intent string. |
Returns
| Type | Description |
|---|---|
| MediaIntent | A MediaIntent object, or null if parsing fails. |
Serialize()
Serializes the media intent to a string format.
Declaration
public virtual string Serialize()
Returns
| Type | Description |
|---|---|
| System.String | Serialized media intent string. |