From 6e33450a6a4af9ca9ada94ddf607e8518c06ff09 Mon Sep 17 00:00:00 2001 From: CrazyH <87752773+CrazyH2@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:16:39 +0100 Subject: [PATCH] Update positionalTracking.js --- server/positionalTracking.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/positionalTracking.js b/server/positionalTracking.js index 9e5c6df..f9ff6e7 100644 --- a/server/positionalTracking.js +++ b/server/positionalTracking.js @@ -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(); });