Represents media intent information for negotiating the intentions of the SDK. More...
Instance Methods | |
| (long long) | - bitrate |
| Gets the target output bitrate, in kbps. More... | |
| (instancetype) | - init |
| Initializes a new instance of the MediaIntent class. More... | |
| (bool) | - isVideo |
| Gets whether this intent is for video media. More... | |
| (FMLiveSwitchStreamDirection) | - localDirection |
| Gets the local stream direction. More... | |
| (NSString *) | - serialize |
| Serializes the media intent to a string format. More... | |
| (void) | - setBitrate: |
| Sets the target output bitrate, in kbps. More... | |
| (void) | - setLocalDirection: |
| Sets the local stream direction. More... | |
Class Methods | |
| (FMLiveSwitchMediaIntent *) | + mediaIntent |
| Initializes a new instance of the MediaIntent class. More... | |
| (FMLiveSwitchMediaIntent *) | + parseWithMedia: |
| Parses a media intent string into a MediaIntent object. More... | |
Represents media intent information for negotiating the intentions of the SDK.
| - (long long) bitrate |
Gets the target output bitrate, in kbps.
A value of -1 indicates unset (no target).
| - (instancetype) init |
Initializes a new instance of the MediaIntent class.
Implemented in FMLiveSwitchVideoIntent, and FMLiveSwitchAudioIntent.
| - (bool) isVideo |
Gets whether this intent is for video media.
| - (FMLiveSwitchStreamDirection) localDirection |
Gets the local stream direction.
| + (FMLiveSwitchMediaIntent*) mediaIntent |
Initializes a new instance of the MediaIntent class.
| + (FMLiveSwitchMediaIntent*) parseWithMedia: | (NSString *) | media |
Parses a media intent string into a MediaIntent object.
| media | The serialized media intent string. |
| - (NSString*) serialize |
Serializes the media intent to a string format.
Implemented in FMLiveSwitchVideoIntent.
| - (void) setBitrate: | (long long) | value |
Sets the target output bitrate, in kbps.
A value of -1 indicates unset (no target).
| - (void) setLocalDirection: | (FMLiveSwitchStreamDirection) | value |
Sets the local stream direction.