New issue
Advanced search Search tips

Issue 851879 link

Starred by 5 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

race condition with setSinkId on HTMLMediaElement

Reported by seba.ker...@gmail.com, Jun 12 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36

Steps to reproduce the problem:
1. Create a HTMLMediaElement (audio or video) with autoplay
2. Set the sink id to a non-default speaker (multiple speakers required to be able to verify this)
3. Immediately after (so don't try to do this manually) set the 'srcObject'

Try the attached reproduction, or this codepen: https://codepen.io/sebakerckhof/pen/OEpwJO

What is the expected behavior?
Sound plays from the sink id you've selected

What went wrong?
Sound plays from the default speakers instead. This seems to be a race condition, since it does work if you set the 'srcObject' later, or if you call 'setSinkId' after setting the 'srcObject'.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 67.0.3396.62  Channel: stable
OS Version: Ubuntu 18.04
Flash Version:
 
setsinkid.html
2.0 KB View Download
Labels: Needs-Triage-M67
Components: -Blink>Media Blink>Media>Autoplay
Labels: TE-NeedsTriageFromHYD Triaged-ET
We don't have multiple speakers set up available to test and confirm this from TE-end. Hence, tentatively adding component for further triaging.
Adding label TE-NeedsTriageFromHYD for further triaging from the inhouse team.

Thanks...!!
Labels: -TE-NeedsTriageFromHYD TE-NeedsTriageFromMTV
Routing this issue to MTV team to verify on multiple speakers setup.

Thanks!
Components: -Blink>Media>Autoplay Blink>WebRTC
setSinkId is part of WebRTC.

Comment 5 by guidou@chromium.org, Jun 26 2018

Components: -Blink>WebRTC Blink>WebRTC>Audio
Owner: guidou@chromium.org
Status: Assigned (was: Unconfirmed)
I'll take a look at this.
Labels: -TE-NeedsTriageFromMTV
Ownership assigned, updating labels.

Sign in to add a comment