Defines a video device (such as a camera). More...
Inherits IDisposable.
| Public Member Functions | |
| IList< VideoFormat > | ListFormats () |
| Returns a list of video formats available for the device. | |
| VideoCapturer | CreateVideoCapturer (VideoFormat format) |
| Creates a video capturer that uses the provided video format. More... | |
| VideoCapturer | CreateVideoCapturer (int width, int height, int fps=30) |
| Creates a video capturer that uses the provided width, height, and frame rate. The video capturer will use the closest available settings. More... | |
| VideoCapturer | CreateVideoCapturer (Resolution resolution=Resolution.Medium, FrameRate frameRate=FrameRate.Fps30) |
| Creates a video capturer that uses the provided resolution and frame rate. The video capturer will use the closest available settings. More... | |
| void | Dispose () |
| Disposes of the VideoDevice object's resources. |
| Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
| Properties | |
| string | Name [get] |
| The name of the device. | |
| string | Id [get] |
| The ID of the device. |
Detailed Description
Defines a video device (such as a camera).
Use the VideoCapturer.EnumerateDevices() method to get a list of available video devices on the system.
Member Function Documentation
CreateVideoCapturer() [1/3]
| VideoCapturer OpenTok.VideoCapturer.VideoDevice.CreateVideoCapturer | ( | int | width, |
| int | height, | ||
| int | fps = 30 | ||
| ) |
Creates a video capturer that uses the provided width, height, and frame rate. The video capturer will use the closest available settings.
Parameters : | | | | --- | --- | | width | The width of the video, in pixels. |
Parameters : | | | | --- | --- | | height | The height of the video, in pixels. |
Parameters : | | | | --- | --- | | fps | The frame rate of the video, in frames per second. |
Returns : The VideoCapturer.
CreateVideoCapturer() [2/3]
| VideoCapturer OpenTok.VideoCapturer.VideoDevice.CreateVideoCapturer | ( | Resolution | resolution = Resolution.Medium, |
| FrameRate | frameRate = FrameRate.Fps30 | ||
| ) |
Creates a video capturer that uses the provided resolution and frame rate. The video capturer will use the closest available settings.
Parameters : | | | | --- | --- | | resolution | The resolution of the video, as defined by values in the Resolution enum. |
Parameters : | | | | --- | --- | | frameRate | The frame rate of the video, as defined by values in the FrameRate enum |
Returns : The VideoCapturer.
CreateVideoCapturer() [3/3]
| VideoCapturer OpenTok.VideoCapturer.VideoDevice.CreateVideoCapturer | ( | VideoFormat | format | ) |
Creates a video capturer that uses the provided video format.
Parameters : | | | | --- | --- | | format | The video format the video capturer should use. |
Returns : The VideoCapturer.
See also : ListFormats()