ContainerEncodingProperties.ContainerEncodingProperties constructor

Applies to Windows and Windows Phone

Creates a new instance of the ContainerEncodingProperties class.

Syntax


var containerEncodingProperties = new Windows.Media.MediaProperties.ContainerEncodingProperties();

Parameters

This constructor has no parameters.

Examples

The following example creates an instance of the ContainerEncodingProperties class and gets the properties for the class.


function getContainerProperties() {
    var containerProperties = new Windows.Media.MediaProperties.ContainerEncodingProperties();
    var props = containerProperties.properties;
    // Remove all items from the property set;
    props.clear();

    var containerType = containerProperties.type;
    var containerSubType = containerProperties.subtype;
    if (containerType === "Container" && containerSubType === "MPEG4") {
        // The format is an MPEG4 file container.

    }
}


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

ContainerEncodingProperties

 

 

Show:
© 2014 Microsoft