Skip to content

Commit

Permalink
Remove erroneous MyAvatar calls and fix indents
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfingers committed Dec 3, 2023
1 parent 8b248c1 commit 625be7d
Show file tree
Hide file tree
Showing 3 changed files with 33,083 additions and 7 deletions.
12 changes: 5 additions & 7 deletions applications/emocam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,6 @@
$("#videoSource").val(idValue).prop('selected', true);
$("#videoSource").val(idValue).change();
$("#videoDropdown").val(hrefValue);
MyAvatar.removeAnimationStateHandler(handlerId);
MyAvatar.restoreAnimation();
});
// Enable the live webcam view and start detection.
function enableCam(event) {
Expand Down Expand Up @@ -782,13 +780,13 @@
}

function getStream() {
if (window.stream) {
window.stream.getTracks().forEach(track => {
track.stop();
});
if (window.stream) {
window.stream.getTracks().forEach(track => {
track.stop();
});
}

const videoSource = videoSelect.value;
const videoSource = videoSelect.value;
const constraints = {
video: {deviceId: videoSource ? {exact: videoSource} : undefined}
};
Expand Down
Loading

0 comments on commit 625be7d

Please sign in to comment.