Skip to content

Commit

Permalink
Remove android chrome temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KabanFriends committed Jan 9, 2024
1 parent a9c4fde commit 40fbe4f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions public/js/player.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const mobile = new MobileDetect(window.navigator.userAgent);
//const mobile = new MobileDetect(window.navigator.userAgent);

let player;

Expand All @@ -18,11 +18,6 @@ function start(name) {
unmuteOverlay: "hidden",
};

if (mobile.is("AndroidOS") && !!window.chrome) {
console.log("Set preferred renderer to WebGL as the client uses Chrome on Android (https://bugs.chromium.org/p/chromium/issues/detail?id=1510149)")
player.config.preferredRenderer = "webgl";
}

player.load({ url: url });
}

Expand Down

0 comments on commit 40fbe4f

Please sign in to comment.