FMLiveSwitchVideoProfile Class Reference

Represents video resolution parameters like width, height, fps. More...

Instance Methods

(NSString *) - description
 Returns a string that represents this instance. More...
 
(int) - fps
 Gets the frames per second of the video. More...
 
(int) - height
 Gets the height of the video. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchVideoProfile class. More...
 
(instancetype) - initWithWidth:height:fps:
 Initializes a new instance of the FMLiveSwitchVideoProfile class. More...
 
(void) - setFps:
 Sets the frames per second of the video. More...
 
(void) - setHeight:
 Sets the height of the video. More...
 
(void) - setWidth:
 Sets the width of the video. More...
 
(int) - width
 Gets the width of the video. More...
 

Class Methods

(bool) + isValidWithVideoResolution:
 checks if the resolution is valid. More...
 
(FMLiveSwitchVideoProfile *) + videoProfile
 Initializes a new instance of the FMLiveSwitchVideoProfile class. More...
 
(FMLiveSwitchVideoProfile *) + videoProfileWithWidth:height:fps:
 Initializes a new instance of the FMLiveSwitchVideoProfile class. More...
 

Detailed Description

Represents video resolution parameters like width, height, fps.

Method Documentation

◆ description

- (NSString*) description

Returns a string that represents this instance.

Returns
A string representation of this instance.

◆ fps

- (int) fps

Gets the frames per second of the video.

◆ height

- (int) height

Gets the height of the video.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchVideoProfile class.

◆ initWithWidth:height:fps:

- (instancetype) initWithWidth: (int)  width
height: (int)  height
fps: (int)  fps 

Initializes a new instance of the FMLiveSwitchVideoProfile class.

Parameters
widthThe width of the video.
heightThe height of the video.
fpsThe frames per second of the video.

◆ isValidWithVideoResolution:

+ (bool) isValidWithVideoResolution: (FMLiveSwitchVideoProfile *)  videoResolution

checks if the resolution is valid.

◆ setFps:

- (void) setFps: (int)  value

Sets the frames per second of the video.

◆ setHeight:

- (void) setHeight: (int)  value

Sets the height of the video.

◆ setWidth:

- (void) setWidth: (int)  value

Sets the width of the video.

◆ videoProfile

+ (FMLiveSwitchVideoProfile*) videoProfile

Initializes a new instance of the FMLiveSwitchVideoProfile class.

◆ videoProfileWithWidth:height:fps:

+ (FMLiveSwitchVideoProfile*) videoProfileWithWidth: (int)  width
height: (int)  height
fps: (int)  fps 

Initializes a new instance of the FMLiveSwitchVideoProfile class.

Parameters
widthThe width of the video.
heightThe height of the video.
fpsThe frames per second of the video.

◆ width

- (int) width

Gets the width of the video.