Skip to content

Commit

Permalink
Update positionalTracking.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyH2 committed Apr 11, 2024
1 parent 585b648 commit 6e33450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/positionalTracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class PositionalTracking {
navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: "user" }}).then(function success(stream) {
document.querySelector("#cameraFeed").srcObject = stream;

this.cameraWidth = stream.getTracks()[0].getSettings().width;
this.cameraHeight = stream.getTracks()[0].getSettings().height;
scope.cameraWidth = stream.getTracks()[0].getSettings().width;
scope.cameraHeight = stream.getTracks()[0].getSettings().height;

scope.start();
});
Expand Down

0 comments on commit 6e33450

Please sign in to comment.