AudioVideoCaptureDevice.OpenForVideoOnlyAsync method

[This topic contains pre-release information and is subject to change. Blank topics are included as placeholders.]

7/25/2012

Creates a new AudioVideoCaptureDevice object for capturing video (without audio).

Syntax

public static IAsyncOperation<AudioVideoCaptureDevice> OpenForVideoOnlyAsync(
  CameraType sensor, 
  Size initialResolution
)
Public Shared Function OpenForVideoOnlyAsync(
  sensor As CameraType,  
  initialResolution As Size 
) As IAsyncOperation(Of AudioVideoCaptureDevice)
public:
static IAsyncOperation<AudioVideoCaptureDevice>^ OpenForVideoOnlyAsync(
  CameraType sensor, 
  Size initialResolution
)

Parameters

  • sensor
    Type: CameraType

    The location of the camera on the phone (front or back).

  • initialResolution
    Type: Size

    The initial capture resolution.

Return value

Type: IAsyncOperation<AudioVideoCaptureDevice>

The new AudioVideoCaptureDevice object.

Remarks

The initial preview resolution is selected automatically and optimized for the resolution of the phone that is running your app. It maintains the same aspect ratio as the initial capture resolution.

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.Phone.Media.Capture Windows::Phone::Media::Capture [C++]

Metadata

Windows.winmd

See also

AudioVideoCaptureDevice

 

 

Build date: 7/25/2012