Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  


Frame rate of a video media type, in frames per second.

Component Version macOS Windows Linux Server iOS SDK
WMFP 13.2 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "WMFP.GetVideoFrameRate"; Player )   More


Parameter Description Example
Player The reference number for the Windows Media Foundation Player object. $$Player


Returns value or error.


Frame rate of a video media type, in frames per second.
Requires a media item being loaded into the player.

The frame rate is expressed as a ratio. The upper 32 bits of the attribute value contain the numerator and the lower 32 bits contain the denominator. For example, if the frame rate is 30 frames per second (fps), the ratio is 30/1. If the frame rate is 29.97 fps, the ratio is 30,000/1001.


Query it:

Set Variable [ $num; Value: MBS("WMFP.GetVideoFrameRate"; $$player) ]
Set Variable [ $t; Value: MBS( "Math.BitwiseShiftRight"; $num; 32) ]
Set Variable [ $b; Value: MBS( "Math.BitwiseAND"; $num; 4294967295)]
Set Variable [ $value; Value: $t / $b ]

Example result: 29.97

See also

Release notes

Blog Entries

Created 15th March 2023, last changed 15th March 2023

WMFP.GetTag - WMFP.GetVisible

💬 Ask a question or report a problem

Start Chat