Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 1 rated this helpful - Rate this topic

VideoDeviceController class

Applies to Windows and Windows Phone

Controls device settings on the camera.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Standard)]
[Threading(MTA)]
[Version(0x06020000)]

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.

ExposureCompensationControl

Read-onlyGets the exposure compensation control for this video device.

ExposureControl

Read-onlyGets the exposure control for this video device.

FlashControl

Read-onlyGets the flash control for this video device.

Focus

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

FocusControl

Read-onlyGets the focus control for this video device.

Hue

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

IsoSpeedControl

Read-onlyGets the ISO film speed control for this video device.

LowLagPhoto

Read-onlyGets the low shutter lag photo control for this video device.

LowLagPhotoSequence

Read-onlyGets the low shutter lag photo sequence control for this video device.

Pan

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

PrimaryUse

Read/writeGets or sets the primary use for the device.

RegionsOfInterestControl

Read-onlyGets the regions of interest control for this video device.

Roll

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

SceneModeControl

Read-onlyGets the scene mode control for this video device.

Tilt

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

TorchControl

Read-onlyGets the torch control for this video device.

WhiteBalance

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

WhiteBalanceControl

Read-onlyGets the white balance control for this video device.

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]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.