[wmfme] enable media engine for encypted playback on Nightly
Categories
(Core :: Audio/Video: Playback, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(1 external file, 6 obsolete files)
| Assignee | ||
Comment 1•2 years ago
|
||
Depends on D202510
| Assignee | ||
Comment 2•2 years ago
|
||
We should modify this as well before changing the pref the media engine.
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Depends on D202511
Comment 5•2 years ago
|
||
Backed out for causing multiple Media related failures
| Assignee | ||
Comment 6•2 years ago
|
||
When enalbing media engine playback, we would always start with the
external state machine that would communicate with the media engine.
If the media format or key system is not supported by the media engine,
we would fallback to the MediaDecoderStateMachine (MDSM). In this
situation, we want this transition invisible to users.
Therefore, if the external state machine has loaded and informed the
loadedmetadata to the media element, we shouldn't do it again.
According to the spec [1], the loadedmetadata should only be
dispatched once.
[1] https://html.spec.whatwg.org/multipage/media.html#event-media-loadedmetadata
Depends on D202758
| Assignee | ||
Comment 7•2 years ago
|
||
Depends on D203062
| Assignee | ||
Comment 8•2 years ago
|
||
Depends on D203063
| Assignee | ||
Comment 9•2 years ago
|
||
In bug 1853285, we remove the media engine Id check in order to let the
MFCDM process be able to report a correct support list for codecs, which
can be known via RemoteDecoderManagerChild::Supports(). [1]
However, that causes a problem where we would incorrectly use the MFCDM
process for playback which shouldn't be used via the media engine. This
issue was discovered by browser_utility_multipleAudio.js.
Therefore, we still need that Id check to ensure that only using media
engine on correct playback type, and keep the MFCDM process reporting
the correct support list.
Depends on D203064
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 10•2 years ago
|
||
There is a timing issue where we would re-initialize the video bridge
causing an assertion, which is discovered by
browser_utility_multipleAudio.js.
Depends on D203307
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7a2fb26876e1
https://hg.mozilla.org/mozilla-central/rev/dcafb1fadf9b
https://hg.mozilla.org/mozilla-central/rev/fab988ca73ff
https://hg.mozilla.org/mozilla-central/rev/1d7ec3e9b00f
https://hg.mozilla.org/mozilla-central/rev/5f23b23fc038
https://hg.mozilla.org/mozilla-central/rev/c58d5ba5c317
https://hg.mozilla.org/mozilla-central/rev/d07acf022aad
Comment 13•2 years ago
|
||
Backed out for causing frequent media crashes:
Comment 15•2 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/236a38c8865a
| Assignee | ||
Comment 16•2 years ago
|
||
Can anyone provide me error links so that I can know what happened?
Comment 17•2 years ago
|
||
Bug 1824294 had a spike and there were also Microsoft::WRL::ComPtr<T>::InternalRelease crashes.
| Assignee | ||
Comment 18•2 years ago
|
||
Okay thanks, I will take a look on them tomorrow.
| Assignee | ||
Comment 19•2 years ago
|
||
I'm going to land those fixes and improvements first in bug 1884016, and left this bug for only switching the pref.
Comment 20•2 years ago
|
||
Comment on attachment 9382708 [details]
Bug 1881620 - part2 : use ExternalEngineStateMachine for non-mse media only when the media engine pref allows non-encrypted playback.
Revision D202758 was moved to bug 1884016. Setting attachment 9382708 [details] to obsolete.
Comment 21•2 years ago
|
||
Comment on attachment 9388264 [details]
Bug 1881620 - part3 : do not re-inform the decoder owner about loadedmetadata if we've loaded metadata before.
Revision D203062 was moved to bug 1884016. Setting attachment 9388264 [details] to obsolete.
Comment 22•2 years ago
|
||
Comment on attachment 9388265 [details]
Bug 1881620 - part4 : add logging.
Revision D203063 was moved to bug 1884016. Setting attachment 9388265 [details] to obsolete.
Comment 23•2 years ago
|
||
Comment on attachment 9388266 [details]
Bug 1881620 - part5 : update comment.
Revision D203064 was moved to bug 1884016. Setting attachment 9388266 [details] to obsolete.
Comment 24•2 years ago
|
||
Comment on attachment 9388760 [details]
Bug 1881620 - part6 : only create a remote decoder in the MFCDM process if a media engine ID is provided.
Revision D203307 was moved to bug 1884016. Setting attachment 9388760 [details] to obsolete.
Comment 25•2 years ago
|
||
Comment on attachment 9389231 [details]
Bug 1881620 - part7 : avoid re-initialize the video bridge.
Revision D203518 was moved to bug 1884016. Setting attachment 9389231 [details] to obsolete.
Comment 26•2 years ago
|
||
(In reply to Natalia Csoregi [:nataliaCs] from comment #13)
Backed out for causing frequent media crashes:
== Change summary for alert #41758 (as of Tue, 12 Mar 2024 08:02:15 GMT) ==
Regressions:
| Ratio | Test | Platform | Options | Absolute values (old vs new) | Performance Profiles |
|---|---|---|---|---|---|
| 53% | youtube fcp | windows10-64-shippable-qr | fission warm webrender | 117.40 -> 180.03 | Before/After |
| 52% | youtube fcp | windows10-64-shippable-qr | fission warm webrender | 118.15 -> 179.72 | Before/After |
| 21% | youtube FirstVisualChange | windows10-64-shippable-qr | fission warm webrender | 117.24 -> 141.95 | Before/After |
| 10% | instagram loadtime | windows10-64-shippable-qr | cold fission webrender | 1,408.17 -> 1,548.66 | Before/After |
| 8% | instagram FirstVisualChange | linux1804-64-shippable-qr | cold fission webrender | 271.78 -> 292.59 | Before/After |
| 5% | youtube largestContentfulPaint | windows10-64-shippable-qr | fission warm webrender | 984.56 -> 1,037.43 | Before/After |
| 5% | youtube loadtime | windows10-64-shippable-qr | fission warm webrender | 993.71 -> 1,045.79 | Before/After |
| 4% | instagram PerceptualSpeedIndex | linux1804-64-shippable-qr | cold fission webrender | 761.96 -> 789.79 | Before/After |
Improvements:
| Ratio | Test | Platform | Options | Absolute values (old vs new) | Performance Profiles |
|---|---|---|---|---|---|
| 18% | facebook-nav.landing LastVisualChange | windows10-64-shippable-qr | cold fission webrender | 1,866.89 -> 1,521.72 | Before/After |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=41758
| Assignee | ||
Comment 27•2 years ago
|
||
We should remove the perf-alert because the patch hasn't landed yet. If this pref flip causes any performance regression in the future, then please add this keyword back.
Updated•2 years ago
|
Comment 28•2 years ago
|
||
Comment 29•2 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 30•2 years ago
•
|
||
We disabled Dev Edition in bug 1885396, so this is only on Nightly.
Description
•