|
@@ -217,7 +217,6 @@
|
|
|
canvas.width = 640;
|
|
|
canvas.height = 480;
|
|
|
const ctx = canvas.getContext('2d');
|
|
|
-
|
|
|
var pos = 100;
|
|
|
window.setInterval(function() {
|
|
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
@@ -323,7 +322,7 @@
|
|
|
|
|
|
// initialize the publisher
|
|
|
var publisherOptions = {
|
|
|
- videoSource: canvas.captureStream(1).getVideoTracks()[0],
|
|
|
+ videoSource: canvas.captureStream(1).getVideoTracks()[0], // TODO: Comment this line to use webcam
|
|
|
insertMode: 'append',
|
|
|
width: '100%',
|
|
|
height: '100%',
|