Windows Dev Center

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.

MediaCapture.SetEncodingPropertiesAsync | setEncodingPropertiesAsync method

Asynchronously sets the media encoding properties.

Syntax


mediaCapture.setEncodingPropertiesAsync(mediaStreamType, mediaEncodingProperties, encoderProperties).done( /* Your success and error handlers */ );

Parameters

mediaStreamType

Type: MediaStreamType

The type of media data the stream represents, such as video or audio.

mediaEncodingProperties

Type: IMediaEncodingProperties

The properties for the media encoding.

encoderProperties

Type: MediaPropertySet

The properties for the encoder.

Return value

Type: IAsyncAction

Object that is used to control the asynchronous operation.

Remarks

To rotate the preview stream, use the GUID defined by MF_MT_VIDEO_ROTATION. See the Media capture using capture device sample for an example of how to do this.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

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

Namespace

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

Metadata

Windows.winmd

See also

MediaCapture

 

 

Show:
© 2015 Microsoft