MediaEncodingProfile.CreateWma | createWma method

Applies to Windows and Windows Phone

Creates an encoding profile for Windows Media Audio (WMA).

Syntax


var mediaEncodingProfile = Windows.Media.MediaProperties.MediaEncodingProfile.createWma(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 a profile for WMA.


function WmaProfile() {
    // Create Wma profile with low audio encoding quality.
    var mediaProfile = Windows.Media.MediaProperties.MediaEncodingProfile.createWma(Windows.Media.MediaProperties.AudioEncodingQuality.low);
}


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