Network.encodedFrameRate

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

Version

Windows Media Player version 7.0 or later.

DLL

Wmp.dll

See also

Network Object
Network.frameRate

 

 

Show: