fm.liveswitch.VideoProfile Class Reference

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

Public Member Functions

int getFps ()
 Gets the frames per second of the video. More...
 
int getHeight ()
 Gets the height of the video. More...
 
int getWidth ()
 Gets the width of the video. More...
 
void setFps (int value)
 Sets the frames per second of the video. More...
 
void setHeight (int value)
 Sets the height of the video. More...
 
void setWidth (int value)
 Sets the width of the video. More...
 
String toString ()
 Returns a string that represents this instance. More...
 
 VideoProfile ()
 Initializes a new instance of the fm.liveswitch.VideoProfile class. More...
 
 VideoProfile (int width, int height, int fps)
 Initializes a new instance of the fm.liveswitch.VideoProfile class. More...
 

Static Public Member Functions

static boolean isValid (fm.liveswitch.VideoProfile videoResolution)
 checks if the resolution is valid. More...
 

Detailed Description

Represents video resolution parameters like width, height, fps.

Constructor & Destructor Documentation

◆ VideoProfile() [1/2]

fm.liveswitch.VideoProfile.VideoProfile ( )

Initializes a new instance of the fm.liveswitch.VideoProfile class.

◆ VideoProfile() [2/2]

fm.liveswitch.VideoProfile.VideoProfile ( int  width,
int  height,
int  fps 
)

Initializes a new instance of the fm.liveswitch.VideoProfile class.

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

Member Function Documentation

◆ getFps()

int fm.liveswitch.VideoProfile.getFps ( )

Gets the frames per second of the video.

◆ getHeight()

int fm.liveswitch.VideoProfile.getHeight ( )

Gets the height of the video.

◆ getWidth()

int fm.liveswitch.VideoProfile.getWidth ( )

Gets the width of the video.

◆ isValid()

static boolean fm.liveswitch.VideoProfile.isValid ( fm.liveswitch.VideoProfile  videoResolution)
static

checks if the resolution is valid.

◆ setFps()

void fm.liveswitch.VideoProfile.setFps ( int  value)

Sets the frames per second of the video.

◆ setHeight()

void fm.liveswitch.VideoProfile.setHeight ( int  value)

Sets the height of the video.

◆ setWidth()

void fm.liveswitch.VideoProfile.setWidth ( int  value)

Sets the width of the video.

◆ toString()

String fm.liveswitch.VideoProfile.toString ( )

Returns a string that represents this instance.

Returns
A string representation of this instance.