Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created Jun 11, 2015
Embed
What would you like to do?
var video = document.getElementById('videoTag');
if (typeof(video.srcObject) != "undefined") {
video.srcObject = stream;
}
else {
video.src = URL.createObjectURL(stream);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment