WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
172675
Setting 'Video Needs User Action' still applies after user media access has been granted
https://bugs.webkit.org/show_bug.cgi?id=172675
Summary
Setting 'Video Needs User Action' still applies after user media access has b...
Andrew Morris
Reported
2017-05-26 18:00:19 PDT
My understanding is that 'Video Needs User Action' should not apply when user media access has been granted, but it does. I get a NotAllowedError. Interestingly though, after delay(0).then(play) (based on setTimeout), it works. Perhaps user media access is indeed unblocking it but the promise is fulfilled with the stream before the unblock occurs.
https://output.jsbin.com/teyaye
This jsbin takes the following queryString parameters: userAction - Play video on user action (uses click event by default) videoFromFile - Play an mp4 file in the video element instead of a user media stream delay - Play video after specified milliseconds (0 by default) Examples: ? - Play user media without delay ?delay - Play user media with 0ms delay ?videoFromFile&delay - Play a file after 0ms delay ?userAction=click&videoFromFile - Play a file on click event ?userAction=touchstart&videoFromFile - Play a file on touchstart event
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug