|
@@ -7,12 +7,14 @@ |
|
|
(function(document, videojs, pannellum) { |
|
|
(function(document, videojs, pannellum) { |
|
|
'use strict'; |
|
|
'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 |
|
|
// Create Pannellum instance |
|
|
var player = this; |
|
|
var player = this; |
|
|
var container = player.el(); |
|
|
var container = player.el(); |
|
|
var vid = container.getElementsByTagName('video')[0], |
|
|
var vid = container.getElementsByTagName('video')[0], |
|
|
pnlmContainer = document.createElement('div'); |
|
|
pnlmContainer = document.createElement('div'); |
|
|
|
|
|
pnlmContainer.style.zIndex = '0'; |
|
|
config = config || {}; |
|
|
config = config || {}; |
|
|
config.type = 'equirectangular'; |
|
|
config.type = 'equirectangular'; |
|
|
config.dynamic = true; |
|
|
config.dynamic = true; |
|
|