Skip to content

Commit c3ef155

Browse files
committed
fixed setCamera not changing webcamera :)
1 parent 47b00d3 commit c3ef155

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/jscam.as

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,15 @@ class JSCam {
148148
camera = Camera.get(id);
149149
camera.setQuality(0, 100);
150150
camera.setMode(Stage.width, Stage.height, 24, false);
151+
152+
_root.removeMovieClip();
153+
_root.attachMovie("clip", "video", 1);
154+
_root.video.attachVideo(camera);
155+
_root.video._x = 0;
156+
_root.video._y = 0;
157+
151158
return true;
159+
152160
}
153161
return false;
154162
}

0 commit comments

Comments
 (0)