tracking.js icon indicating copy to clipboard operation
tracking.js copied to clipboard

tracking.js is not supported in IOS 11

Open BobLiu2046 opened this issue 8 years ago • 7 comments

Apple now officially "supports" WebRTC in iOS 11, but when I run the tracking sample in Safari in IOS11, and allow tracking.js to access the camera, it's still not working

BobLiu2046 avatar Aug 04 '17 09:08 BobLiu2046

For reference, here's the screenshot of the website on iOS 11 (on an iPhone 7):

img_7325

And here's the error it generates in the console (not emulated, plugged iPhone into computer running Safari Preview):

screen shot 2017-08-08 at 5 53 29 pm

Looks like it's 404ing when attempting to get the MediaStream on iOS?

cwervo avatar Aug 08 '17 15:08 cwervo

This shim fixes the issue. https://github.com/webrtc/adapter

MKRazz avatar Dec 11 '17 23:12 MKRazz

whoaa.. what is this ? @MKRazz is this going to be fixed for trackingjs ? or how do we use it ?

omarojo avatar Dec 13 '17 19:12 omarojo

@omarojo It's like a polyfill, so you just need to include its adapter.js first, then it should just work in tracking.js.

MKRazz avatar Dec 13 '17 19:12 MKRazz

@MKRazz doesn't seem to work for me on iOS 11.12 + Cordova 7.0.1

BrettGregson avatar Jan 16 '18 14:01 BrettGregson

Heja!

Just a sidenote... as it's fixed using the adapter.js, I'd suggest to include it directly in the example(s). Thus when checking it out, it just works without any further questions asked (or issues searched).

Also adding a note in the readme would feel helpful..

tschiemer avatar Oct 07 '18 15:10 tschiemer

Had to set these attributes in ios 12: video.setAttribute('autoplay', ''); video.setAttribute('muted', ''); video.setAttribute('playsinline', '');

etown avatar Nov 01 '18 19:11 etown