jhuckaby / webcamjs

HTML5 Webcam Image Capture Library with Flash Fallback
MIT License
2.5k stars 1.11k forks source link

iOS/Safari 11 #245

Open ScottDellinger opened 7 years ago

ScottDellinger commented 7 years ago

Have you had the chance to test this with iOS 11 or Safari 11? Supposedly, they support the WebRTC standard, so I'm hoping this will finally work on those devices!

jhuckaby commented 7 years ago

Hey Scott, nope, not yet, but I am definitely looking forward to trying it out!

ganguru commented 7 years ago

Hi jhuckaby, did you get a chance to try this. I tried the test page but getting a TypeError

jhuckaby commented 7 years ago

Hey there -- Yeah, I have tried Safari 11 and it definitely doesn't work at all. I also see the TypeError, but I am not sure what is going on yet. Note that none of the HTML5 web cam demos I know of even work. I think Apple/WebKit has done something weird in this release.

jhuckaby commented 7 years ago

Alas, I think we may have to wait for a point upgrade: https://www.reddit.com/r/javascript/comments/72f5v8/webrtc_still_broken_in_safari_11/

zsalab commented 7 years ago

I also tried to fix the userMedia with iOS but no luck, my advice to change the if statement and let the previous iOS workaround to go (until the userMedia support not fixed in iOS)

ganguru commented 7 years ago

zsalab - Thank you very much. I agree with you. Really appreciate the code update

ScottDellinger commented 7 years ago

Just tested this on an iPhone 6 running iOS 11: https://webrtc.github.io/samples/src/content/getusermedia/gum/

And it works. This leads me to believe we should be able to get it working here.

ScottDellinger commented 7 years ago

https://github.com/webrtc/samples/issues/929 <-- this here says that if you add "playsinline" to the video tag it will work. When I inspect the video on the page I linked above, it does indeed have "playsinline" and "autoplay" set.

zsalab commented 7 years ago

@ScottDellinger please check out my last comment here: #247