????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.36 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.se/360/TEST/utils/video/ |
Upload File : |
/*
* Video.js plugin for Pannellum
* Copyright (c) 2015-2016 Matthew Petroff
* MIT License
*/
(function(document, videojs, pannellum) {
'use strict';
videojs.plugin('pannellum', function() {
// Create Pannellum instance
var player = this;
var container = player.el();
var vid = container.getElementsByTagName('video')[0],
pnlmContainer = document.createElement('div'),
config = {
'type': 'equirectangular',
'dynamic': true,
'showZoomCtrl': false,
'showFullscreenCtrl': false,
'autoLoad': true,
'panorama': vid
};
pnlmContainer.style.visibility = 'hidden';
var pnlm = pannellum.viewer(pnlmContainer, config);
container.insertBefore(pnlmContainer, container.firstChild);
vid.style.display = 'none';
// Handle update settings
player.on('play', function() {
if (vid.readyState > 1)
pnlm.setUpdate(true);
});
player.on('canplay', function() {
if (!player.paused())
pnlm.setUpdate(true);
});
player.on('pause', function() {
pnlm.setUpdate(false);
});
player.on('loadeddata', function() {
pnlmContainer.style.visibility = 'visible';
});
player.on('seeking', function() {
if (player.paused())
pnlm.setUpdate(true);
});
player.on('seeked', function() {
if (player.paused())
pnlm.setUpdate(false);
});
});
})(document, videojs, pannellum);