W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2019

Re: [mediacapture-main] Should getUserMedia promise be resolved only on pages that have focus (#560)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Fri, 25 Jan 2019 18:13:19 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-457666903-1548439998-sysbot+gh@w3.org>
> Safari is not resolving getUserMedia promise even in the case where no prompt will be shown to user (say user granted persistent access to this website).

Firefox has the same behavior. Testing with [this fiddle](https://jsfiddle.net/jib1/jyysn48t/) in two tabs, Chrome and (early) Edge do not. @alvestrand @henbos @aboba thoughts?

> relaxing this rule in case the device is already capturing. [ = clone+applyConstraints]

I agree.

> I guess the idea would be to postpone the whole getUserMedia process starting at step 6 until page has focus.

I can submit a PR for discussion. Then we can argue over MAY, SHOULD or MUST, if we like this.

GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/560#issuecomment-457666903 using your GitHub account
Received on Friday, 25 January 2019 18:13:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:10 UTC