This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22217 - What happens if mediastream source becomes unavailable during the consent prompt?
Summary: What happens if mediastream source becomes unavailable during the consent pro...
Status: RESOLVED WONTFIX
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 22251
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-30 15:44 UTC by Dominique Hazael-Massieux
Modified: 2014-04-03 13:14 UTC (History)
2 users (show)

See Also:


Attachments

Description Dominique Hazael-Massieux 2013-05-30 15:44:28 UTC
Imagine the following scenario:
* as a user, I get prompted to authorize access to one of my video cameras via a prompt in the browser
* while I'm taking a decision, the video camera I'm about to grant access to get reserved by another part of the system and is thus no longer usable by the browser

What should getUserMedia do?

I don't know if it should invoke the success callback with an ended stream (this would among other things let the dev access info on other devices), or it should invoke the error callback with a new error.
Comment 1 Dominique Hazael-Massieux 2013-09-02 09:38:05 UTC
#22251 suggests a HardwareUnavailable error
Comment 2 Dominique Hazael-Massieux 2014-04-03 12:42:41 UTC
Thinking some more about it, I think the outcome of this situation probably depends on the timing, the UI, and whether capture devices are locked-in by the browser or the OS.

As a result, it's probably left undefined for the time being, thus I think closing that bug is probably appropriate.
Comment 3 Stefan Hakansson LK 2014-04-03 13:14:49 UTC
Ok, closing.