VideoDeviceController class
Controls device settings on the camera.
Syntax
/* For information about creating or accessing this object, see Remarks. */
Attributes
- MarshalingBehaviorAttribute(Standard)
- ThreadingAttribute(MTA)
- VersionAttribute(NTDDI_WIN8)
Members
The VideoDeviceController class has these types of members:
Methods
The VideoDeviceController class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| GetAvailableMediaStreamProperties | Gets a list of the supported encoding properties for the video device. |
| GetDeviceProperty | Gets a property on the camera. |
| GetMediaStreamProperties | Gets the encoding properties for the specified media stream type for the video device. |
| SetDeviceProperty | Sets a property on the device. |
| SetMediaStreamPropertiesAsync | Sets the encoding properties asynchronously for the specified media stream type for the video device. |
| TryGetPowerlineFrequency | Gets the local power line frequency. |
| TrySetPowerlineFrequency | Sets the local power line frequency. |
Properties
The VideoDeviceController class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Specifies whether back-light compensation is enabled on the camera. | |
| Read-only | Gets or sets the brightness level on the camera. | |
| Read-only | Gets or sets the contrast level on the camera. | |
| Read-only | Gets or sets the camera's exposure time. | |
| Read-only | Gets or sets the camera's focus setting. | |
| Read-only | Gets or sets the camera's hue setting. | |
| Read-only | Gets or sets the camera's pan setting. | |
| Read-only | Gets or sets the camera's roll setting. | |
| Read-only | Gets or sets the camera's tilt setting. | |
| Read-only | Gets or sets the white balance on the camera. | |
| Read-only | Gets and sets the camera's zoom setting. |
Remarks
To get an instance of this object, retrieve the MediaCapture.VideoDeviceController property.
Note : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).
Examples
The following example shows how to get an instance of this object.
function createVideoDevice() { var videoDev = null; var mediaDev = null; mediaDev = new Windows.Media.Capture.MediaCapture(); videoDev = mediaDev.videoDeviceController; }
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
|
|
Metadata |
|
Build date: 12/4/2012
