Bug 180061 - getUserMedia fails inconsistently with NotReadableError (DOM Exception 27): The I/O read operation failed.
Summary: getUserMedia fails inconsistently with NotReadableError (DOM Exception 27): T...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 11
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-27 16:50 PST by Eric Davies
Modified: 2017-11-27 16:50 PST (History)
1 user (show)

See Also:


Attachments
example code that calls getUserMedia (590 bytes, text/html)
2017-11-27 16:50 PST, Eric Davies
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Davies 2017-11-27 16:50:47 PST
Created attachment 327714 [details]
example code that calls getUserMedia

I've included some sample code in the attachment.
What I'm observing is some really inconsistent behavior depending on where the page is hosted.

If the page is hosted "localhost" and develope/webrtc/allow insecure sites is enabled, then getUserMedia always succeeds.
If the page is hosted some sites (like https://webrtc.github.io/samples/src/content/getusermedia/gum/ ), again, it always succeeds.
If the page is hosted on our own https site (which Safari identifies as having a valid certificate), or bl.ocks.org (https://bl.ocks.org/EricDavies/32f085fab3e42ba9c6b3a799e4961c76 ) then once in a blue moon, it succeeds. Otherwise it fails with   "NotReadableError (DOM Exception 27): The I/O read operation failed.". The failure happens after its asked for permission to use the camera and the user has granted it.

Chrome and firefox work consistently in all scenarios.