mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-25 06:57:22 +00:00
Prevent VR from being initialized in listen mode (#2396)
This commit is contained in:
parent
947fe4fbb3
commit
5054510d15
@ -149,7 +149,7 @@ player.on('error', function (event) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Enable VR video support
|
// 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")
|
player.crossOrigin("anonymous")
|
||||||
switch (video_data.projection_type) {
|
switch (video_data.projection_type) {
|
||||||
case "EQUIRECTANGULAR":
|
case "EQUIRECTANGULAR":
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<script src="/js/silvermine-videojs-quality-selector.min.js?v=<%= ASSET_COMMIT %>"></script>
|
<script src="/js/silvermine-videojs-quality-selector.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if params.vr_mode %>
|
<% if !params.listen && params.vr_mode %>
|
||||||
<link rel="stylesheet" href="/css/videojs-vr.css?v=<%= ASSET_COMMIT %>">
|
<link rel="stylesheet" href="/css/videojs-vr.css?v=<%= ASSET_COMMIT %>">
|
||||||
<script src="/js/videojs-vr.js?v=<%= ASSET_COMMIT %>"></script>
|
<script src="/js/videojs-vr.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user