Disable VP9 support on Android devices without hardware decoder.
Categories
(Core :: Audio/Video: Playback, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: jhlin, Assigned: jya)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Youtube uses MediaSource.isTypeSupported()
to determine whether VP9 video is supported and prefers it over H.264 when it returns true
. However, older devices, such as Moto G5, cannot play VP9 video >= 1080p smoothly. In order to make Youtbue serve H.264 video instead of H.264 on those devices, check if hardware decoder is available and let isTypeSupported()
return false if not.
Reporter | ||
Comment 1•5 years ago
|
||
Hand this over to :jya. Thanks for the help!
Assignee | ||
Comment 2•5 years ago
|
||
We remove the old behaviour that if webm was disabled it would be overridden under some circumstances.
Instead we replace if with a new specialised preference (media.mediasource.vp9.enabled) that is only disabled on Android.
If this pref is disabled, vp9 will only be enabled under some conditions:
- h264 HW decoding is not supported
- mp4 is not enabled
- Device was deemed fast enough to decode VP9 via the P9Benchmark utility
- On Android, A VP9 HW decoder is present.
The primary observable result is that YouTube will serve H264 content on devices with no hardware VP9 decoder
Comment 4•5 years ago
|
||
Backed out changeset 53b2c37566d3 (Bug 1614958) for causing wpt failure /media-source/mediasource-changetype-play-implicit.html
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=289636671&repo=autoland&lineNumber=3725
[task 2020-02-20T03:16:34.006Z] 03:16:34 INFO - TEST-START | /media-source/mediasource-changetype-play-implicit.html
[task 2020-02-20T03:16:34.009Z] 03:16:34 INFO - Closing window 70
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO -
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO - TEST-UNEXPECTED-FAIL | /media-source/mediasource-changetype-play-implicit.html | Check if browser supports enough test media types and pairs of audio-only or video-only media with same bytestream format - assert_true: Browser doesn't support at least 2 audio-only or 2 video-only test media with same bytestream format expected true got false
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO - generateImplicitChangeTypeTests/<@http://web-platform.test:8000/media-source/mediasource-changetype-play-implicit.html:61:16
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1867:25
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO - async_test@http://web-platform.test:8000/resources/testharness.js:584:22
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO - generateImplicitChangeTypeTests@http://web-platform.test:8000/media-source/mediasource-changetype-play-implicit.html:51:13
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO - findSupportedChangeTypeTestTypes@http://web-platform.test:8000/media-source/mediasource-changetype-util.js:110:5
[task 2020-02-20T03:16:36.777Z] 03:16:36 INFO - @http://web-platform.test:8000/media-source/mediasource-changetype-play-implicit.html:85:33
Comment 6•5 years ago
|
||
Backed out changeset 4048d124b522 (bug 1614958) for mda failures at dom/media/mediasource/test/test_AbortAfterPartialMediaSegment.html
Backout: https://hg.mozilla.org/integration/autoland/rev/2028243a2ae4a96e938fdfab4075c7dbcc6e0bec
Failure push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=4048d124b5220f28b9423d26b76dc22cf93e4193
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=290019348&repo=autoland&lineNumber=1884
[task 2020-02-22T12:00:31.692Z] 12:00:31 INFO - 15 INFO TEST-START | dom/media/mediasource/test/test_AbortAfterPartialMediaSegment.html
[task 2020-02-22T12:00:31.692Z] 12:00:31 WARNING - 16 INFO TEST-UNEXPECTED-FAIL | dom/media/mediasource/test/test_AbortAfterPartialMediaSegment.html | failed with error NotSupportedError
[task 2020-02-22T12:00:31.692Z] 12:00:31 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:299:16
[task 2020-02-22T12:00:31.692Z] 12:00:31 INFO - runWithMSE@dom/media/mediasource/test/mediasource.js:33:7
[task 2020-02-22T12:05:33.721Z] 12:05:33 WARNING - 17 INFO TEST-UNEXPECTED-FAIL | dom/media/mediasource/test/test_AbortAfterPartialMediaSegment.html | Test timed out.
[task 2020-02-22T12:05:33.721Z] 12:05:33 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:299:16
[task 2020-02-22T12:05:33.722Z] 12:05:33 INFO - reportError@SimpleTest/TestRunner.js:128:22
[task 2020-02-22T12:05:33.722Z] 12:05:33 INFO - TestRunner._checkForHangs@SimpleTest/TestRunner.js:150:18
Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Backed out changeset fe83145aa0b9 (Bug 1614958) for mochitest failures in test_AbortAfterPartialMediaSegment.html.
https://hg.mozilla.org/integration/autoland/rev/28418b02132f1db7d9214f7cb77735fe85bb76cf
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=290145179&repo=autoland&lineNumber=1865
Comment 10•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Updated•4 years ago
|
Description
•