instascan
instascan copied to clipboard
Not working with Firefox 62.0
Unhandled promise rejection TypeError: "Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL."
[Deprecation] URL.createObjectURL with media streams is deprecated and will be removed in M71, around December 2018. Please use HTMLMediaElement.srcObject instead. See https://www.chromestatus.com/features/5618491470118912 for more details.
In my case, camera window is not there but camera led is on. No scanning. Ubuntu 16.04. This problem starts today. It was working few days ago. Instascan version 2.4.0 Press F12 on FireFox, the console shows the error. However, Demo page works well. Both version are 2.4.0. And I compare my instascan.min.js and Demo's one,
$ ls -al instascan.min.js /var/XXXXXXX/instascan.min.js -rw-rw-r-- 1 XXXXXX XXXXXX 1566037 Sep 12 19:37 instascan.min.js => Demo -rw-rw-r-- 1 XXXXXX XXXXXX 1561845 Mar 5 2018 /var/XXXXXX/instascan.min.js => MY one
Different size. But both of them contain URL.createObjectURL .
I changed as follows and it works. However, depreciation problem is still there.
My script is at local computer. and refer as http .
Change to https as
then it works fine.
Any updates on this? This is quite critical
@hajime651118 it does not work with HTTPs as well, just tested it, gives the same error:
TypeError: Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL.
Temporary fix in issue #177. Someone tried it on Firefox and it worked!
@LiveG-Technologies yes, this worked
This fixed my invalid argument error but I'm still not seeing the playback video. I can scan a qr code with the camera that is found but the webpage is white without a video playing. Any ideas why this is occurring? I'm running Firefox Quantum v. 64.0
how do i fix this in react