On 13-05-06 1:01 PM, Randell Jesup wrote:

> framerate is not a constant. ;-)

I was imaging they wanted to find a particular frame to cut-and-paste,
e.g. sprites. Or only run an expensive calculation when the frame data
changes.

> Applications (especially realtime) will want to show the "current"
> framerate (for some definition of current - last second, etc).  They may
> want to take actions based on it as well.

Aha. It should be possible to try that with the statistics extensions
Paul mentioned. These are already available in Firefox:

  video.mozParsedFrames
  video.mozDecodedFrames
  video.mozPaintedFrames
  video.mozPresentedFrames

See
https://developer.mozilla.org/en-US/docs/DOM/HTMLVideoElement#Gecko-specific_properties
for a brief description.

 -r

_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to