leemeichin / say-cheese

Minimal javascript library for integrating a webcam and snapshots into your app.
http://leemachin.github.com/say-cheese
MIT License
551 stars 98 forks source link

Deprecated method getStreamUrl #46

Closed thiagoSLV closed 3 years ago

thiagoSLV commented 5 years ago

The script calls method 'getStreamUrl()' on line 159

It displays the following error message on console: 'say-cheese.js:86 Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. at SayCheese.getStreamUrl (say-cheese.js:86) at SayCheese.success (say-cheese.js:159)'

The method 'getStreamUrl' calls deprecated method createObjectURL on line 86.

belugalabsdev commented 5 years ago

Is any solutions?

thiagoSLV commented 5 years ago

Is any solutions?

There is on https://github.com/leemachin/say-cheese/pull/45#issue-152929668 but the maintaners don't merge the branch.

You can download the script and replace line 159 with: "this.video.srcObject = this.stream;"

belugalabsdev commented 5 years ago

Is any solutions?

There is on #45 (comment) but the maintaners don't merge the branch.

You can download the script and replace line 159 with: "this.video.srcObject = this.stream;"

Thanks, it's working now!