MediaRatio.Denominator | denominator property

Applies to Windows and Windows Phone

The denominator of the MediaRatio.

Syntax


var denominator = mediaRatio.denominator;
mediaRatio.denominator = denominator;

Property value

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The denominator value.

Examples

The following example gets the denominator and numerator values of the ratio.


function getFrameRate() {
    var videoProperties = new Windows.Media.MediaProperties.VideoEncodingProperties();
    // Get the MediaRatio object.
    var ratio = videoProperties.frameRate;
    // Get the numerator and denominator of the frame rate ratio.
    var d_value = ratio.denominator;
    var n_value = ratio.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

MediaRatio

 

 

Show:
© 2014 Microsoft