Skip to content

Commit

Permalink
Remove use of deprecated createObjectURL
Browse files Browse the repository at this point in the history
To fix issue cirocosta#51
  • Loading branch information
BobVul committed Aug 9, 2018
1 parent fe0bbf1 commit 49ccfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qcode-decoder.js
Expand Up @@ -134,7 +134,7 @@ QCodeDecoder.prototype.decodeFromCamera = function (videoElem, cb, once) {
cb(new Error('Couldn\'t get video from camera'));

navigator.getUserMedia(this.videoConstraints, function (stream) {
videoElem.src = window.URL.createObjectURL(stream);
videoElem.srcObject = stream;
scope.videoElem = videoElem;
scope.stream = stream;
scope.videoDimensions = false;
Expand Down

0 comments on commit 49ccfa9

Please sign in to comment.