MediaEncodingProfile.Video | video property

Applies to Windows and Windows Phone

Gets or sets the encoding properties for the video stream.

Syntax


var video = mediaEncodingProfile.video;
mediaEncodingProfile.video = video;

Property value

Type: VideoEncodingProperties

The encoding properties of the video stream. If the profile does not contain a video stream, the value is null.

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

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