FMLiveSwitchVideoIntent Class Reference

Represents video-specific media intent with resolution, frame rate, and bitrate information. More...

Instance Methods

(double) - frameRate
 Gets the frame rate in frames per second. More...
 
(instancetype) - init
 Initializes a new instance of the VideoIntent class. More...
 
(long long) - pixels
 Gets the total number of pixels (width × height). More...
 
(FMLiveSwitchSize *) - resolution
 Gets the video resolution. More...
 
(NSString *) - serialize
 Serializes the video intent to a string format. More...
 
(void) - setFrameRate:
 Sets the frame rate in frames per second. More...
 
(void) - setResolution:
 Sets the video resolution. More...
 
(void) - setVideoType:
 Sets the video type. More...
 
(FMLiveSwitchVideoType) - videoType
 Gets the video type. More...
 
- Instance Methods inherited from FMLiveSwitchMediaIntent
(long long) - bitrate
 Gets the target output bitrate, in kbps. More...
 
(bool) - isVideo
 Gets whether this intent is for video media. More...
 
(FMLiveSwitchStreamDirection) - localDirection
 Gets the local stream direction. More...
 
(void) - setBitrate:
 Sets the target output bitrate, in kbps. More...
 
(void) - setLocalDirection:
 Sets the local stream direction. More...
 

Class Methods

(FMLiveSwitchVideoIntent *) + videoIntent
 Initializes a new instance of the VideoIntent class. More...
 
- Class Methods inherited from FMLiveSwitchMediaIntent
(FMLiveSwitchMediaIntent *) + mediaIntent
 Initializes a new instance of the MediaIntent class. More...
 
(FMLiveSwitchMediaIntent *) + parseWithMedia:
 Parses a media intent string into a MediaIntent object. More...
 

Detailed Description

Represents video-specific media intent with resolution, frame rate, and bitrate information.

Method Documentation

◆ frameRate

- (double) frameRate

Gets the frame rate in frames per second.

◆ init

- (instancetype) init

Initializes a new instance of the VideoIntent class.

Implements FMLiveSwitchMediaIntent.

◆ pixels

- (long long) pixels

Gets the total number of pixels (width × height).

◆ resolution

- (FMLiveSwitchSize*) resolution

Gets the video resolution.

◆ serialize

- (NSString*) serialize

Serializes the video intent to a string format.

Returns
Serialized video intent string.

Implements FMLiveSwitchMediaIntent.

◆ setFrameRate:

- (void) setFrameRate: (double)  value

Sets the frame rate in frames per second.

◆ setResolution:

- (void) setResolution: (FMLiveSwitchSize *)  value

Sets the video resolution.

◆ setVideoType:

- (void) setVideoType: (FMLiveSwitchVideoType)  value

Sets the video type.

◆ videoIntent

+ (FMLiveSwitchVideoIntent*) videoIntent

Initializes a new instance of the VideoIntent class.

◆ videoType

- (FMLiveSwitchVideoType) videoType

Gets the video type.