Represents media intent information for negotiating the intentions of the SDK. More...
Public Member Functions | |
| long | getBitrate () |
| Gets the target output bitrate, in kbps. More... | |
| boolean | getIsVideo () |
| Gets whether this intent is for video media. More... | |
| fm.liveswitch.StreamDirection | getLocalDirection () |
| Gets the local stream direction. More... | |
| String | serialize () |
| Serializes the media intent to a string format. More... | |
| void | setBitrate (long value) |
| Sets the target output bitrate, in kbps. More... | |
| void | setLocalDirection (fm.liveswitch.StreamDirection value) |
| Sets the local stream direction. More... | |
Static Public Member Functions | |
| static fm.liveswitch.MediaIntent | parse (String media) |
| Parses a media intent string into a MediaIntent object. More... | |
Protected Member Functions | |
| MediaIntent () | |
| Initializes a new instance of the MediaIntent class. More... | |
| void | setIsVideo (boolean value) |
| Sets whether this intent is for video media. More... | |
Represents media intent information for negotiating the intentions of the SDK.
|
protected |
Initializes a new instance of the MediaIntent class.
| long fm.liveswitch.MediaIntent.getBitrate | ( | ) |
Gets the target output bitrate, in kbps.
A value of -1 indicates unset (no target).
| boolean fm.liveswitch.MediaIntent.getIsVideo | ( | ) |
Gets whether this intent is for video media.
| fm.liveswitch.StreamDirection fm.liveswitch.MediaIntent.getLocalDirection | ( | ) |
Gets the local stream direction.
|
static |
Parses a media intent string into a MediaIntent object.
| media | The serialized media intent string. |
| String fm.liveswitch.MediaIntent.serialize | ( | ) |
Serializes the media intent to a string format.
Reimplemented in fm.liveswitch.VideoIntent.
| void fm.liveswitch.MediaIntent.setBitrate | ( | long | value | ) |
Sets the target output bitrate, in kbps.
A value of -1 indicates unset (no target).
|
protected |
Sets whether this intent is for video media.
| void fm.liveswitch.MediaIntent.setLocalDirection | ( | fm.liveswitch.StreamDirection | value | ) |
Sets the local stream direction.