Share via


Network.encodedFrameRate

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The encodedFrameRate property retrieves the video frame rate specified by the content author in frames per second.

Syntax

player.network.encodedFrameRate

Possible Values

This property is a read-only Number (long).

Examples

The following JScript example uses Network.encodedFrameRate to display the frame rate specified when the file was encoded. The information is displayed in an HTML DIV created with ID = "FR". The Player object was created with ID = "Player".

<!-- Create an event handler for play state. -->
<SCRIPT FOR = Player EVENT = PlayStateChange(NewState)>
   switch (NewState){
      case 3:
          // Display the encoded frame rate.
          FR.innerHTML = "Encoded Frame Rate: ";
          FR.innerHTML += Player.network.encodedFrameRate;
          break;

      default:
      }
</SCRIPT>

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later.
DLL
Wmp.dll

See also

Network Object

Network.frameRate