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.

MediaEncodingProfile.CreateM4a | createM4a method

Applies to Windows and Windows Phone

Creates an encoding profile for AAC audio.

Syntax


var mediaEncodingProfile = Windows.Media.MediaProperties.MediaEncodingProfile.createM4a(quality);

Parameters

quality

Type: AudioEncodingQuality

Specifies whether to create a profile with a low bit rate, medium bit rate, or high bit rate.

Return value

Type: MediaEncodingProfile

Returns a media encoding profile.

Remarks

The encoding quality Auto is a special preset that fills in the proper settings based on the current camera settings. Settings that are manually modified are ignored. For example, if you create a preset profile using one the static create methods, such as CreateM4a, and specify Auto as the encoding quality, any changes you make to the properties will be overwritten with values based on the current camera settings.

Examples

The following example creates an M4a profile.


function M4aProfile() {
    // Create M4a profile with high audio encoding quality.
    var mediaProfile = Windows.Media.MediaProperties.MediaEncodingProfile.createM4a(Windows.Media.MediaProperties.AudioEncodingQuality.high);
}


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

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

Namespace

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

Metadata

Windows.winmd

See also

MediaEncodingProfile

 

 

Show:
© 2014 Microsoft