Skip to content

Commit

Permalink
Substitute srcObject for URL.createObjectURL()
Browse files Browse the repository at this point in the history
  • Loading branch information
guest271314 authored Oct 16, 2020
1 parent f1c7ef6 commit 460c90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var Camera = (function () {
_this._sec_per_frame = 1 / _this._fps;
_this._first_timestamp = _this._prev_frame_index = -1;
_this._video = document.createElement('video');
_this._video.src = URL.createObjectURL(strm);
_this._video.srcObject = strm;
_this._video.play();
_this._video.addEventListener('loadedmetadata', function (e) {
var w = _this._width = _this._video.videoWidth;
Expand Down

0 comments on commit 460c90d

Please sign in to comment.