Closed Bug 1606489 Opened 5 years ago Closed 5 years ago

Autoplay after allow mic access

Categories

(Core :: Audio/Video: Playback, defect)

71 Branch
Desktop
Windows 10
defect
Not set
normal

Tracking

()

RESOLVED INVALID

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:

  1. 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".
  2. A second user "Bob" follows same steps. BOB DOES NO ACTION IN THE PAGE https://www.foo.bar/service, just looks at it.
  3. 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.
  4. Bob computer requests permission to the user to allow access to the microphone (assume the user allows it).
  5. 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.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop

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?

Flags: needinfo?(m6oh7z)

(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.

Flags: needinfo?(m6oh7z)
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.