instascan icon indicating copy to clipboard operation
instascan copied to clipboard

Not working with Firefox 62.0

Open mariuskarotkis opened this issue 5 years ago • 9 comments

Unhandled promise rejection TypeError: "Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL."

mariuskarotkis avatar Sep 10 '18 10:09 mariuskarotkis

[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.

mariuskarotkis avatar Sep 10 '18 10:09 mariuskarotkis

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 .

hajime651118 avatar Sep 12 '18 11:09 hajime651118

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.

hajime651118 avatar Sep 13 '18 03:09 hajime651118

Any updates on this? This is quite critical

bologer avatar Sep 13 '18 09:09 bologer

@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.

bologer avatar Sep 13 '18 09:09 bologer

Temporary fix in issue #177. Someone tried it on Firefox and it worked!

LiveG-Technologies avatar Sep 15 '18 07:09 LiveG-Technologies

@LiveG-Technologies yes, this worked

bologer avatar Sep 15 '18 07:09 bologer

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

amielouise2 avatar Jan 01 '19 21:01 amielouise2

how do i fix this in react

rahmangate avatar Feb 10 '20 10:02 rahmangate