Skip to content
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

url-createobjecturl-no-longer-accepts-mediastream - bug after update on CHROME E AND FIREFOX #9

Open
DouglasWaltricke opened this issue Dec 18, 2018 · 2 comments

Comments

@DouglasWaltricke
Copy link

After a update on firefox that recently was applied in chrome too, the camera doest not work anymore.

Probably because of this:
https://www.fxsitecompat.com/en-CA/docs/2018/url-createobjecturl-no-longer-accepts-mediastream-as-argument/

Can someone help-me ?

On the console we have this error.

webcamController.onError : Error: Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL.
attach/<@https://weberamaral.github.io/ng-webcam/vendors/webcamjs/webcam.min.js:2:3500

@learnwithkawsar
Copy link

Facing same problem after chrome update .

@DouglasWaltricke
Copy link
Author

@kawsar71 I resolved with this:

scope.videoStream = $sce.trustAsResourceUrl(video.srcObject.toString())

You will need to change the library, do your own version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants