PageSourceSearch

https://www.swinburne.edu.my/wp-content/plugins/wpvr-pro/admin/lib…/src/js/videojs-pannellum-plugin.js?ver=1

js swinburne.edu.my collected 2026-10-01 11:28:18 UTC 1,722 bytes, 55 lines download raw bytes

vendor: 1,722 bytes, lines 1-55
1/*
2 * Video.js plugin for Pannellum
3 * Copyright (c) 2015-2018 Matthew Petroff
4 * MIT License
5 */
6
7(function(document, videojs, pannellum) {
8'use strict';
9
10var registerPlugin = videojs.registerPlugin || videojs.plugin;  // Use registerPlugin for Video.js >= 6
11registerPlugin('pannellum', function(config) {
12    // Create Pannellum instance
13    var player = this;
14    var container = player.el();
15    var vid = container.getElementsByTagName('video')[0],
16        pnlmContainer = document.createElement('div');
17    pnlmContainer.style.zIndex = '0';
18    config = config || {};
19    config.type = 'equirectangular';
20    config.dynamic = true;
21    config.showZoomCtrl = false;
22    config.showFullscreenCtrl = false;
23    config.autoLoad = true;
24    config.panorama = vid;
25    pnlmContainer.style.visibility = 'hidden';
26    player.pnlmViewer = pannellum.viewer(pnlmContainer, config);
27    container.insertBefore(pnlmContainer, container.firstChild);
28    vid.style.display = 'none';
29
30    // Handle update settings
31    player.on('play', function() {
32        if (vid.readyState > 1)
33            player.pnlmViewer.setUpdate(true);
34    });
35    player.on('canplay', function() {
36        if (!player.paused())
37            player.pnlmViewer.setUpdate(true);
38    });
39    player.on('pause', function() {
40        player.pnlmViewer.setUpdate(false);
41    });
42    player.on('loadeddata', function() {
43        pnlmContainer.style.visibility = 'visible';
44    });
45    player.on('seeking', function() {
46        if (player.paused())
47            player.pnlmViewer.setUpdate(true);
48    });
49    player.on('seeked', function() {
50        if (player.paused())
51            player.pnlmViewer.setUpdate(false);
52    });
53});
54
55})(document, videojs, pannellum);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.