Prevent VR from being initialized in listen mode

This commit is contained in:
syeopite 2021-09-11 17:10:28 -07:00
parent 50c8afb525
commit f02e941e10
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82
2 changed files with 2 additions and 2 deletions

View File

@ -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":

View File

@ -25,7 +25,7 @@
<script src="/js/silvermine-videojs-quality-selector.min.js?v=<%= ASSET_COMMIT %>"></script>
<% end %>
<% if params.vr_mode %>
<% if !params.listen && params.vr_mode %>
<link rel="stylesheet" href="/css/videojs-vr.css?v=<%= ASSET_COMMIT %>">
<script src="/js/videojs-vr.js?v=<%= ASSET_COMMIT %>"></script>
<% end %>