Skip to content

Commit

Permalink
set srcObject to null if itis set
Browse files Browse the repository at this point in the history
  • Loading branch information
fippo committed Jun 9, 2015
1 parent 58e6b39 commit afafe46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion photocapture/scripts/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
currentCam = 0;
}
var video = document.getElementById('videoTag');
video.srcObject = undefined;
if (typeof(video.srcObject) !== 'undefined') video.srcObject = null;
video.src = null;
if(mediaStream) {
var videoTracks = mediaStream.getVideoTracks();
Expand Down

0 comments on commit afafe46

Please sign in to comment.