OpenTok.VideoCapturer.VideoDevice

public class VideoDevice : IDisposable

Enclosing type: OpenTok.VideoCapturer

Use the VideoCapturer.EnumerateDevices() method to get a list of available video devices on the system.

Properties

Name Type Description
Name string { get; } The name of the device.
Id string { get; } The ID of the device.

Methods

Name Description
CreateVideoCapturer(format) → {VideoCapturer}
CreateVideoCapturer(width, height, fps) → {VideoCapturer}
CreateVideoCapturer(resolution, frameRate) → {VideoCapturer}
Dispose() Disposes of the VideoDevice object's resources.
Dispose(disposing)
ListFormats() → {IList<VideoFormat>} Returns a list of video formats available for the device.

CreateVideoCapturer(format) → {VideoCapturer}

Parameters:
Name Type Description
format VideoFormat The video format the video capturer should use.

See: : - ListFormats()

Returns:

The VideoCapturer.

CreateVideoCapturer(width, height, fps) → {VideoCapturer}

Parameters:
Name Type Description
width int The width of the video, in pixels.
height int The height of the video, in pixels.
fps int The frame rate of the video, in frames per second.
Returns:

The VideoCapturer.

CreateVideoCapturer(resolution, frameRate) → {VideoCapturer}

Parameters:
Name Type Description
resolution Resolution The resolution of the video, as defined by values in the Resolution enum.
frameRate FrameRate The frame rate of the video, as defined by values in the FrameRate enum
Returns:

The VideoCapturer.

Dispose()

Disposes of the VideoDevice object's resources.

Dispose(disposing)

Parameters:
Name Type Description
disposing bool

ListFormats() → {IList<VideoFormat>}

Returns a list of video formats available for the device.

Returns:

IList<VideoFormat>