Autoplay after allow mic access
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
People
(Reporter: m6oh7z, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
Steps to reproduce:
- User "Alice" with firefox in Windows connects to a page, say "https://www.foo.bar/login". User enters access code and , after verification, it is redirected to "https://www.foo.bar/service".
- A second user "Bob" follows same steps. BOB DOES NO ACTION IN THE PAGE https://www.foo.bar/service, just looks at it.
- Alice pushes a button to open bidirectional audio with Bob (webrtc is used to open bidirectional audio channels). It gives permission to use its mic.
- Bob computer requests permission to the user to allow access to the microphone (assume the user allows it).
- Webrtc stablishes audio channels in both directions. However ...
Actual results:
Bob is not listening audio form Alice. Alice listens audio from to Bob.
Alice -> Bob: OK
Bob -> Alice: KO
An error appears in Bob console "Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted."
Expected results:
As Bob has allowed usage of its microphone, I expected this action is enough to user-gesture-activated, allowing the autoplay.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
Hi, do you have a test page which you could give us for debugging? Because we do allow autoplay if user have permissions for mic, camera or screen. Maybe the site requests autoplay before user grants mic permission, so the autoplay couldn't start?
(In reply to Alastor Wu [:alwu] from comment #2)
Hi, do you have a test page which you could give us for debugging? Because we do allow autoplay if user have permissions for mic, camera or screen. Maybe the site requests autoplay before user grants mic permission, so the autoplay couldn't start?
Completely true what you say, by mistake (a promise still not yet executed), autoplay was set before the call to getUserMedia.
My apologies for the mistake.
Description
•