diff --git a/examples/camera/index.html b/examples/camera/index.html
index f07fa64..077994a 100644
--- a/examples/camera/index.html
+++ b/examples/camera/index.html
@@ -46,7 +46,7 @@
if (video.mozCaptureStream) {
video.mozSrcObject = stream;
} else {
- video.src = (URL && URL.createObjectURL(stream)) || stream;
+ video.srcObject = stream;
}
video.play();
},
diff --git a/index.html b/index.html
index 912e4b1..d83bc37 100644
--- a/index.html
+++ b/index.html
@@ -296,12 +296,7 @@
target.width = video.videoWidth;
}
- if (window.URL) {
- video.src = window.URL.createObjectURL(stream);
- } else {
- video.src = stream;
- }
-
+ video.srcObject = stream;
webCamStream = stream;
video.play();
diff --git a/sources/seriously.camera.js b/sources/seriously.camera.js
index 81494d3..0000df2 100644
--- a/sources/seriously.camera.js
+++ b/sources/seriously.camera.js
@@ -97,7 +97,7 @@
if (video.mozCaptureStream) {
video.mozSrcObject = stream;
} else {
- video.src = (URL && URL.createObjectURL(stream)) || stream;
+ video.srcObject = stream;
}
if (video.readyState) {