webcamjs icon indicating copy to clipboard operation
webcamjs copied to clipboard

iOS/Safari 11

Open ScottDellinger opened this issue 7 years ago • 9 comments

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!

ScottDellinger avatar Sep 10 '17 18:09 ScottDellinger

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

jhuckaby avatar Sep 10 '17 23:09 jhuckaby

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

ganguru avatar Sep 20 '17 21:09 ganguru

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 avatar Sep 23 '17 04:09 jhuckaby

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/

jhuckaby avatar Sep 26 '17 02:09 jhuckaby

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)

zsalab avatar Oct 01 '17 19:10 zsalab

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

ganguru avatar Oct 04 '17 14:10 ganguru

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 avatar Oct 06 '17 03:10 ScottDellinger

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.

ScottDellinger avatar Oct 06 '17 03:10 ScottDellinger

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

zsalab avatar Oct 06 '17 04:10 zsalab