Browse Source

Fix Video.js controls regression in Pannellum 2.4 and add support for Video.js 7.

pull/663/head
Matthew Petroff 6 years ago
parent
commit
4d1c54f248
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      utils/video/videojs-pannellum-plugin.js

+ 3
- 1
utils/video/videojs-pannellum-plugin.js View File

@@ -7,12 +7,14 @@
(function(document, videojs, pannellum) {
'use strict';

videojs.plugin('pannellum', function(config) {
var registerPlugin = videojs.registerPlugin || videojs.plugin; // Use registerPlugin for Video.js >= 6
registerPlugin('pannellum', function(config) {
// Create Pannellum instance
var player = this;
var container = player.el();
var vid = container.getElementsByTagName('video')[0],
pnlmContainer = document.createElement('div');
pnlmContainer.style.zIndex = '0';
config = config || {};
config.type = 'equirectangular';
config.dynamic = true;


Loading…
Cancel
Save