Closed Bug 1517324 Opened 6 years ago Closed 6 years ago

start blocked AudioContext when it's MediaStreamAudioSourceNode starts

Categories

(Core :: Web Audio, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

In bug1513733, we would resume blocked AudioContext which uses MediaElement as a audio source node when its audio source starts playing. We should also do similar thing for "MediaStreamAudioSourceNode".
Rank: 15
Priority: -- → P2

This patch would try to start blocked AudioContext when it creates a MediaSourceStreamNode which has an active input stream, which means someone is feeding input data to AudioContext.

Therefore, we can do the similar thing like what we did for AudioScheduledSourceNode and MediaElementAudioSource node, to start AudioContext if current autoplay policy has allowed AudioContext to start.

Attachment #9041220 - Attachment description: Bug 1517324 - part1 : try to start blocked AudioContext when it creates a MediaSourceStreamNode with an active input stream. → Bug 1517324 - part1 : try to start blocked AudioContext when it creates a MediaStreamAudioSourceNode with an active input stream.
Attachment #9041221 - Attachment description: Bug 1517324 - part2: add test. → Bug 1517324 - part2: add autoplay test for MediaStreamAudioSourceNode creation with active stream
Attachment #9041221 - Attachment description: Bug 1517324 - part2: add autoplay test for MediaStreamAudioSourceNode creation with active stream → Bug 1517324 - part2: add autoplay test for createMediaStreamSource() with active stream
Attachment #9041220 - Attachment description: Bug 1517324 - part1 : try to start blocked AudioContext when it creates a MediaStreamAudioSourceNode with an active input stream. → Bug 1517324 - part1 : try to start blocked AudioContext with active MediaStreamAudioSourceNode stream
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a04946ac4b3c part1 : try to start blocked AudioContext with active MediaStreamAudioSourceNode stream r=karlt https://hg.mozilla.org/integration/autoland/rev/0f80b6c7fb66 part2: add autoplay test for createMediaStreamSource() with active stream r=karlt
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: