Windows Dev Center

MediaEncodingProfile.Container | container property

Gets or sets the properties of the media container.

Syntax


var container = mediaEncodingProfile.container;
mediaEncodingProfile.container = container;

Property value

Type: ContainerEncodingProperties

The properties of the media container.

Examples

The following example creates an instance of the MediaEncodingProfile class and gets the encoding properties for the audio stream, the media container, and the video stream.


function getAudioProperties() {
    var mediaProfile = new Windows.Media.MediaProperties.MediaEncodingProfile();

    // Get the encoding properties for the audio stream.
    var audioProps = mediaProfile.audio;
    // Set the channel count.
    audioProps.channelCount = count;

    // Get the encoding properties for the media container.
    var containerProps = mediaProfile.container;
    // Set the container subtype.
    containerProps.subtype = "MP3";

    // Get the encoding properties for the video stream.
    var videoProps = mediaProfile.video;
    // Get the frame rate.
    var d_value = videoProps.frameRate.denominator;
    var n_value = videoProps.frameRate.numerator;

}


Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

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:
© 2015 Microsoft