Closed AckerApple closed 7 years ago
The following error has a been captured from another user:
When I start to test on Ipad, it shows me the following error,
t.videoObject.capture is not a function. (In 't.videoObject.capture()', 't.videoObject.capture' is undefined) (anonymous function) — index.js:39:276532 t — index.js:39:264598 captureToCanvas — index.js:39:276435 captureBase64 — index.js:39:276603 captureBase64 — index.js:39:227157 (anonymous function) — index.js:39:646539 (anonymous function) — index.js:39:19500 (anonymous function) — index.js:39:130928 onInvokeTask — index.js:39:79398 runTask — index.js:39:254706 invoke — index.js:39:260505
I have been working on this
I found a working demo here: https://s.codepen.io/leemartin/debug/08e0fb00d12f70b751549d31ca77155b
The article that led me to it is here: https://medium.com/@leemartin/hello-webrtc-on-safari-11-e8bcb5335295
NOTE: Safari does not support localhost testing AND ONLY supports HTTPS. I will have to fix this blindly using the GitHub examples https based demo page.
More to come real soon. Gonna work on this now by comparing my code with the working demo code
Fixed in 1.4.0
If I have to revisit this, this link has the proper code: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
New Safari supports getUserMedia() now. The camera DOES seem to turn on. However, the video element is not displaying the camera result. Inspecting element, shows the video tag as missing and instead only a html comment exists <!---->
An error in the Safari console can be seen. Photo attached.