Class VideoProfile
Represents video resolution parameters like width, height, fps.
Inheritance
System.Object
VideoProfile
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class VideoProfile : object
Constructors
VideoProfile()
Initializes a new instance of the VideoProfile class.
Declaration
public VideoProfile()
VideoProfile(Int32, Int32, Int32)
Initializes a new instance of the VideoProfile class.
Declaration
public VideoProfile(int width, int height, int fps)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | width | The width of the video. |
| System.Int32 | height | The height of the video. |
| System.Int32 | fps | The frames per second of the video. |
Properties
Fps
Gets or sets the frames per second of the video.
Declaration
public int Fps { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Height
Gets or sets the height of the video.
Declaration
public int Height { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Width
Gets or sets the width of the video.
Declaration
public int Width { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
IsValid(VideoProfile)
checks if the resolution is valid.
Declaration
public static bool IsValid(VideoProfile videoResolution)
Parameters
| Type | Name | Description |
|---|---|---|
| VideoProfile | videoResolution |
Returns
| Type | Description |
|---|---|
| System.Boolean |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string representation of this instance. |