0 out of 1 rated this helpful - Rate this topic

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.

MethodDescription
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.

PropertyAccess typeDescription

BacklightCompensation

Read-onlySpecifies whether back-light compensation is enabled on the camera.

Brightness

Read-onlyGets or sets the brightness level on the camera.

Contrast

Read-onlyGets or sets the contrast level on the camera.

Exposure

Read-onlyGets or sets the camera's exposure time.

Focus

Read-onlyGets or sets the camera's focus setting.

Hue

Read-onlyGets or sets the camera's hue setting.

Pan

Read-onlyGets or sets the camera's pan setting.

Roll

Read-onlyGets or sets the camera's roll setting.

Tilt

Read-onlyGets or sets the camera's tilt setting.

WhiteBalance

Read-onlyGets or sets the white balance on the camera.

Zoom

Read-onlyGets 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

Windows.Media.Devices
Windows::Media::Devices [C++]

Metadata

Windows.winmd

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.