瀏覽代碼

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

pull/663/head
Matthew Petroff 6 年之前
父節點
當前提交
4d1c54f248
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      utils/video/videojs-pannellum-plugin.js

+ 3
- 1
utils/video/videojs-pannellum-plugin.js 查看文件

@@ -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…
取消
儲存