[Bug 20760] <video> Expose statistics for tracking playback quality

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20760

--- Comment #5 from Aaron Colwell <acolwell@google.com> ---
I too would like to see something a little simpler. How about this?

partial interface HTMLMediaElement {
  attribute readonly MediaPlaybackQuality playbackQuality
}

interface MediaPlaybackQuality {
  readonly attribute unsigned long totalVideoFrames;
  readonly attribute unsigned long droppedVideoFrames;
};

- Each time playbackQuality is fetched a new object is created.
- Put this on the HTMLMediaElement instead so this could potentially be used in
the future for audio metrics?
- Perhaps s/Quality/Metrics in the naming above?
- totalVideoFrames represents the number of frames that could have been decoded
and displayed. This is the count on the entrance to the decoder (ie. before
predecode B-Frame  or P-Frame dropping)
- droppedVideoFrames represents the number of frames dropped either predecode
or dropped because they were late coming out of the decoder.

This seems like a very simple first step that should be pretty easy to support
and I think would address everyones concerns for at least having something.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 18 April 2013 18:49:29 UTC