Changing original media element volume and mute should not affect audio captured through captureStream()
Categories
(Core :: Audio/Video: MediaStreamGraph, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete)
Attachments
(7 files, 1 obsolete file)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
1.35 KB,
text/html
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
STR.
- go to https://jsfiddle.net/drqLhbx8/1/ (it needs bug 2007596 and pref
media.captureStream.enabled=true) - start video
- press
start captureStreambutton - mute the original video
Expected.
5. the new video is still audible
Actual.
5. the new video becomes muted as well
Comment 2•3 months ago
|
||
Note that MediaElementAudioSourceNode should apply volume, so if used in combination with captureStream you should end up with some tracks with applied volume and some without.
| Assignee | ||
Comment 3•3 months ago
|
||
Updated•3 months ago
|
| Assignee | ||
Comment 4•3 months ago
|
||
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 5•3 months ago
|
||
| Assignee | ||
Comment 6•3 months ago
|
||
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 7•3 months ago
|
||
- Play "MediaElementAudioSourceNode" element.
- Mute "MediaElementAudioSourceNode" element.
Expect: no audio output.
Actual: audio output.
https://phabricator.services.mozilla.com/D279751?id=1194910 fixes this.
Comment 8•3 months ago
|
||
| dev-doc-info | ||
Would be good to capture these behavior changes in release notes for developers.
To summarize:
- MediaElementAudioSourceNode will now capture audio at the media element's volume also when the media element is playing a MediaStream, per spec.
- mozCaptureStream (and soon captureStream) will capture audio without applying the media element's volume, regardless of the type of source the media element is playing, per spec.
| Assignee | ||
Comment 9•3 months ago
|
||
| Assignee | ||
Comment 10•3 months ago
|
||
Updated•3 months ago
|
| Assignee | ||
Comment 11•3 months ago
|
||
Window audio capture now captures all audio sources at full volume,
regardless of the mute state of individual elements. We will address
this problem further in bug 1864067.
Update the test to expect 5 frequency peaks instead of 3 (including
the muted elements)
Updated•3 months ago
|
Updated•2 months ago
|
Comment 12•2 months ago
|
||
Comment 14•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8cd32254da8d
https://hg.mozilla.org/mozilla-central/rev/c23e57301169
https://hg.mozilla.org/mozilla-central/rev/4adc67f8f311
https://hg.mozilla.org/mozilla-central/rev/4ae77e6a4810
https://hg.mozilla.org/mozilla-central/rev/cd257972a761
https://hg.mozilla.org/mozilla-central/rev/0455c603ae10
| Assignee | ||
Updated•2 months ago
|
Comment 16•2 months ago
•
|
||
FF149 MDN work for this can be tracked in https://github.com/mdn/content/issues/43215 (was https://github.com/mdn/content/issues/43213)
What documentation did you think should be done?
Support for non-prefixed HTMLMediaElement.captureStream() only came in the same release. So to me this looks like (part of the) "Implementation of that method as you would expect from the specification". So not planning on capturing this.
But if there is specific developer-facing information that needs to be conveyed, please let me know!
Comment 17•2 months ago
|
||
See comment 8. So mainly developer release notes and that this affects MediaElementAudioSourceNode as well.
Comment 18•2 months ago
|
||
Thank you. This will be captured in https://github.com/mdn/content/pull/43349
Description
•