From 5054510d15d58f4f72e4c004384a90ca61e08c63 Mon Sep 17 00:00:00 2001 From: syeopite <70992037+syeopite@users.noreply.github.com> Date: Tue, 14 Sep 2021 23:37:23 +0000 Subject: [PATCH] Prevent VR from being initialized in listen mode (#2396) --- assets/js/player.js | 2 +- src/invidious/views/components/player_sources.ecr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/player.js b/assets/js/player.js index a8a75f6e3..a461c53d6 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -149,7 +149,7 @@ player.on('error', function (event) { }); // Enable VR video support -if (video_data.vr && video_data.params.vr_mode) { +if (!video_data.params.listen && video_data.vr && video_data.params.vr_mode) { player.crossOrigin("anonymous") switch (video_data.projection_type) { case "EQUIRECTANGULAR": diff --git a/src/invidious/views/components/player_sources.ecr b/src/invidious/views/components/player_sources.ecr index 1490916a1..0d97d35a8 100644 --- a/src/invidious/views/components/player_sources.ecr +++ b/src/invidious/views/components/player_sources.ecr @@ -25,7 +25,7 @@ <% end %> -<% if params.vr_mode %> +<% if !params.listen && params.vr_mode %> <% end %>