Skip to content

Commit

Permalink
Revert "Remove android chrome temp fix"
Browse files Browse the repository at this point in the history
This reverts commit 40fbe4f.
  • Loading branch information
KabanFriends committed Jan 9, 2024
1 parent 40fbe4f commit 6a9255a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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,6 +18,11 @@ 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 6a9255a

Please sign in to comment.