On 13-05-05 10:27 AM, David Humphrey wrote: > I talk to a lot of web devs who say they want to know not only the > video's current time, but also the current frame number. I realize the > spec doesn't have any notion of this, but I'd like to do an experimental > build that exposes this, and let them try it--see how significant it > actually is in the real world vs. "if only I could..."
Why do they want to know this, and why does dividing currentTime by the framerate not work? > My question is this: I assume we keep track of the current frame (like > we do with current time) somewhere in the media decoder, and I'm > wondering if one of you would be kind enough to point me in the right > direction. You could try exposing VideoData::mTimecode, but that's format-specific. You'd probably want to add an mFrameIndex instead. http://dxr.mozilla.org/mozilla-central/content/media/MediaDecoderReader.h#l113 HTH, -r _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

