Open
Bug 1379050
Opened 8 years ago
Updated 3 years ago
Remove support for moz*Frames attributes from the video element
Categories
(Core :: Audio/Video: Playback, task, P3)
Core
Audio/Video: Playback
Tracking
()
REOPENED
People
(Reporter: timhuang, Unassigned)
Details
(Keywords: addon-compat, dev-doc-needed, site-compat)
Per Bug 1369309 comment 19, we should remove moz*Frames support including ...
* HTMLVideoElement.mozParsedFrames
* HTMLVideoElement.mozDecodedFrames
* HTMLVideoElement.mozPresentedFrames
* HTMLVideoElement.mozPaintedFrames
* HTMLVideoElement.mozFrameDelay
For two reasons, first, they are not official spec and no one implements them except us. Second, these APIs have a potential risk of browser fingerprinting.
For these reasons, we should remove them.
| Reporter | ||
Comment 1•8 years ago
|
||
According to Jet's opinion and I have found that some addons are still using this API. So, we should remain this API around.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Comment 2•8 years ago
|
||
It would be better to inform those addons to use the official VideoPlaybackQuality interface instead
https://wicg.github.io/media-playback-quality/
very unfortunate to not drop those redundant attributes that aren't per spec.
We've made addons totally incompatible in nightly recently and with much harder change into the API.
The change to use VideoPlaybackQuality is simple enough.
I believe we should reconsider this decision in not dropping it.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Updated•8 years ago
|
Keywords: dev-doc-needed,
site-compat
Updated•8 years ago
|
Keywords: addon-compat
(In reply to Tim Huang[:timhuang] from comment #1)
> According to Jet's opinion and I have found that some addons are still using
> this API. So, we should remain this API around.
These values should just be removed. They've been meaningless since we made the media stack async in 2014.
Looks like we'll need to migrate WebRTC over to using https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality first.
Flags: needinfo?(jib)
Comment 5•8 years ago
|
||
I just commented out waitForPixelColor() from here http://searchfox.org/mozilla-central/rev/b7e531410ebc1c7d74a78e86a894e69608db318c/dom/canvas/test/captureStream_common.js#146 which appears to be one function still using mozPaintedFrames.
And with waitForPixelColor() not being available webrtc tests depending on video playback verification still pass. So I think our webrtc test don't depend on any of the above listed moz*Frames.
That being said it makes sense to add some telemetry to find out if there are WebRTC services out there using/depending on any of these.
Comment 6•8 years ago
|
||
waitForPixelColor() causes timeouts if mozPaintedFrames does not advance, so commenting it out disables the tests.
I like the direction, but see at least one obstacle:
In https://jsfiddle.net/jib1/cfcoqdwz/6/ v.getVideoPlaybackQuality().totalVideoFrames returns 0 in both release and Nightly.
Compare to the base version https://jsfiddle.net/jib1/cfcoqdwz using v.mozPaintedFrames || v.webkitDecodedFrameCount which works.
Do we have a bug for that? We'd need totalVideoFrames fixed before we can migrate WebRTC tests away from mozPaintedFrames.
Also note that in Chrome and Canary I get TypeError: v.getVideoPlaybackQuality is not a function...
I'd feel better about removing these once a stable web compatible alternative exists.
Flags: needinfo?(jib)
Updated•8 years ago
|
Flags: needinfo?(jyavenard)
(In reply to Jan-Ivar Bruaroey [:jib] from comment #6)
> I'd feel better about removing these once a stable web compatible
> alternative exists.
Edge and Firefox already implement it. It's only busted on Chrome and Safari.
Comment 8•8 years ago
|
||
totalVideoFrames is managed by the MediaFormatReader, which doesn't get involved with webRTC...
This is more a webRTC bug really...
I'm fairly certain it's supported by Chrome, they were the one pushing for this API after all (along with Microsoft)
Flags: needinfo?(jyavenard)
Comment 9•8 years ago
|
||
if webRTC supports moz*Frames, adapting it to instead support the video playback quality should be fairly straight forward.
Comment 10•8 years ago
|
||
VideoPlaybackQuality is apparently behind a pref in Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=644731
Unprefing appears blocked on this spec issue, which suggests VideoPlaybackQuality is legacy (?)
https://github.com/WICG/media-playback-quality/issues/7
Flags: needinfo?(jyavenard)
Updated•8 years ago
|
Priority: -- → P3
| Reporter | ||
Comment 11•7 years ago
|
||
Unsigned myself since I am no longer working on this.
Assignee: tihuang → nobody
Updated•5 years ago
|
Type: enhancement → task
Comment 12•5 years ago
|
||
(In reply to Jan-Ivar Bruaroey [:jib] (needinfo? me) from comment #10)
VideoPlaybackQuality is apparently behind a pref in Chrome
https://bugs.chromium.org/p/chromium/issues/detail?id=644731Unprefing appears blocked on this spec issue, which suggests
VideoPlaybackQuality is legacy (?)
https://github.com/WICG/media-playback-quality/issues/7
it has.
Flags: needinfo?(jyavenard)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•