start blocked AudioContext when it's MediaStreamAudioSourceNode starts

RESOLVED FIXED in Firefox 67

Status

()

enhancement
P2
normal
Rank:
15
RESOLVED FIXED
8 months ago
6 months ago

People

(Reporter: alwu, Assigned: alwu)

Tracking

(Blocks 1 bug)

unspecified
mozilla67
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox67 fixed)

Details

Attachments

(2 attachments)

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 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.