New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS11 - Web RTC compatability #54
Comments
$500 Bounty |
This bounty is still valid - and i will honor it. |
+1 |
@ddwyer We implemented Instascan in out application recently. It's a great library and worked as expected. We didn't use the released version, but built a fresh one from master. Here is what I did to get a fresh build to our app:
Selecting a camera based on ID didn't work. It always used the front camera. We solved this by adding an ugly patch to camera.js:
I wouldn't create a PR for this change as it's not a nice solution. But it works, feel free to use it in your projects. |
Just fyi, in iOS11 beta the serratus/quaggaJS@e8352c7#diff-afd7828cb7f3e7a1f8fe7305f50b5021 |
i can confirm that we followed the instructions by @Inorbert and shazam .. like magic it's all working. |
This is fixed in /pull/78. Don't forget to manually include the latest |
@PallasKatze is a javascript GURU - this is all working now and maybe should be tested and merged ? in case anybody is interested the bounty was paid in full -- thanks for your help. |
why do I not work it on safari11
|
Here is a version that works compiled from https://github.com/centogram/instascan |
@centogram is it possible for me to use the front camera with your ios11 code? thanks :) |
@pandalion yes, but you will need to modify the code. You'll just want to change the constraints.video.facingMode constraint from "environment" to "user". |
@centogram work like a charm. Grats! |
@centogram @hrrsppzgl |
@adelsadek1 |
@hrrsppzgl yes I have but still not working @centogram mentioned to modify line but I didn't which line I have to modify |
Hi @lnorbert I tried to follow your steps,
But when try the first cmd, it throws the below error Please, can you help me out here? Thank you |
Thankyou for this Great work,
we are trying to implement this code for scanning QR code in IOS browser , we are testing with the latest IOS11 beta which has support for Web RTC.
we have access to eth camera , and webRTC getUserMedia()
however i am getting a persistent error = Unhandled Promise Rejection: TypeError: Type error at line 13231
case 3:
return this._stream = i.sent, i.abrupt("return", window.URL.createObjectURL(this._stream));
also IOS webkit version which is RTC compatible = 604
so will probably need to update line 13168
if (!navigator.userAgent.match(/Version\/(\d+).(\d+)/)) return e.browser = "Unsupported webkit-based browser with GUM support but no WebRTC support.", e; e.browser = "safari", e.version = this.extractVersion(navigator.userAgent, /AppleWebKit\/([0-9]+)\./, 1), e.minVersion = 602 }
The text was updated successfully, but these errors were encountered: