aboutsummaryrefslogtreecommitdiff
path: root/assets/netcut/lib/videojs-wavesurfer
diff options
context:
space:
mode:
Diffstat (limited to 'assets/netcut/lib/videojs-wavesurfer')
m---------assets/netcut0
-rw-r--r--assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css47
-rw-r--r--assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css.map1
-rw-r--r--assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.min.css3
-rw-r--r--assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js1278
-rw-r--r--assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js.map1
-rw-r--r--assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js9
-rw-r--r--assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js.map1
8 files changed, 1340 insertions, 0 deletions
diff --git a/assets/netcut b/assets/netcut
deleted file mode 160000
-Subproject 3dcf07d83e57191c79654d97310cbeb494ea52b
diff --git a/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css b/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css
new file mode 100644
index 0000000..8e09c6b
--- /dev/null
+++ b/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css
@@ -0,0 +1,47 @@
+/*!
+Default styles for videojs-wavesurfer 2.5.1
+*/
+/* Position fullscreen control on right side of the player.
+--------------------------------------------------------------------------------
+*/
+.video-js.vjs-wavesurfer .vjs-control.vjs-fullscreen-control {
+ position: absolute;
+ right: 0; }
+
+/* Ensure custom controls are always visible because
+ the plugin hides and replace the video.js native mobile
+ controls.
+--------------------------------------------------------------------------------
+*/
+.vjs-wavesurfer .vjs-using-native-controls .vjs-control-bar {
+ display: flex !important; }
+
+/* Ensure playToggle has pointer cursor.
+--------------------------------------------------------------------------------
+*/
+.vjs-wavesurfer button.vjs-play-control.vjs-control.vjs-button {
+ cursor: pointer; }
+
+/* Ensure that vjs menus and interfaces can be interacted with (such as the
+ closed captions button).
+--------------------------------------------------------------------------------
+*/
+.vjs-wavesurfer .vjs-menu-content {
+ z-index: 4; }
+
+.vjs-wavesurfer .vjs-modal-dialog, .vjs-text-track-display {
+ z-index: 4; }
+
+/* Handle responsive / fluid view.
+--------------------------------------------------------------------------------
+*/
+.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay {
+ top: 0;
+ position: absolute !important;
+ width: 100%;
+ min-width: 100%;
+ max-width: 100%;
+ height: 100%; }
+
+
+/*# sourceMappingURL=videojs.wavesurfer.css.map*/ \ No newline at end of file
diff --git a/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css.map b/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css.map
new file mode 100644
index 0000000..c055733
--- /dev/null
+++ b/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack://VideojsWavesurfer/./src/css/videojs.wavesurfer.scss"],"names":[],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe","file":"css/videojs.wavesurfer.css","sourcesContent":["/* Position fullscreen control on right side of the player.\n--------------------------------------------------------------------------------\n*/\n.video-js.vjs-wavesurfer .vjs-control.vjs-fullscreen-control {\n position: absolute;\n right: 0; }\n\n/* Ensure custom controls are always visible because\n the plugin hides and replace the video.js native mobile\n controls.\n--------------------------------------------------------------------------------\n*/\n.vjs-wavesurfer .vjs-using-native-controls .vjs-control-bar {\n display: flex !important; }\n\n/* Ensure playToggle has pointer cursor.\n--------------------------------------------------------------------------------\n*/\n.vjs-wavesurfer button.vjs-play-control.vjs-control.vjs-button {\n cursor: pointer; }\n\n/* Ensure that vjs menus and interfaces can be interacted with (such as the\n closed captions button).\n--------------------------------------------------------------------------------\n*/\n.vjs-wavesurfer .vjs-menu-content {\n z-index: 4; }\n\n.vjs-wavesurfer .vjs-modal-dialog, .vjs-text-track-display {\n z-index: 4; }\n\n/* Handle responsive / fluid view.\n--------------------------------------------------------------------------------\n*/\n.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay {\n top: 0;\n position: absolute !important;\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n height: 100%; }\n"],"sourceRoot":""} \ No newline at end of file
diff --git a/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.min.css b/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.min.css
new file mode 100644
index 0000000..2b7f774
--- /dev/null
+++ b/assets/netcut/lib/videojs-wavesurfer/css/videojs.wavesurfer.min.css
@@ -0,0 +1,3 @@
+/*!
+Default styles for videojs-wavesurfer 2.5.1
+*/.video-js.vjs-wavesurfer .vjs-control.vjs-fullscreen-control{position:absolute;right:0}.vjs-wavesurfer .vjs-using-native-controls .vjs-control-bar{display:flex!important}.vjs-wavesurfer button.vjs-play-control.vjs-control.vjs-button{cursor:pointer}.vjs-text-track-display,.vjs-wavesurfer .vjs-menu-content,.vjs-wavesurfer .vjs-modal-dialog{z-index:4}.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay{height:100%;max-width:100%;min-width:100%;position:absolute!important;top:0;width:100%} \ No newline at end of file
diff --git a/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js
new file mode 100644
index 0000000..4c1b566
--- /dev/null
+++ b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js
@@ -0,0 +1,1278 @@
+/*!
+ * videojs-wavesurfer
+ * @version 2.5.1
+ * @see https://github.com/collab-project/videojs-wavesurfer
+ * @copyright 2014-2018 Collab
+ * @license MIT
+ */
+(function webpackUniversalModuleDefinition(root, factory) {
+ if(typeof exports === 'object' && typeof module === 'object')
+ module.exports = factory(require("videojs"), require("WaveSurfer"));
+ else if(typeof define === 'function' && define.amd)
+ define("VideojsWavesurfer", ["videojs", "WaveSurfer"], factory);
+ else if(typeof exports === 'object')
+ exports["VideojsWavesurfer"] = factory(require("videojs"), require("WaveSurfer"));
+ else
+ root["VideojsWavesurfer"] = factory(root["videojs"], root["WaveSurfer"]);
+})(window, function(__WEBPACK_EXTERNAL_MODULE_video_js__, __WEBPACK_EXTERNAL_MODULE_wavesurfer_js__) {
+return /******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
+/******/ }
+/******/ };
+/******/
+/******/ // define __esModule on exports
+/******/ __webpack_require__.r = function(exports) {
+/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ }
+/******/ Object.defineProperty(exports, '__esModule', { value: true });
+/******/ };
+/******/
+/******/ // create a fake namespace object
+/******/ // mode & 1: value is a module id, require it
+/******/ // mode & 2: merge all properties of value into the ns
+/******/ // mode & 4: return value when already ns object
+/******/ // mode & 8|1: behave like require
+/******/ __webpack_require__.t = function(value, mode) {
+/******/ if(mode & 1) value = __webpack_require__(value);
+/******/ if(mode & 8) return value;
+/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
+/******/ var ns = Object.create(null);
+/******/ __webpack_require__.r(ns);
+/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
+/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
+/******/ return ns;
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = 0);
+/******/ })
+/************************************************************************/
+/******/ ({
+
+/***/ "./node_modules/global/window.js":
+/*!***************************************!*\
+ !*** ./node_modules/global/window.js ***!
+ \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+/* WEBPACK VAR INJECTION */(function(global) {var win;
+
+if (typeof window !== "undefined") {
+ win = window;
+} else if (typeof global !== "undefined") {
+ win = global;
+} else if (typeof self !== "undefined"){
+ win = self;
+} else {
+ win = {};
+}
+
+module.exports = win;
+
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
+
+/***/ }),
+
+/***/ "./node_modules/webpack/buildin/global.js":
+/*!***********************************!*\
+ !*** (webpack)/buildin/global.js ***!
+ \***********************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+var g;
+
+// This works in non-strict mode
+g = (function() {
+ return this;
+})();
+
+try {
+ // This works if eval is allowed (see CSP)
+ g = g || Function("return this")() || (1, eval)("this");
+} catch (e) {
+ // This works if the window reference is available
+ if (typeof window === "object") g = window;
+}
+
+// g can still be undefined, but nothing to do about it...
+// We return undefined, instead of nothing here, so it's
+// easier to handle this case. if(!global) { ...}
+
+module.exports = g;
+
+
+/***/ }),
+
+/***/ "./src/css/videojs.wavesurfer.scss":
+/*!*****************************************!*\
+ !*** ./src/css/videojs.wavesurfer.scss ***!
+ \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+// extracted by mini-css-extract-plugin
+
+/***/ }),
+
+/***/ "./src/js/defaults.js":
+/*!****************************!*\
+ !*** ./src/js/defaults.js ***!
+ \****************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+/**
+ * @file defaults.js
+ * @since 2.0.0
+ */
+
+// plugin defaults
+var pluginDefaultOptions = {
+ // Display console log messages.
+ debug: false,
+ // msDisplayMax indicates the number of seconds that is
+ // considered the boundary value for displaying milliseconds
+ // in the time controls. An audio clip with a total length of
+ // 2 seconds and a msDisplayMax of 3 will use the format
+ // M:SS:MMM. Clips longer than msDisplayMax will be displayed
+ // as M:SS or HH:MM:SS.
+ msDisplayMax: 3
+};
+
+exports.default = pluginDefaultOptions;
+module.exports = exports["default"];
+
+/***/ }),
+
+/***/ "./src/js/utils/format-time.js":
+/*!*************************************!*\
+ !*** ./src/js/utils/format-time.js ***!
+ \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+/**
+ * @file format-time.js
+ * @since 2.0.0
+ */
+
+/**
+ * Format seconds as a time string, H:MM:SS, M:SS or M:SS:MMM.
+ *
+ * Supplying a guide (in seconds) will force a number of leading zeros
+ * to cover the length of the guide.
+ *
+ * @param {number} seconds - Number of seconds to be turned into a
+ * string.
+ * @param {number} guide - Number (in seconds) to model the string
+ * after.
+ * @param {number} msDisplayMax - Number (in milliseconds) to model the string
+ * after.
+ * @return {string} Time formatted as H:MM:SS, M:SS or M:SS:MMM, e.g.
+ * 0:00:12.
+ * @private
+ */
+var formatTime = function formatTime(seconds, guide, msDisplayMax) {
+ // Default to using seconds as guide
+ seconds = seconds < 0 ? 0 : seconds;
+ guide = guide || seconds;
+ var s = Math.floor(seconds % 60),
+ m = Math.floor(seconds / 60 % 60),
+ h = Math.floor(seconds / 3600),
+ gm = Math.floor(guide / 60 % 60),
+ gh = Math.floor(guide / 3600),
+ ms = Math.floor((seconds - s) * 1000);
+
+ // handle invalid times
+ if (isNaN(seconds) || seconds === Infinity) {
+ // '-' is false for all relational operators (e.g. <, >=) so this
+ // setting will add the minimum number of fields specified by the
+ // guide
+ h = m = s = ms = '-';
+ }
+
+ // Check if we need to show milliseconds
+ if (guide > 0 && guide < msDisplayMax) {
+ if (ms < 100) {
+ if (ms < 10) {
+ ms = '00' + ms;
+ } else {
+ ms = '0' + ms;
+ }
+ }
+ ms = ':' + ms;
+ } else {
+ ms = '';
+ }
+
+ // Check if we need to show hours
+ h = h > 0 || gh > 0 ? h + ':' : '';
+
+ // If hours are showing, we may need to add a leading zero.
+ // Always show at least one digit of minutes.
+ m = ((h || gm >= 10) && m < 10 ? '0' + m : m) + ':';
+
+ // Check if leading zero is need for seconds
+ s = s < 10 ? '0' + s : s;
+
+ return h + m + s + ms;
+};
+
+exports.default = formatTime;
+module.exports = exports['default'];
+
+/***/ }),
+
+/***/ "./src/js/utils/log.js":
+/*!*****************************!*\
+ !*** ./src/js/utils/log.js ***!
+ \*****************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+/**
+ * @file log.js
+ * @since 2.0.0
+ */
+
+var ERROR = 'error';
+var WARN = 'warn';
+
+/**
+ * Log message (if the debug option is enabled).
+ */
+var log = function log(args, logType, debug) {
+ if (debug === true) {
+ if (logType === ERROR) {
+ videojs.log.error(args);
+ } else if (logType === WARN) {
+ videojs.log.warn(args);
+ } else {
+ videojs.log(args);
+ }
+ }
+};
+
+exports.default = log;
+module.exports = exports['default'];
+
+/***/ }),
+
+/***/ "./src/js/videojs.wavesurfer.js":
+/*!**************************************!*\
+ !*** ./src/js/videojs.wavesurfer.js ***!
+ \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _log2 = __webpack_require__(/*! ./utils/log */ "./src/js/utils/log.js");
+
+var _log3 = _interopRequireDefault(_log2);
+
+var _formatTime = __webpack_require__(/*! ./utils/format-time */ "./src/js/utils/format-time.js");
+
+var _formatTime2 = _interopRequireDefault(_formatTime);
+
+var _defaults = __webpack_require__(/*! ./defaults */ "./src/js/defaults.js");
+
+var _defaults2 = _interopRequireDefault(_defaults);
+
+var _window = __webpack_require__(/*! global/window */ "./node_modules/global/window.js");
+
+var _window2 = _interopRequireDefault(_window);
+
+var _video = __webpack_require__(/*! video.js */ "video.js");
+
+var _video2 = _interopRequireDefault(_video);
+
+var _wavesurfer = __webpack_require__(/*! wavesurfer.js */ "wavesurfer.js");
+
+var _wavesurfer2 = _interopRequireDefault(_wavesurfer);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
+ * @file videojs.wavesurfer.js
+ *
+ * The main file for the videojs-wavesurfer project.
+ * MIT license: https://github.com/collab-project/videojs-wavesurfer/blob/master/LICENSE
+ */
+
+var Plugin = _video2.default.getPlugin('plugin');
+
+var wavesurferClassName = 'vjs-wavedisplay';
+
+/**
+ * Draw a waveform for audio and video files in a video.js player.
+ *
+ * @class Wavesurfer
+ * @extends videojs.Plugin
+ */
+
+var Wavesurfer = function (_Plugin) {
+ _inherits(Wavesurfer, _Plugin);
+
+ /**
+ * The constructor function for the class.
+ *
+ * @param {(videojs.Player|Object)} player
+ * @param {Object} options - Player options.
+ */
+ function Wavesurfer(player, options) {
+ _classCallCheck(this, Wavesurfer);
+
+ // add plugin style
+ var _this = _possibleConstructorReturn(this, (Wavesurfer.__proto__ || Object.getPrototypeOf(Wavesurfer)).call(this, player, options));
+
+ player.addClass('vjs-wavesurfer');
+
+ // parse options
+ options = _video2.default.mergeOptions(_defaults2.default, options);
+ _this.waveReady = false;
+ _this.waveFinished = false;
+ _this.liveMode = false;
+ _this.debug = options.debug.toString() === 'true';
+ _this.msDisplayMax = parseFloat(options.msDisplayMax);
+ _this.textTracksEnabled = _this.player.options_.tracks.length > 0;
+
+ // microphone plugin
+ if (options.src === 'live') {
+ // check if the wavesurfer.js microphone plugin can be enabled
+ if (_wavesurfer2.default.microphone !== undefined) {
+ // enable audio input from a microphone
+ _this.liveMode = true;
+ _this.waveReady = true;
+ } else {
+ _this.onWaveError('Could not find wavesurfer.js ' + 'microphone plugin!');
+ return _possibleConstructorReturn(_this);
+ }
+ }
+
+ // wait until player ui is ready
+ _this.player.one('ready', _this.initialize.bind(_this));
+ return _this;
+ }
+
+ /**
+ * Player UI is ready: customize controls.
+ */
+
+
+ _createClass(Wavesurfer, [{
+ key: 'initialize',
+ value: function initialize() {
+ // hide big play button
+ this.player.bigPlayButton.hide();
+
+ // the native controls don't work for this UI so disable
+ // them no matter what
+ if (this.player.usingNativeControls_ === true) {
+ if (this.player.tech_.el_ !== undefined) {
+ this.player.tech_.el_.controls = false;
+ }
+ }
+
+ // controls
+ if (this.player.options_.controls === true) {
+ // make sure controlBar is showing
+ this.player.controlBar.show();
+ this.player.controlBar.el_.style.display = 'flex';
+
+ // progress control isn't used by this plugin
+ this.player.controlBar.progressControl.hide();
+
+ // make sure time displays are visible
+ var uiElements = [this.player.controlBar.currentTimeDisplay, this.player.controlBar.timeDivider, this.player.controlBar.durationDisplay];
+ uiElements.forEach(function (element) {
+ // ignore and show when essential elements have been disabled
+ // by user
+ if (element !== undefined) {
+ element.el_.style.display = 'block';
+ element.show();
+ }
+ });
+ if (this.player.controlBar.remainingTimeDisplay !== undefined) {
+ this.player.controlBar.remainingTimeDisplay.hide();
+ }
+
+ // handle play toggle interaction
+ this.player.controlBar.playToggle.on(['tap', 'click'], this.onPlayToggle.bind(this));
+
+ // disable play button until waveform is ready
+ // (except when in live mode)
+ if (!this.liveMode) {
+ this.player.controlBar.playToggle.hide();
+ }
+ }
+
+ // wavesurfer.js setup
+ var mergedOptions = this.parseOptions(this.player.options_.plugins.wavesurfer);
+ this.surfer = _wavesurfer2.default.create(mergedOptions);
+ this.surfer.on('error', this.onWaveError.bind(this));
+ this.surfer.on('finish', this.onWaveFinish.bind(this));
+ if (this.liveMode === true) {
+ // listen for wavesurfer.js microphone plugin events
+ this.surfer.microphone.on('deviceError', this.onWaveError.bind(this));
+ }
+ this.surferReady = this.onWaveReady.bind(this);
+ this.surferProgress = this.onWaveProgress.bind(this);
+ this.surferSeek = this.onWaveSeek.bind(this);
+
+ // only listen to these wavesurfer.js playback events when not
+ // in live mode
+ if (!this.liveMode) {
+ this.setupPlaybackEvents(true);
+ }
+
+ // video.js player events
+ this.player.on('volumechange', this.onVolumeChange.bind(this));
+ this.player.on('fullscreenchange', this.onScreenChange.bind(this));
+
+ // make sure volume is muted when requested
+ if (this.player.muted()) {
+ this.setVolume(0);
+ }
+
+ // video.js fluid option
+ if (this.player.options_.fluid === true) {
+ // give wave element a classname so it can be styled
+ this.surfer.drawer.wrapper.className = wavesurferClassName;
+ // listen for window resize events
+ this.responsiveWave = _wavesurfer2.default.util.debounce(this.onResizeChange.bind(this), 150);
+ _window2.default.addEventListener('resize', this.responsiveWave);
+ }
+
+ // text tracks
+ if (this.textTracksEnabled) {
+ // disable timeupdates
+ this.player.controlBar.currentTimeDisplay.off(this.player, 'timeupdate', this.player.controlBar.currentTimeDisplay.throttledUpdateContent);
+
+ // sets up an interval function to track current time
+ // and trigger timeupdate every 250 milliseconds.
+ // needed for text tracks
+ this.player.tech_.trackCurrentTime();
+ }
+
+ // kick things off
+ this.startPlayers();
+ }
+
+ /**
+ * Initializes the waveform options.
+ *
+ * @param {Object} surferOpts - Plugin options.
+ * @private
+ */
+
+ }, {
+ key: 'parseOptions',
+ value: function parseOptions(surferOpts) {
+ var rect = this.player.el_.getBoundingClientRect();
+ this.originalWidth = this.player.options_.width || rect.width;
+ this.originalHeight = this.player.options_.height || rect.height;
+
+ // controlbar
+ var controlBarHeight = this.player.controlBar.height();
+ if (this.player.options_.controls === true && controlBarHeight === 0) {
+ // the dimensions of the controlbar are not known yet, but we
+ // need it now, so we can calculate the height of the waveform.
+ // The default height is 30px, so use that instead.
+ controlBarHeight = 30;
+ }
+
+ // set waveform element and dimensions
+ // Set the container to player's container if "container" option is
+ // not provided. If a waveform needs to be appended to your custom
+ // element, then use below option. For example:
+ // container: document.querySelector("#vjs-waveform")
+ if (surferOpts.container === undefined) {
+ surferOpts.container = this.player.el_;
+ }
+
+ // set the height of generated waveform if user has provided height
+ // from options. If height of waveform need to be customized then use
+ // option below. For example: waveformHeight: 30
+ if (surferOpts.waveformHeight === undefined) {
+ var playerHeight = rect.height;
+ surferOpts.height = playerHeight - controlBarHeight;
+ } else {
+ surferOpts.height = opts.waveformHeight;
+ }
+
+ // split channels
+ if (surferOpts.splitChannels && surferOpts.splitChannels === true) {
+ surferOpts.height /= 2;
+ }
+
+ // enable wavesurfer.js microphone plugin
+ if (this.liveMode === true) {
+ surferOpts.plugins = [_wavesurfer2.default.microphone.create(surferOpts)];
+ this.log('wavesurfer.js microphone plugin enabled.');
+ }
+
+ return surferOpts;
+ }
+
+ /**
+ * Start the players.
+ * @private
+ */
+
+ }, {
+ key: 'startPlayers',
+ value: function startPlayers() {
+ var options = this.player.options_.plugins.wavesurfer;
+ if (options.src !== undefined) {
+ if (this.surfer.microphone === undefined) {
+ // show loading spinner
+ this.player.loadingSpinner.show();
+
+ // start loading file
+ this.load(options.src, options.peaks);
+ } else {
+ // hide loading spinner
+ this.player.loadingSpinner.hide();
+
+ // connect microphone input to our waveform
+ options.wavesurfer = this.surfer;
+ }
+ } else {
+ // no valid src found, hide loading spinner
+ this.player.loadingSpinner.hide();
+ }
+ }
+
+ /**
+ * Starts or stops listening to events related to audio-playback.
+ *
+ * @param {boolean} enable - Start or stop listening to playback
+ * related events.
+ * @private
+ */
+
+ }, {
+ key: 'setupPlaybackEvents',
+ value: function setupPlaybackEvents(enable) {
+ if (enable === false) {
+ this.surfer.un('ready', this.surferReady);
+ this.surfer.un('audioprocess', this.surferProgress);
+ this.surfer.un('seek', this.surferSeek);
+ } else if (enable === true) {
+ this.surfer.on('ready', this.surferReady);
+ this.surfer.on('audioprocess', this.surferProgress);
+ this.surfer.on('seek', this.surferSeek);
+ }
+ }
+
+ /**
+ * Start loading waveform data.
+ *
+ * @param {string|blob|file} url - Either the URL of the audio file,
+ * a Blob or a File object.
+ * @param {string|?number[]|number[][]} peaks - Either the URL of peaks
+ * data for the audio file, or an array with peaks data.
+ */
+
+ }, {
+ key: 'load',
+ value: function load(url, peaks) {
+ var _this2 = this;
+
+ if (url instanceof Blob || url instanceof File) {
+ this.log('Loading object: ' + JSON.stringify(url));
+ this.surfer.loadBlob(url);
+ } else {
+ // load peak data from file
+ if (peaks !== undefined) {
+ if (Array.isArray(peaks)) {
+ // use supplied peaks data
+ this.log('Loading URL: ' + url);
+ this.surfer.load(url, peaks);
+ } else {
+ // load peak data from file
+ var ajaxOptions = {
+ url: peaks,
+ responseType: 'json'
+ };
+ // supply xhr options, if any
+ if (this.player.options_.plugins.wavesurfer.xhr !== undefined) {
+ ajaxOptions.xhr = this.player.options_.plugins.wavesurfer.xhr;
+ }
+ var ajax = _wavesurfer2.default.util.ajax(ajaxOptions);
+
+ ajax.on('success', function (data, e) {
+ _this2.log('Loaded Peak Data URL: ' + peaks);
+ _this2.surfer.load(url, data.data);
+ });
+ ajax.on('error', function (e) {
+ _this2.log('Unable to retrieve peak data from ' + peaks + '. Status code: ' + e.target.status, 'warn');
+ _this2.log('Loading URL: ' + url);
+ _this2.surfer.load(url);
+ });
+ }
+ } else {
+ // no peaks
+ this.log('Loading URL: ' + url);
+ this.surfer.load(url);
+ }
+ }
+ }
+
+ /**
+ * Start/resume playback or microphone.
+ */
+
+ }, {
+ key: 'play',
+ value: function play() {
+ // show pause button
+ this.player.controlBar.playToggle.handlePlay();
+
+ if (this.liveMode) {
+ // start/resume microphone visualization
+ if (!this.surfer.microphone.active) {
+ this.log('Start microphone');
+ this.surfer.microphone.start();
+ } else {
+ // toggle paused
+ var paused = !this.surfer.microphone.paused;
+
+ if (paused) {
+ this.pause();
+ } else {
+ this.log('Resume microphone');
+ this.surfer.microphone.play();
+ }
+ }
+ } else {
+ this.log('Start playback');
+
+ // put video.js player UI in playback mode
+ this.player.play();
+
+ // start surfer playback
+ this.surfer.play();
+ }
+ }
+
+ /**
+ * Pauses playback or microphone visualization.
+ */
+
+ }, {
+ key: 'pause',
+ value: function pause() {
+ // show play button
+ if (this.player.controlBar.playToggle.contentEl()) {
+ this.player.controlBar.playToggle.handlePause();
+ }
+
+ if (this.liveMode) {
+ // pause microphone visualization
+ this.log('Pause microphone');
+ this.surfer.microphone.pause();
+ } else {
+ // pause playback
+ this.log('Pause playback');
+
+ if (!this.waveFinished) {
+ // pause wavesurfer playback
+ this.surfer.pause();
+ } else {
+ this.waveFinished = false;
+ }
+
+ this.setCurrentTime();
+ }
+ }
+
+ /**
+ * @private
+ */
+
+ }, {
+ key: 'dispose',
+ value: function dispose() {
+ if (this.surfer) {
+ if (this.liveMode && this.surfer.microphone) {
+ // destroy microphone plugin
+ this.surfer.microphone.destroy();
+ this.log('Destroyed microphone plugin');
+ }
+ // destroy wavesurfer instance
+ this.surfer.destroy();
+ }
+ if (this.textTracksEnabled) {
+ this.player.tech_.stopTrackingCurrentTime();
+ }
+ this.log('Destroyed plugin');
+ }
+
+ /**
+ * Indicates whether the plugin is destroyed or not.
+ *
+ * @return {boolean} Plugin destroyed or not.
+ */
+
+ }, {
+ key: 'isDestroyed',
+ value: function isDestroyed() {
+ return this.player && this.player.children() === null;
+ }
+
+ /**
+ * Remove the player and waveform.
+ */
+
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ this.player.dispose();
+ }
+
+ /**
+ * Set the volume level.
+ *
+ * @param {number} volume - The new volume level.
+ */
+
+ }, {
+ key: 'setVolume',
+ value: function setVolume(volume) {
+ if (volume !== undefined) {
+ this.log('Changing volume to: ' + volume);
+
+ // update player volume
+ this.player.volume(volume);
+ }
+ }
+
+ /**
+ * Save waveform image as data URI.
+ *
+ * The default format is 'image/png'. Other supported types are
+ * 'image/jpeg' and 'image/webp'.
+ *
+ * @param {string} [format=image/png] - String indicating the image format.
+ * @param {number} [quality=1] - Number between 0 and 1 indicating image
+ * quality if the requested type is 'image/jpeg' or 'image/webp'.
+ * @returns {string} The data URI of the image data.
+ */
+
+ }, {
+ key: 'exportImage',
+ value: function exportImage(format, quality) {
+ return this.surfer.exportImage(format, quality);
+ }
+
+ /**
+ * Change the audio output device.
+ *
+ * @param {string} sinkId - Id of audio output device.
+ */
+
+ }, {
+ key: 'setAudioOutput',
+ value: function setAudioOutput(deviceId) {
+ var _this3 = this;
+
+ if (deviceId) {
+ this.surfer.setSinkId(deviceId).then(function (result) {
+ // notify listeners
+ _this3.player.trigger('audioOutputReady');
+ }).catch(function (err) {
+ // notify listeners
+ _this3.player.trigger('error', err);
+
+ _this3.log(err, 'error');
+ });
+ }
+ }
+
+ /**
+ * Get the current time (in seconds) of the stream during playback.
+ *
+ * Returns 0 if no stream is available (yet).
+ */
+
+ }, {
+ key: 'getCurrentTime',
+ value: function getCurrentTime() {
+ var currentTime = this.surfer.getCurrentTime();
+ currentTime = isNaN(currentTime) ? 0 : currentTime;
+
+ return currentTime;
+ }
+
+ /**
+ * Updates the player's element displaying the current time.
+ *
+ * @param {number} [currentTime] - Current position of the playhead
+ * (in seconds).
+ * @param {number} [duration] - Duration of the waveform (in seconds).
+ * @private
+ */
+
+ }, {
+ key: 'setCurrentTime',
+ value: function setCurrentTime(currentTime, duration) {
+ if (currentTime === undefined) {
+ currentTime = this.surfer.getCurrentTime();
+ }
+
+ if (duration === undefined) {
+ duration = this.surfer.getDuration();
+ }
+
+ currentTime = isNaN(currentTime) ? 0 : currentTime;
+ duration = isNaN(duration) ? 0 : duration;
+ var time = Math.min(currentTime, duration);
+
+ // update current time display component
+ if (this.player.controlBar.currentTimeDisplay.contentEl()) {
+ this.player.controlBar.currentTimeDisplay.formattedTime_ = this.player.controlBar.currentTimeDisplay.contentEl().lastChild.textContent = (0, _formatTime2.default)(time, duration, this.msDisplayMax);
+ }
+
+ if (this.textTracksEnabled) {
+ // only needed for text tracks
+ this.player.tech_.setCurrentTime(currentTime);
+ }
+ }
+
+ /**
+ * Get the duration of the stream in seconds.
+ *
+ * Returns 0 if no stream is available (yet).
+ */
+
+ }, {
+ key: 'getDuration',
+ value: function getDuration() {
+ var duration = this.surfer.getDuration();
+ duration = isNaN(duration) ? 0 : duration;
+
+ return duration;
+ }
+
+ /**
+ * Updates the player's element displaying the duration time.
+ *
+ * @param {number} [duration] - Duration of the waveform (in seconds).
+ * @private
+ */
+
+ }, {
+ key: 'setDuration',
+ value: function setDuration(duration) {
+ if (duration === undefined) {
+ duration = this.surfer.getDuration();
+ }
+ duration = isNaN(duration) ? 0 : duration;
+
+ // update duration display component
+ if (this.player.controlBar.durationDisplay.contentEl()) {
+ this.player.controlBar.durationDisplay.formattedTime_ = this.player.controlBar.durationDisplay.contentEl().lastChild.textContent = (0, _formatTime2.default)(duration, duration, this.msDisplayMax);
+ }
+ }
+
+ /**
+ * Audio is loaded, decoded and the waveform is drawn.
+ *
+ * @fires waveReady
+ * @private
+ */
+
+ }, {
+ key: 'onWaveReady',
+ value: function onWaveReady() {
+ this.waveReady = true;
+ this.waveFinished = false;
+ this.liveMode = false;
+
+ this.log('Waveform is ready');
+ this.player.trigger('waveReady');
+
+ // update time display
+ this.setCurrentTime();
+ this.setDuration();
+
+ // enable and show play button
+ if (this.player.controlBar.playToggle.contentEl()) {
+ this.player.controlBar.playToggle.show();
+ }
+
+ // hide loading spinner
+ if (this.player.loadingSpinner.contentEl()) {
+ this.player.loadingSpinner.hide();
+ }
+
+ // auto-play when ready (if enabled)
+ if (this.player.options_.autoplay === true) {
+ this.play();
+ }
+ }
+
+ /**
+ * Fires when audio playback completed.
+ *
+ * @fires playbackFinish
+ * @private
+ */
+
+ }, {
+ key: 'onWaveFinish',
+ value: function onWaveFinish() {
+ var _this4 = this;
+
+ this.log('Finished playback');
+
+ // notify listeners
+ this.player.trigger('playbackFinish');
+
+ // check if loop is enabled
+ if (this.player.options_.loop === true) {
+ // reset waveform
+ this.surfer.stop();
+ this.play();
+ } else {
+ // finished
+ this.waveFinished = true;
+
+ // pause player
+ this.pause();
+
+ // show the replay state of play toggle
+ this.player.trigger('ended');
+
+ // this gets called once after the clip has ended and the user
+ // seeks so that we can change the replay button back to a play
+ // button
+ this.surfer.once('seek', function () {
+ _this4.player.controlBar.playToggle.removeClass('vjs-ended');
+ _this4.player.trigger('pause');
+ });
+ }
+ }
+
+ /**
+ * Fires continuously during audio playback.
+ *
+ * @param {number} time - Current time/location of the playhead.
+ * @private
+ */
+
+ }, {
+ key: 'onWaveProgress',
+ value: function onWaveProgress(time) {
+ this.setCurrentTime();
+ }
+
+ /**
+ * Fires during seeking of the waveform.
+ * @private
+ */
+
+ }, {
+ key: 'onWaveSeek',
+ value: function onWaveSeek() {
+ this.setCurrentTime();
+ }
+
+ /**
+ * Waveform error.
+ *
+ * @param {string} error - The wavesurfer error.
+ * @private
+ */
+
+ }, {
+ key: 'onWaveError',
+ value: function onWaveError(error) {
+ // notify listeners
+ this.player.trigger('error', error);
+
+ this.log(error, 'error');
+ }
+
+ /**
+ * Fired when the play toggle is clicked.
+ * @private
+ */
+
+ }, {
+ key: 'onPlayToggle',
+ value: function onPlayToggle() {
+ // workaround for video.js 6.3.1 and newer
+ if (this.player.controlBar.playToggle.hasClass('vjs-ended')) {
+ this.player.controlBar.playToggle.removeClass('vjs-ended');
+ }
+ if (this.surfer.isPlaying()) {
+ this.pause();
+ } else {
+ this.play();
+ }
+ }
+
+ /**
+ * Fired when the volume in the video.js player changes.
+ * @private
+ */
+
+ }, {
+ key: 'onVolumeChange',
+ value: function onVolumeChange() {
+ var volume = this.player.volume();
+ if (this.player.muted()) {
+ // muted volume
+ volume = 0;
+ }
+
+ // update wavesurfer.js volume
+ this.surfer.setVolume(volume);
+ }
+
+ /**
+ * Fired when the video.js player switches in or out of fullscreen mode.
+ * @private
+ */
+
+ }, {
+ key: 'onScreenChange',
+ value: function onScreenChange() {
+ var _this5 = this;
+
+ // execute with tiny delay so the player element completes
+ // rendering and correct dimensions are reported
+ var fullscreenDelay = this.player.setInterval(function () {
+ var isFullscreen = _this5.player.isFullscreen();
+ var newWidth = void 0,
+ newHeight = void 0;
+ if (!isFullscreen) {
+ // restore original dimensions
+ newWidth = _this5.originalWidth;
+ newHeight = _this5.originalHeight;
+ }
+
+ if (_this5.waveReady) {
+ if (_this5.liveMode && !_this5.surfer.microphone.active) {
+ // we're in live mode but the microphone hasn't been
+ // started yet
+ return;
+ }
+ // redraw
+ _this5.redrawWaveform(newWidth, newHeight);
+ }
+
+ // stop fullscreenDelay interval
+ _this5.player.clearInterval(fullscreenDelay);
+ }, 100);
+ }
+
+ /**
+ * Fired when the video.js player is resized.
+ *
+ * @private
+ */
+
+ }, {
+ key: 'onResizeChange',
+ value: function onResizeChange() {
+ if (this.surfer !== undefined) {
+ // redraw waveform
+ this.redrawWaveform();
+ }
+ }
+
+ /**
+ * Redraw waveform.
+ *
+ * @param {number} [newWidth] - New width for the waveform.
+ * @param {number} [newHeight] - New height for the waveform.
+ * @private
+ */
+
+ }, {
+ key: 'redrawWaveform',
+ value: function redrawWaveform(newWidth, newHeight) {
+ if (!this.isDestroyed()) {
+ if (this.player.el_) {
+ var rect = this.player.el_.getBoundingClientRect();
+ if (newWidth === undefined) {
+ // get player width
+ newWidth = rect.width;
+ }
+ if (newHeight === undefined) {
+ // get player height
+ newHeight = rect.height;
+ }
+ }
+
+ // destroy old drawing
+ this.surfer.drawer.destroy();
+
+ // set new dimensions
+ this.surfer.params.width = newWidth;
+ this.surfer.params.height = newHeight - this.player.controlBar.height();
+
+ // redraw waveform
+ this.surfer.createDrawer();
+ this.surfer.drawer.wrapper.className = wavesurferClassName;
+ this.surfer.drawBuffer();
+
+ // make sure playhead is restored at right position
+ this.surfer.drawer.progress(this.surfer.backend.getPlayedPercents());
+ }
+ }
+
+ /**
+ * @private
+ */
+
+ }, {
+ key: 'log',
+ value: function log(args, logType) {
+ (0, _log3.default)(args, logType, this.debug);
+ }
+ }]);
+
+ return Wavesurfer;
+}(Plugin);
+
+// version nr is injected during build
+
+
+Wavesurfer.VERSION = "2.5.1";
+
+// register plugin once
+_video2.default.Wavesurfer = Wavesurfer;
+if (_video2.default.getPlugin('wavesurfer') === undefined) {
+ _video2.default.registerPlugin('wavesurfer', Wavesurfer);
+}
+
+module.exports = {
+ Wavesurfer: Wavesurfer
+};
+
+/***/ }),
+
+/***/ 0:
+/*!******************************************************************************!*\
+ !*** multi ./src/js/videojs.wavesurfer.js ./src/css/videojs.wavesurfer.scss ***!
+ \******************************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+__webpack_require__(/*! /Users/thijstriemstra/projects/videojs-wavesurfer/src/js/videojs.wavesurfer.js */"./src/js/videojs.wavesurfer.js");
+module.exports = __webpack_require__(/*! /Users/thijstriemstra/projects/videojs-wavesurfer/src/css/videojs.wavesurfer.scss */"./src/css/videojs.wavesurfer.scss");
+
+
+/***/ }),
+
+/***/ "video.js":
+/*!**************************!*\
+ !*** external "videojs" ***!
+ \**************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+module.exports = __WEBPACK_EXTERNAL_MODULE_video_js__;
+
+/***/ }),
+
+/***/ "wavesurfer.js":
+/*!*****************************!*\
+ !*** external "WaveSurfer" ***!
+ \*****************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+module.exports = __WEBPACK_EXTERNAL_MODULE_wavesurfer_js__;
+
+/***/ })
+
+/******/ });
+});
+//# sourceMappingURL=videojs.wavesurfer.js.map \ No newline at end of file
diff --git a/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js.map b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js.map
new file mode 100644
index 0000000..6494f22
--- /dev/null
+++ b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack://VideojsWavesurfer/webpack/universalModuleDefinition","webpack://VideojsWavesurfer/webpack/bootstrap","webpack://VideojsWavesurfer/./node_modules/global/window.js","webpack://VideojsWavesurfer/(webpack)/buildin/global.js","webpack://VideojsWavesurfer/./src/css/videojs.wavesurfer.scss?3ee4","webpack://VideojsWavesurfer/./src/js/defaults.js","webpack://VideojsWavesurfer/./src/js/utils/format-time.js","webpack://VideojsWavesurfer/./src/js/utils/log.js","webpack://VideojsWavesurfer/./src/js/videojs.wavesurfer.js","webpack://VideojsWavesurfer/external \"videojs\"","webpack://VideojsWavesurfer/external \"WaveSurfer\""],"names":["pluginDefaultOptions","debug","msDisplayMax","formatTime","seconds","guide","s","Math","floor","m","h","gm","gh","ms","isNaN","Infinity","ERROR","WARN","log","args","logType","videojs","error","warn","Plugin","getPlugin","wavesurferClassName","Wavesurfer","player","options","addClass","mergeOptions","waveReady","waveFinished","liveMode","toString","parseFloat","textTracksEnabled","options_","tracks","length","src","microphone","undefined","onWaveError","one","initialize","bind","bigPlayButton","hide","usingNativeControls_","tech_","el_","controls","controlBar","show","style","display","progressControl","uiElements","currentTimeDisplay","timeDivider","durationDisplay","forEach","element","remainingTimeDisplay","playToggle","on","onPlayToggle","mergedOptions","parseOptions","plugins","wavesurfer","surfer","create","onWaveFinish","surferReady","onWaveReady","surferProgress","onWaveProgress","surferSeek","onWaveSeek","setupPlaybackEvents","onVolumeChange","onScreenChange","muted","setVolume","fluid","drawer","wrapper","className","responsiveWave","util","debounce","onResizeChange","addEventListener","off","throttledUpdateContent","trackCurrentTime","startPlayers","surferOpts","rect","getBoundingClientRect","originalWidth","width","originalHeight","height","controlBarHeight","container","waveformHeight","playerHeight","opts","splitChannels","loadingSpinner","load","peaks","enable","un","url","Blob","File","JSON","stringify","loadBlob","Array","isArray","ajaxOptions","responseType","xhr","ajax","data","e","target","status","handlePlay","active","start","paused","pause","play","contentEl","handlePause","setCurrentTime","destroy","stopTrackingCurrentTime","children","dispose","volume","format","quality","exportImage","deviceId","setSinkId","then","result","trigger","catch","err","currentTime","getCurrentTime","duration","getDuration","time","min","formattedTime_","lastChild","textContent","setDuration","autoplay","loop","stop","once","removeClass","hasClass","isPlaying","fullscreenDelay","setInterval","isFullscreen","newWidth","newHeight","redrawWaveform","clearInterval","isDestroyed","params","createDrawer","drawBuffer","progress","backend","getPlayedPercents","VERSION","registerPlugin","module","exports"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;AClFA;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA;;AAEA;;;;;;;;;;;;;ACZA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;ACnBA,uC;;;;;;;;;;;;;;;;;ACAA;;;;;AAKA;AACA,IAAMA,uBAAuB;AACzB;AACAC,WAAO,KAFkB;AAGzB;AACA;AACA;AACA;AACA;AACA;AACAC,kBAAc;AATW,CAA7B;;kBAYeF,oB;;;;;;;;;;;;;;;;;;AClBf;;;;;AAKA;;;;;;;;;;;;;;;;AAgBA,IAAMG,aAAa,SAAbA,UAAa,CAASC,OAAT,EAAkBC,KAAlB,EAAyBH,YAAzB,EAAuC;AACtD;AACAE,cAAUA,UAAU,CAAV,GAAc,CAAd,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AADa,CAAjB,C;;;;;;;;;;;;;;;;;;;;;;;;AC1wBA,sD;;;;;;;;;;;ACAA,2D","file":"videojs.wavesurfer.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"videojs\"), require(\"WaveSurfer\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VideojsWavesurfer\", [\"videojs\", \"WaveSurfer\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VideojsWavesurfer\"] = factory(require(\"videojs\"), require(\"WaveSurfer\"));\n\telse\n\t\troot[\"VideojsWavesurfer\"] = factory(root[\"videojs\"], root[\"WaveSurfer\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE_video_js__, __WEBPACK_EXTERNAL_MODULE_wavesurfer_js__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","var win;\n\nif (typeof window !== \"undefined\") {\n win = window;\n} else if (typeof global !== \"undefined\") {\n win = global;\n} else if (typeof self !== \"undefined\"){\n win = self;\n} else {\n win = {};\n}\n\nmodule.exports = win;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// extracted by mini-css-extract-plugin","/**\n * @file defaults.js\n * @since 2.0.0\n */\n\n// plugin defaults\nconst pluginDefaultOptions = {\n // Display console log messages.\n debug: false,\n // msDisplayMax indicates the number of seconds that is\n // considered the boundary value for displaying milliseconds\n // in the time controls. An audio clip with a total length of\n // 2 seconds and a msDisplayMax of 3 will use the format\n // M:SS:MMM. Clips longer than msDisplayMax will be displayed\n // as M:SS or HH:MM:SS.\n msDisplayMax: 3\n};\n\nexport default pluginDefaultOptions;\n","/**\n * @file format-time.js\n * @since 2.0.0\n */\n\n/**\n * Format seconds as a time string, H:MM:SS, M:SS or M:SS:MMM.\n *\n * Supplying a guide (in seconds) will force a number of leading zeros\n * to cover the length of the guide.\n *\n * @param {number} seconds - Number of seconds to be turned into a\n * string.\n * @param {number} guide - Number (in seconds) to model the string\n * after.\n * @param {number} msDisplayMax - Number (in milliseconds) to model the string\n * after.\n * @return {string} Time formatted as H:MM:SS, M:SS or M:SS:MMM, e.g.\n * 0:00:12.\n * @private\n */\nconst formatTime = function(seconds, guide, msDisplayMax) {\n // Default to using seconds as guide\n seconds = seconds < 0 ? 0 : seconds;\n guide = guide || seconds;\n let s = Math.floor(seconds % 60),\n m = Math.floor(seconds / 60 % 60),\n h = Math.floor(seconds / 3600),\n gm = Math.floor(guide / 60 % 60),\n gh = Math.floor(guide / 3600),\n ms = Math.floor((seconds - s) * 1000);\n\n // handle invalid times\n if (isNaN(seconds) || seconds === Infinity) {\n // '-' is false for all relational operators (e.g. <, >=) so this\n // setting will add the minimum number of fields specified by the\n // guide\n h = m = s = ms = '-';\n }\n\n // Check if we need to show milliseconds\n if (guide > 0 && guide < msDisplayMax) {\n if (ms < 100) {\n if (ms < 10) {\n ms = '00' + ms;\n } else {\n ms = '0' + ms;\n }\n }\n ms = ':' + ms;\n } else {\n ms = '';\n }\n\n // Check if we need to show hours\n h = (h > 0 || gh > 0) ? h + ':' : '';\n\n // If hours are showing, we may need to add a leading zero.\n // Always show at least one digit of minutes.\n m = (((h || gm >= 10) && m < 10) ? '0' + m : m) + ':';\n\n // Check if leading zero is need for seconds\n s = ((s < 10) ? '0' + s : s);\n\n return h + m + s + ms;\n};\n\nexport default formatTime;\n","/**\n * @file log.js\n * @since 2.0.0\n */\n\nconst ERROR = 'error';\nconst WARN = 'warn';\n\n/**\n * Log message (if the debug option is enabled).\n */\nconst log = function(args, logType, debug)\n{\n if (debug === true) {\n if (logType === ERROR) {\n videojs.log.error(args);\n } else if (logType === WARN) {\n videojs.log.warn(args);\n } else {\n videojs.log(args);\n }\n }\n};\n\nexport default log;\n","/**\n * @file videojs.wavesurfer.js\n *\n * The main file for the videojs-wavesurfer project.\n * MIT license: https://github.com/collab-project/videojs-wavesurfer/blob/master/LICENSE\n */\n\nimport log from './utils/log';\nimport formatTime from './utils/format-time';\nimport pluginDefaultOptions from './defaults';\nimport window from 'global/window';\n\nimport videojs from 'video.js';\nimport WaveSurfer from 'wavesurfer.js';\n\nconst Plugin = videojs.getPlugin('plugin');\n\nconst wavesurferClassName = 'vjs-wavedisplay';\n\n/**\n * Draw a waveform for audio and video files in a video.js player.\n *\n * @class Wavesurfer\n * @extends videojs.Plugin\n */\nclass Wavesurfer extends Plugin {\n /**\n * The constructor function for the class.\n *\n * @param {(videojs.Player|Object)} player\n * @param {Object} options - Player options.\n */\n constructor(player, options) {\n super(player, options);\n\n // add plugin style\n player.addClass('vjs-wavesurfer');\n\n // parse options\n options = videojs.mergeOptions(pluginDefaultOptions, options);\n this.waveReady = false;\n this.waveFinished = false;\n this.liveMode = false;\n this.debug = (options.debug.toString() === 'true');\n this.msDisplayMax = parseFloat(options.msDisplayMax);\n this.textTracksEnabled = (this.player.options_.tracks.length > 0);\n\n // microphone plugin\n if (options.src === 'live') {\n // check if the wavesurfer.js microphone plugin can be enabled\n if (WaveSurfer.microphone !== undefined) {\n // enable audio input from a microphone\n this.liveMode = true;\n this.waveReady = true;\n } else {\n this.onWaveError('Could not find wavesurfer.js ' +\n 'microphone plugin!');\n return;\n }\n }\n\n // wait until player ui is ready\n this.player.one('ready', this.initialize.bind(this));\n }\n\n /**\n * Player UI is ready: customize controls.\n */\n initialize() {\n // hide big play button\n this.player.bigPlayButton.hide();\n\n // the native controls don't work for this UI so disable\n // them no matter what\n if (this.player.usingNativeControls_ === true) {\n if (this.player.tech_.el_ !== undefined) {\n this.player.tech_.el_.controls = false;\n }\n }\n\n // controls\n if (this.player.options_.controls === true) {\n // make sure controlBar is showing\n this.player.controlBar.show();\n this.player.controlBar.el_.style.display = 'flex';\n\n // progress control isn't used by this plugin\n this.player.controlBar.progressControl.hide();\n\n // make sure time displays are visible\n let uiElements = [\n this.player.controlBar.currentTimeDisplay,\n this.player.controlBar.timeDivider,\n this.player.controlBar.durationDisplay\n ];\n uiElements.forEach((element) => {\n // ignore and show when essential elements have been disabled\n // by user\n if (element !== undefined) {\n element.el_.style.display = 'block';\n element.show();\n }\n });\n if (this.player.controlBar.remainingTimeDisplay !== undefined) {\n this.player.controlBar.remainingTimeDisplay.hide();\n }\n\n // handle play toggle interaction\n this.player.controlBar.playToggle.on(['tap', 'click'],\n this.onPlayToggle.bind(this));\n\n // disable play button until waveform is ready\n // (except when in live mode)\n if (!this.liveMode) {\n this.player.controlBar.playToggle.hide();\n }\n }\n\n // wavesurfer.js setup\n let mergedOptions = this.parseOptions(this.player.options_.plugins.wavesurfer);\n this.surfer = WaveSurfer.create(mergedOptions);\n this.surfer.on('error', this.onWaveError.bind(this));\n this.surfer.on('finish', this.onWaveFinish.bind(this));\n if (this.liveMode === true) {\n // listen for wavesurfer.js microphone plugin events\n this.surfer.microphone.on('deviceError', this.onWaveError.bind(this));\n }\n this.surferReady = this.onWaveReady.bind(this);\n this.surferProgress = this.onWaveProgress.bind(this);\n this.surferSeek = this.onWaveSeek.bind(this);\n\n // only listen to these wavesurfer.js playback events when not\n // in live mode\n if (!this.liveMode) {\n this.setupPlaybackEvents(true);\n }\n\n // video.js player events\n this.player.on('volumechange', this.onVolumeChange.bind(this));\n this.player.on('fullscreenchange', this.onScreenChange.bind(this));\n\n // make sure volume is muted when requested\n if (this.player.muted()) {\n this.setVolume(0);\n }\n\n // video.js fluid option\n if (this.player.options_.fluid === true) {\n // give wave element a classname so it can be styled\n this.surfer.drawer.wrapper.className = wavesurferClassName;\n // listen for window resize events\n this.responsiveWave = WaveSurfer.util.debounce(\n this.onResizeChange.bind(this), 150);\n window.addEventListener('resize', this.responsiveWave);\n }\n\n // text tracks\n if (this.textTracksEnabled) {\n // disable timeupdates\n this.player.controlBar.currentTimeDisplay.off(this.player, 'timeupdate',\n this.player.controlBar.currentTimeDisplay.throttledUpdateContent);\n\n // sets up an interval function to track current time\n // and trigger timeupdate every 250 milliseconds.\n // needed for text tracks\n this.player.tech_.trackCurrentTime();\n }\n\n // kick things off\n this.startPlayers();\n }\n\n /**\n * Initializes the waveform options.\n *\n * @param {Object} surferOpts - Plugin options.\n * @private\n */\n parseOptions(surferOpts) {\n let rect = this.player.el_.getBoundingClientRect();\n this.originalWidth = this.player.options_.width || rect.width;\n this.originalHeight = this.player.options_.height || rect.height;\n\n // controlbar\n let controlBarHeight = this.player.controlBar.height();\n if (this.player.options_.controls === true && controlBarHeight === 0) {\n // the dimensions of the controlbar are not known yet, but we\n // need it now, so we can calculate the height of the waveform.\n // The default height is 30px, so use that instead.\n controlBarHeight = 30;\n }\n\n // set waveform element and dimensions\n // Set the container to player's container if \"container\" option is\n // not provided. If a waveform needs to be appended to your custom\n // element, then use below option. For example:\n // container: document.querySelector(\"#vjs-waveform\")\n if (surferOpts.container === undefined) {\n surferOpts.container = this.player.el_;\n }\n\n // set the height of generated waveform if user has provided height\n // from options. If height of waveform need to be customized then use\n // option below. For example: waveformHeight: 30\n if (surferOpts.waveformHeight === undefined) {\n let playerHeight = rect.height;\n surferOpts.height = playerHeight - controlBarHeight;\n } else {\n surferOpts.height = opts.waveformHeight;\n }\n\n // split channels\n if (surferOpts.splitChannels && surferOpts.splitChannels === true) {\n surferOpts.height /= 2;\n }\n\n // enable wavesurfer.js microphone plugin\n if (this.liveMode === true) {\n surferOpts.plugins = [\n WaveSurfer.microphone.create(surferOpts)\n ];\n this.log('wavesurfer.js microphone plugin enabled.');\n }\n\n return surferOpts;\n }\n\n /**\n * Start the players.\n * @private\n */\n startPlayers() {\n let options = this.player.options_.plugins.wavesurfer;\n if (options.src !== undefined) {\n if (this.surfer.microphone === undefined) {\n // show loading spinner\n this.player.loadingSpinner.show();\n\n // start loading file\n this.load(options.src, options.peaks);\n } else {\n // hide loading spinner\n this.player.loadingSpinner.hide();\n\n // connect microphone input to our waveform\n options.wavesurfer = this.surfer;\n }\n } else {\n // no valid src found, hide loading spinner\n this.player.loadingSpinner.hide();\n }\n }\n\n /**\n * Starts or stops listening to events related to audio-playback.\n *\n * @param {boolean} enable - Start or stop listening to playback\n * related events.\n * @private\n */\n setupPlaybackEvents(enable) {\n if (enable === false) {\n this.surfer.un('ready', this.surferReady);\n this.surfer.un('audioprocess', this.surferProgress);\n this.surfer.un('seek', this.surferSeek);\n } else if (enable === true) {\n this.surfer.on('ready', this.surferReady);\n this.surfer.on('audioprocess', this.surferProgress);\n this.surfer.on('seek', this.surferSeek);\n }\n }\n\n /**\n * Start loading waveform data.\n *\n * @param {string|blob|file} url - Either the URL of the audio file,\n * a Blob or a File object.\n * @param {string|?number[]|number[][]} peaks - Either the URL of peaks\n * data for the audio file, or an array with peaks data.\n */\n load(url, peaks) {\n if (url instanceof Blob || url instanceof File) {\n this.log('Loading object: ' + JSON.stringify(url));\n this.surfer.loadBlob(url);\n } else {\n // load peak data from file\n if (peaks !== undefined) {\n if (Array.isArray(peaks)) {\n // use supplied peaks data\n this.log('Loading URL: ' + url);\n this.surfer.load(url, peaks);\n } else {\n // load peak data from file\n let ajaxOptions = {\n url: peaks,\n responseType: 'json'\n };\n // supply xhr options, if any\n if (this.player.options_.plugins.wavesurfer.xhr !== undefined) {\n ajaxOptions.xhr = this.player.options_.plugins.wavesurfer.xhr;\n }\n let ajax = WaveSurfer.util.ajax(ajaxOptions);\n\n ajax.on('success', (data, e) => {\n this.log('Loaded Peak Data URL: ' + peaks);\n this.surfer.load(url, data.data);\n });\n ajax.on('error', (e) => {\n this.log('Unable to retrieve peak data from ' + peaks +\n '. Status code: ' + e.target.status, 'warn');\n this.log('Loading URL: ' + url);\n this.surfer.load(url);\n });\n }\n } else {\n // no peaks\n this.log('Loading URL: ' + url);\n this.surfer.load(url);\n }\n }\n }\n\n /**\n * Start/resume playback or microphone.\n */\n play() {\n // show pause button\n this.player.controlBar.playToggle.handlePlay();\n\n if (this.liveMode) {\n // start/resume microphone visualization\n if (!this.surfer.microphone.active)\n {\n this.log('Start microphone');\n this.surfer.microphone.start();\n } else {\n // toggle paused\n let paused = !this.surfer.microphone.paused;\n\n if (paused) {\n this.pause();\n } else {\n this.log('Resume microphone');\n this.surfer.microphone.play();\n }\n }\n } else {\n this.log('Start playback');\n\n // put video.js player UI in playback mode\n this.player.play();\n\n // start surfer playback\n this.surfer.play();\n }\n }\n\n /**\n * Pauses playback or microphone visualization.\n */\n pause() {\n // show play button\n if (this.player.controlBar.playToggle.contentEl()) {\n this.player.controlBar.playToggle.handlePause();\n }\n\n if (this.liveMode) {\n // pause microphone visualization\n this.log('Pause microphone');\n this.surfer.microphone.pause();\n } else {\n // pause playback\n this.log('Pause playback');\n\n if (!this.waveFinished) {\n // pause wavesurfer playback\n this.surfer.pause();\n } else {\n this.waveFinished = false;\n }\n\n this.setCurrentTime();\n }\n }\n\n /**\n * @private\n */\n dispose() {\n if (this.surfer) {\n if (this.liveMode && this.surfer.microphone) {\n // destroy microphone plugin\n this.surfer.microphone.destroy();\n this.log('Destroyed microphone plugin');\n }\n // destroy wavesurfer instance\n this.surfer.destroy();\n }\n if (this.textTracksEnabled) {\n this.player.tech_.stopTrackingCurrentTime();\n }\n this.log('Destroyed plugin');\n }\n\n /**\n * Indicates whether the plugin is destroyed or not.\n *\n * @return {boolean} Plugin destroyed or not.\n */\n isDestroyed() {\n return this.player && (this.player.children() === null);\n }\n\n /**\n * Remove the player and waveform.\n */\n destroy() {\n this.player.dispose();\n }\n\n /**\n * Set the volume level.\n *\n * @param {number} volume - The new volume level.\n */\n setVolume(volume) {\n if (volume !== undefined) {\n this.log('Changing volume to: ' + volume);\n\n // update player volume\n this.player.volume(volume);\n }\n }\n\n /**\n * Save waveform image as data URI.\n *\n * The default format is 'image/png'. Other supported types are\n * 'image/jpeg' and 'image/webp'.\n *\n * @param {string} [format=image/png] - String indicating the image format.\n * @param {number} [quality=1] - Number between 0 and 1 indicating image\n * quality if the requested type is 'image/jpeg' or 'image/webp'.\n * @returns {string} The data URI of the image data.\n */\n exportImage(format, quality) {\n return this.surfer.exportImage(format, quality);\n }\n\n /**\n * Change the audio output device.\n *\n * @param {string} sinkId - Id of audio output device.\n */\n setAudioOutput(deviceId) {\n if (deviceId) {\n this.surfer.setSinkId(deviceId).then((result) => {\n // notify listeners\n this.player.trigger('audioOutputReady');\n }).catch((err) => {\n // notify listeners\n this.player.trigger('error', err);\n\n this.log(err, 'error');\n });\n }\n }\n\n /**\n * Get the current time (in seconds) of the stream during playback.\n *\n * Returns 0 if no stream is available (yet).\n */\n getCurrentTime() {\n let currentTime = this.surfer.getCurrentTime();\n currentTime = isNaN(currentTime) ? 0 : currentTime;\n\n return currentTime;\n }\n\n /**\n * Updates the player's element displaying the current time.\n *\n * @param {number} [currentTime] - Current position of the playhead\n * (in seconds).\n * @param {number} [duration] - Duration of the waveform (in seconds).\n * @private\n */\n setCurrentTime(currentTime, duration) {\n if (currentTime === undefined) {\n currentTime = this.surfer.getCurrentTime();\n }\n\n if (duration === undefined) {\n duration = this.surfer.getDuration();\n }\n\n currentTime = isNaN(currentTime) ? 0 : currentTime;\n duration = isNaN(duration) ? 0 : duration;\n let time = Math.min(currentTime, duration);\n\n // update current time display component\n if (this.player.controlBar.currentTimeDisplay.contentEl()) {\n this.player.controlBar.currentTimeDisplay.formattedTime_ =\n this.player.controlBar.currentTimeDisplay.contentEl().lastChild.textContent =\n formatTime(time, duration, this.msDisplayMax);\n }\n\n if (this.textTracksEnabled) {\n // only needed for text tracks\n this.player.tech_.setCurrentTime(currentTime);\n }\n }\n\n /**\n * Get the duration of the stream in seconds.\n *\n * Returns 0 if no stream is available (yet).\n */\n getDuration() {\n let duration = this.surfer.getDuration();\n duration = isNaN(duration) ? 0 : duration;\n\n return duration;\n }\n\n /**\n * Updates the player's element displaying the duration time.\n *\n * @param {number} [duration] - Duration of the waveform (in seconds).\n * @private\n */\n setDuration(duration) {\n if (duration === undefined) {\n duration = this.surfer.getDuration();\n }\n duration = isNaN(duration) ? 0 : duration;\n\n // update duration display component\n if (this.player.controlBar.durationDisplay.contentEl()) {\n this.player.controlBar.durationDisplay.formattedTime_ =\n this.player.controlBar.durationDisplay.contentEl().lastChild.textContent =\n formatTime(duration, duration, this.msDisplayMax);\n }\n }\n\n /**\n * Audio is loaded, decoded and the waveform is drawn.\n *\n * @fires waveReady\n * @private\n */\n onWaveReady() {\n this.waveReady = true;\n this.waveFinished = false;\n this.liveMode = false;\n\n this.log('Waveform is ready');\n this.player.trigger('waveReady');\n\n // update time display\n this.setCurrentTime();\n this.setDuration();\n\n // enable and show play button\n if (this.player.controlBar.playToggle.contentEl()) {\n this.player.controlBar.playToggle.show();\n }\n\n // hide loading spinner\n if (this.player.loadingSpinner.contentEl()) {\n this.player.loadingSpinner.hide();\n }\n\n // auto-play when ready (if enabled)\n if (this.player.options_.autoplay === true) {\n this.play();\n }\n }\n\n /**\n * Fires when audio playback completed.\n *\n * @fires playbackFinish\n * @private\n */\n onWaveFinish() {\n this.log('Finished playback');\n\n // notify listeners\n this.player.trigger('playbackFinish');\n\n // check if loop is enabled\n if (this.player.options_.loop === true) {\n // reset waveform\n this.surfer.stop();\n this.play();\n } else {\n // finished\n this.waveFinished = true;\n\n // pause player\n this.pause();\n\n // show the replay state of play toggle\n this.player.trigger('ended');\n\n // this gets called once after the clip has ended and the user\n // seeks so that we can change the replay button back to a play\n // button\n this.surfer.once('seek', () => {\n this.player.controlBar.playToggle.removeClass('vjs-ended');\n this.player.trigger('pause');\n });\n }\n }\n\n /**\n * Fires continuously during audio playback.\n *\n * @param {number} time - Current time/location of the playhead.\n * @private\n */\n onWaveProgress(time) {\n this.setCurrentTime();\n }\n\n /**\n * Fires during seeking of the waveform.\n * @private\n */\n onWaveSeek() {\n this.setCurrentTime();\n }\n\n /**\n * Waveform error.\n *\n * @param {string} error - The wavesurfer error.\n * @private\n */\n onWaveError(error) {\n // notify listeners\n this.player.trigger('error', error);\n\n this.log(error, 'error');\n }\n\n /**\n * Fired when the play toggle is clicked.\n * @private\n */\n onPlayToggle() {\n // workaround for video.js 6.3.1 and newer\n if (this.player.controlBar.playToggle.hasClass('vjs-ended')) {\n this.player.controlBar.playToggle.removeClass('vjs-ended');\n }\n if (this.surfer.isPlaying()) {\n this.pause();\n } else {\n this.play();\n }\n }\n\n /**\n * Fired when the volume in the video.js player changes.\n * @private\n */\n onVolumeChange() {\n let volume = this.player.volume();\n if (this.player.muted()) {\n // muted volume\n volume = 0;\n }\n\n // update wavesurfer.js volume\n this.surfer.setVolume(volume);\n }\n\n /**\n * Fired when the video.js player switches in or out of fullscreen mode.\n * @private\n */\n onScreenChange() {\n // execute with tiny delay so the player element completes\n // rendering and correct dimensions are reported\n var fullscreenDelay = this.player.setInterval(() => {\n let isFullscreen = this.player.isFullscreen();\n let newWidth, newHeight;\n if (!isFullscreen) {\n // restore original dimensions\n newWidth = this.originalWidth;\n newHeight = this.originalHeight;\n }\n\n if (this.waveReady) {\n if (this.liveMode && !this.surfer.microphone.active) {\n // we're in live mode but the microphone hasn't been\n // started yet\n return;\n }\n // redraw\n this.redrawWaveform(newWidth, newHeight);\n }\n\n // stop fullscreenDelay interval\n this.player.clearInterval(fullscreenDelay);\n\n }, 100);\n }\n\n /**\n * Fired when the video.js player is resized.\n *\n * @private\n */\n onResizeChange() {\n if (this.surfer !== undefined) {\n // redraw waveform\n this.redrawWaveform();\n }\n }\n\n /**\n * Redraw waveform.\n *\n * @param {number} [newWidth] - New width for the waveform.\n * @param {number} [newHeight] - New height for the waveform.\n * @private\n */\n redrawWaveform(newWidth, newHeight) {\n if (!this.isDestroyed()) {\n if (this.player.el_) {\n let rect = this.player.el_.getBoundingClientRect();\n if (newWidth === undefined) {\n // get player width\n newWidth = rect.width;\n }\n if (newHeight === undefined) {\n // get player height\n newHeight = rect.height;\n }\n }\n\n // destroy old drawing\n this.surfer.drawer.destroy();\n\n // set new dimensions\n this.surfer.params.width = newWidth;\n this.surfer.params.height = newHeight - this.player.controlBar.height();\n\n // redraw waveform\n this.surfer.createDrawer();\n this.surfer.drawer.wrapper.className = wavesurferClassName;\n this.surfer.drawBuffer();\n\n // make sure playhead is restored at right position\n this.surfer.drawer.progress(this.surfer.backend.getPlayedPercents());\n }\n }\n\n /**\n * @private\n */\n log(args, logType) {\n log(args, logType, this.debug);\n }\n}\n\n// version nr is injected during build\nWavesurfer.VERSION = __VERSION__;\n\n// register plugin once\nvideojs.Wavesurfer = Wavesurfer;\nif (videojs.getPlugin('wavesurfer') === undefined) {\n videojs.registerPlugin('wavesurfer', Wavesurfer);\n}\n\nmodule.exports = {\n Wavesurfer\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE_video_js__;","module.exports = __WEBPACK_EXTERNAL_MODULE_wavesurfer_js__;"],"sourceRoot":""} \ No newline at end of file
diff --git a/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js
new file mode 100644
index 0000000..fb97f62
--- /dev/null
+++ b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js
@@ -0,0 +1,9 @@
+/*!
+ * videojs-wavesurfer
+ * @version 2.5.1
+ * @see https://github.com/collab-project/videojs-wavesurfer
+ * @copyright 2014-2018 Collab
+ * @license MIT
+ */
+!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("videojs"),require("WaveSurfer")):"function"==typeof define&&define.amd?define("VideojsWavesurfer",["videojs","WaveSurfer"],r):"object"==typeof exports?exports.VideojsWavesurfer=r(require("videojs"),require("WaveSurfer")):e.VideojsWavesurfer=r(e.videojs,e.WaveSurfer)}(window,function(e,r){return function(e){var r={};function t(i){if(r[i])return r[i].exports;var s=r[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=e,t.c=r,t.d=function(e,r,i){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var s in e)t.d(i,s,function(r){return e[r]}.bind(null,s));return i},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){t(1),e.exports=t(9)},function(e,r,t){"use strict";var i=function(){function e(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(r,t,i){return t&&e(r.prototype,t),i&&e(r,i),r}}(),s=h(t(2)),o=h(t(3)),a=h(t(4)),n=h(t(5)),l=h(t(7)),u=h(t(8));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}var f=l.default.getPlugin("plugin"),d=function(e){function r(e,t){!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r);var i=p(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(e.addClass("vjs-wavesurfer"),t=l.default.mergeOptions(a.default,t),i.waveReady=!1,i.waveFinished=!1,i.liveMode=!1,i.debug="true"===t.debug.toString(),i.msDisplayMax=parseFloat(t.msDisplayMax),i.textTracksEnabled=i.player.options_.tracks.length>0,"live"===t.src){if(void 0===u.default.microphone)return i.onWaveError("Could not find wavesurfer.js microphone plugin!"),p(i);i.liveMode=!0,i.waveReady=!0}return i.player.one("ready",i.initialize.bind(i)),i}return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}(r,f),i(r,[{key:"initialize",value:function(){(this.player.bigPlayButton.hide(),!0===this.player.usingNativeControls_&&void 0!==this.player.tech_.el_&&(this.player.tech_.el_.controls=!1),!0===this.player.options_.controls)&&(this.player.controlBar.show(),this.player.controlBar.el_.style.display="flex",this.player.controlBar.progressControl.hide(),[this.player.controlBar.currentTimeDisplay,this.player.controlBar.timeDivider,this.player.controlBar.durationDisplay].forEach(function(e){void 0!==e&&(e.el_.style.display="block",e.show())}),void 0!==this.player.controlBar.remainingTimeDisplay&&this.player.controlBar.remainingTimeDisplay.hide(),this.player.controlBar.playToggle.on(["tap","click"],this.onPlayToggle.bind(this)),this.liveMode||this.player.controlBar.playToggle.hide());var e=this.parseOptions(this.player.options_.plugins.wavesurfer);this.surfer=u.default.create(e),this.surfer.on("error",this.onWaveError.bind(this)),this.surfer.on("finish",this.onWaveFinish.bind(this)),!0===this.liveMode&&this.surfer.microphone.on("deviceError",this.onWaveError.bind(this)),this.surferReady=this.onWaveReady.bind(this),this.surferProgress=this.onWaveProgress.bind(this),this.surferSeek=this.onWaveSeek.bind(this),this.liveMode||this.setupPlaybackEvents(!0),this.player.on("volumechange",this.onVolumeChange.bind(this)),this.player.on("fullscreenchange",this.onScreenChange.bind(this)),this.player.muted()&&this.setVolume(0),!0===this.player.options_.fluid&&(this.surfer.drawer.wrapper.className="vjs-wavedisplay",this.responsiveWave=u.default.util.debounce(this.onResizeChange.bind(this),150),n.default.addEventListener("resize",this.responsiveWave)),this.textTracksEnabled&&(this.player.controlBar.currentTimeDisplay.off(this.player,"timeupdate",this.player.controlBar.currentTimeDisplay.throttledUpdateContent),this.player.tech_.trackCurrentTime()),this.startPlayers()}},{key:"parseOptions",value:function(e){var r=this.player.el_.getBoundingClientRect();this.originalWidth=this.player.options_.width||r.width,this.originalHeight=this.player.options_.height||r.height;var t=this.player.controlBar.height();if(!0===this.player.options_.controls&&0===t&&(t=30),void 0===e.container&&(e.container=this.player.el_),void 0===e.waveformHeight){var i=r.height;e.height=i-t}else e.height=opts.waveformHeight;return e.splitChannels&&!0===e.splitChannels&&(e.height/=2),!0===this.liveMode&&(e.plugins=[u.default.microphone.create(e)],this.log("wavesurfer.js microphone plugin enabled.")),e}},{key:"startPlayers",value:function(){var e=this.player.options_.plugins.wavesurfer;void 0!==e.src?void 0===this.surfer.microphone?(this.player.loadingSpinner.show(),this.load(e.src,e.peaks)):(this.player.loadingSpinner.hide(),e.wavesurfer=this.surfer):this.player.loadingSpinner.hide()}},{key:"setupPlaybackEvents",value:function(e){!1===e?(this.surfer.un("ready",this.surferReady),this.surfer.un("audioprocess",this.surferProgress),this.surfer.un("seek",this.surferSeek)):!0===e&&(this.surfer.on("ready",this.surferReady),this.surfer.on("audioprocess",this.surferProgress),this.surfer.on("seek",this.surferSeek))}},{key:"load",value:function(e,r){var t=this;if(e instanceof Blob||e instanceof File)this.log("Loading object: "+JSON.stringify(e)),this.surfer.loadBlob(e);else if(void 0!==r)if(Array.isArray(r))this.log("Loading URL: "+e),this.surfer.load(e,r);else{var i={url:r,responseType:"json"};void 0!==this.player.options_.plugins.wavesurfer.xhr&&(i.xhr=this.player.options_.plugins.wavesurfer.xhr);var s=u.default.util.ajax(i);s.on("success",function(i,s){t.log("Loaded Peak Data URL: "+r),t.surfer.load(e,i.data)}),s.on("error",function(i){t.log("Unable to retrieve peak data from "+r+". Status code: "+i.target.status,"warn"),t.log("Loading URL: "+e),t.surfer.load(e)})}else this.log("Loading URL: "+e),this.surfer.load(e)}},{key:"play",value:function(){(this.player.controlBar.playToggle.handlePlay(),this.liveMode)?this.surfer.microphone.active?!this.surfer.microphone.paused?this.pause():(this.log("Resume microphone"),this.surfer.microphone.play()):(this.log("Start microphone"),this.surfer.microphone.start()):(this.log("Start playback"),this.player.play(),this.surfer.play())}},{key:"pause",value:function(){this.player.controlBar.playToggle.contentEl()&&this.player.controlBar.playToggle.handlePause(),this.liveMode?(this.log("Pause microphone"),this.surfer.microphone.pause()):(this.log("Pause playback"),this.waveFinished?this.waveFinished=!1:this.surfer.pause(),this.setCurrentTime())}},{key:"dispose",value:function(){this.surfer&&(this.liveMode&&this.surfer.microphone&&(this.surfer.microphone.destroy(),this.log("Destroyed microphone plugin")),this.surfer.destroy()),this.textTracksEnabled&&this.player.tech_.stopTrackingCurrentTime(),this.log("Destroyed plugin")}},{key:"isDestroyed",value:function(){return this.player&&null===this.player.children()}},{key:"destroy",value:function(){this.player.dispose()}},{key:"setVolume",value:function(e){void 0!==e&&(this.log("Changing volume to: "+e),this.player.volume(e))}},{key:"exportImage",value:function(e,r){return this.surfer.exportImage(e,r)}},{key:"setAudioOutput",value:function(e){var r=this;e&&this.surfer.setSinkId(e).then(function(e){r.player.trigger("audioOutputReady")}).catch(function(e){r.player.trigger("error",e),r.log(e,"error")})}},{key:"getCurrentTime",value:function(){var e=this.surfer.getCurrentTime();return e=isNaN(e)?0:e}},{key:"setCurrentTime",value:function(e,r){void 0===e&&(e=this.surfer.getCurrentTime()),void 0===r&&(r=this.surfer.getDuration()),e=isNaN(e)?0:e,r=isNaN(r)?0:r;var t=Math.min(e,r);this.player.controlBar.currentTimeDisplay.contentEl()&&(this.player.controlBar.currentTimeDisplay.formattedTime_=this.player.controlBar.currentTimeDisplay.contentEl().lastChild.textContent=(0,o.default)(t,r,this.msDisplayMax)),this.textTracksEnabled&&this.player.tech_.setCurrentTime(e)}},{key:"getDuration",value:function(){var e=this.surfer.getDuration();return e=isNaN(e)?0:e}},{key:"setDuration",value:function(e){void 0===e&&(e=this.surfer.getDuration()),e=isNaN(e)?0:e,this.player.controlBar.durationDisplay.contentEl()&&(this.player.controlBar.durationDisplay.formattedTime_=this.player.controlBar.durationDisplay.contentEl().lastChild.textContent=(0,o.default)(e,e,this.msDisplayMax))}},{key:"onWaveReady",value:function(){this.waveReady=!0,this.waveFinished=!1,this.liveMode=!1,this.log("Waveform is ready"),this.player.trigger("waveReady"),this.setCurrentTime(),this.setDuration(),this.player.controlBar.playToggle.contentEl()&&this.player.controlBar.playToggle.show(),this.player.loadingSpinner.contentEl()&&this.player.loadingSpinner.hide(),!0===this.player.options_.autoplay&&this.play()}},{key:"onWaveFinish",value:function(){var e=this;this.log("Finished playback"),this.player.trigger("playbackFinish"),!0===this.player.options_.loop?(this.surfer.stop(),this.play()):(this.waveFinished=!0,this.pause(),this.player.trigger("ended"),this.surfer.once("seek",function(){e.player.controlBar.playToggle.removeClass("vjs-ended"),e.player.trigger("pause")}))}},{key:"onWaveProgress",value:function(e){this.setCurrentTime()}},{key:"onWaveSeek",value:function(){this.setCurrentTime()}},{key:"onWaveError",value:function(e){this.player.trigger("error",e),this.log(e,"error")}},{key:"onPlayToggle",value:function(){this.player.controlBar.playToggle.hasClass("vjs-ended")&&this.player.controlBar.playToggle.removeClass("vjs-ended"),this.surfer.isPlaying()?this.pause():this.play()}},{key:"onVolumeChange",value:function(){var e=this.player.volume();this.player.muted()&&(e=0),this.surfer.setVolume(e)}},{key:"onScreenChange",value:function(){var e=this,r=this.player.setInterval(function(){var t=void 0,i=void 0;if(e.player.isFullscreen()||(t=e.originalWidth,i=e.originalHeight),e.waveReady){if(e.liveMode&&!e.surfer.microphone.active)return;e.redrawWaveform(t,i)}e.player.clearInterval(r)},100)}},{key:"onResizeChange",value:function(){void 0!==this.surfer&&this.redrawWaveform()}},{key:"redrawWaveform",value:function(e,r){if(!this.isDestroyed()){if(this.player.el_){var t=this.player.el_.getBoundingClientRect();void 0===e&&(e=t.width),void 0===r&&(r=t.height)}this.surfer.drawer.destroy(),this.surfer.params.width=e,this.surfer.params.height=r-this.player.controlBar.height(),this.surfer.createDrawer(),this.surfer.drawer.wrapper.className="vjs-wavedisplay",this.surfer.drawBuffer(),this.surfer.drawer.progress(this.surfer.backend.getPlayedPercents())}}},{key:"log",value:function(e,r){(0,s.default)(e,r,this.debug)}}]),r}();d.VERSION="2.5.1",l.default.Wavesurfer=d,void 0===l.default.getPlugin("wavesurfer")&&l.default.registerPlugin("wavesurfer",d),e.exports={Wavesurfer:d}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default=function(e,r,t){!0===t&&("error"===r?videojs.log.error(e):"warn"===r?videojs.log.warn(e):videojs.log(e))},e.exports=r.default},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default=function(e,r,t){e=e<0?0:e,r=r||e;var i=Math.floor(e%60),s=Math.floor(e/60%60),o=Math.floor(e/3600),a=Math.floor(r/60%60),n=Math.floor(r/3600),l=Math.floor(1e3*(e-i));return(isNaN(e)||e===1/0)&&(o=s=i=l="-"),r>0&&r<t?(l<100&&(l=l<10?"00"+l:"0"+l),l=":"+l):l="",(o=o>0||n>0?o+":":"")+(s=((o||a>=10)&&s<10?"0"+s:s)+":")+(i=i<10?"0"+i:i)+l},e.exports=r.default},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default={debug:!1,msDisplayMax:3},e.exports=r.default},function(e,r,t){(function(r){var t;t="undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{},e.exports=t}).call(this,t(6))},function(e,r){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){}])});
+//# sourceMappingURL=videojs.wavesurfer.min.js.map \ No newline at end of file
diff --git a/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js.map b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js.map
new file mode 100644
index 0000000..f5219af
--- /dev/null
+++ b/assets/netcut/lib/videojs-wavesurfer/videojs.wavesurfer.min.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack://VideojsWavesurfer/webpack/universalModuleDefinition","webpack://VideojsWavesurfer/webpack/bootstrap","webpack://VideojsWavesurfer/./src/js/videojs.wavesurfer.js","webpack://VideojsWavesurfer/./src/js/utils/log.js","webpack://VideojsWavesurfer/./src/js/utils/format-time.js","webpack://VideojsWavesurfer/./src/js/defaults.js","webpack://VideojsWavesurfer/./node_modules/global/window.js","webpack://VideojsWavesurfer/(webpack)/buildin/global.js","webpack://VideojsWavesurfer/external \"videojs\"","webpack://VideojsWavesurfer/external \"WaveSurfer\""],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__7__","__WEBPACK_EXTERNAL_MODULE__8__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Plugin","_video2","default","getPlugin","Wavesurfer","player","options","_classCallCheck","this","_this","_possibleConstructorReturn","__proto__","getPrototypeOf","addClass","mergeOptions","_defaults2","waveReady","waveFinished","liveMode","debug","toString","msDisplayMax","parseFloat","textTracksEnabled","options_","tracks","length","src","undefined","_wavesurfer2","microphone","onWaveError","one","initialize","bigPlayButton","hide","usingNativeControls_","tech_","el_","controls","controlBar","show","style","display","progressControl","currentTimeDisplay","timeDivider","durationDisplay","forEach","element","remainingTimeDisplay","playToggle","on","onPlayToggle","mergedOptions","parseOptions","plugins","wavesurfer","surfer","onWaveFinish","surferReady","onWaveReady","surferProgress","onWaveProgress","surferSeek","onWaveSeek","setupPlaybackEvents","onVolumeChange","onScreenChange","muted","setVolume","fluid","drawer","wrapper","className","responsiveWave","util","debounce","onResizeChange","_window2","addEventListener","off","throttledUpdateContent","trackCurrentTime","startPlayers","surferOpts","rect","getBoundingClientRect","originalWidth","width","originalHeight","height","controlBarHeight","container","waveformHeight","playerHeight","opts","splitChannels","log","loadingSpinner","load","peaks","enable","un","url","_this2","Blob","File","JSON","stringify","loadBlob","Array","isArray","ajaxOptions","responseType","xhr","ajax","data","e","target","status","handlePlay","active","paused","pause","play","start","contentEl","handlePause","setCurrentTime","destroy","stopTrackingCurrentTime","children","dispose","volume","format","quality","exportImage","deviceId","_this3","setSinkId","then","result","trigger","catch","err","currentTime","getCurrentTime","isNaN","duration","getDuration","time","Math","min","formattedTime_","lastChild","textContent","_formatTime2","setDuration","autoplay","_this4","loop","stop","once","removeClass","error","hasClass","isPlaying","_this5","fullscreenDelay","setInterval","newWidth","newHeight","isFullscreen","redrawWaveform","clearInterval","isDestroyed","params","createDrawer","drawBuffer","progress","backend","getPlayedPercents","args","logType","_log3","VERSION","registerPlugin","videojs","warn","seconds","guide","floor","h","gm","gh","ms","Infinity","global","win","self","g","Function","eval"],"mappings":";;;;;;;CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WAAAA,QAAA,eACA,mBAAAC,eAAAC,IACAD,OAAA,6CAAAJ,GACA,iBAAAC,QACAA,QAAA,kBAAAD,EAAAG,QAAA,WAAAA,QAAA,eAEAJ,EAAA,kBAAAC,EAAAD,EAAA,QAAAA,EAAA,YARA,CASCO,OAAA,SAAAC,EAAAC,GACD,mBCTA,IAAAC,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAV,QAGA,IAAAC,EAAAO,EAAAE,IACAC,EAAAD,EACAE,GAAA,EACAZ,YAUA,OANAa,EAAAH,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AM,KAAO9N,EAAI,GAAM,IAAMA,EAAIA,GAAK,MAGlD2B,EAAMA,EAAI,GAAM,IAAMA,EAAIA,GAEPqM,iHCxDnBjL,OAAO,EAOPE,aAAc,yCCflB,SAAAiL,GAAA,IAAAC,EAGAA,EADA,oBAAA7O,OACAA,YACC,IAAA4O,EACDA,EACC,oBAAAE,KACDA,QAKAlP,EAAAD,QAAAkP,mCCZA,IAAAE,EAGAA,EAAA,WACA,OAAAjM,KADA,GAIA,IAEAiM,KAAAC,SAAA,cAAAA,KAAA,EAAAC,MAAA,QACC,MAAArF,GAED,iBAAA5J,SAAA+O,EAAA/O,QAOAJ,EAAAD,QAAAoP,iBCnBAnP,EAAAD,QAAAM,iBCAAL,EAAAD,QAAAO","file":"videojs.wavesurfer.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"videojs\"), require(\"WaveSurfer\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VideojsWavesurfer\", [\"videojs\", \"WaveSurfer\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VideojsWavesurfer\"] = factory(require(\"videojs\"), require(\"WaveSurfer\"));\n\telse\n\t\troot[\"VideojsWavesurfer\"] = factory(root[\"videojs\"], root[\"WaveSurfer\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","/**\n * @file videojs.wavesurfer.js\n *\n * The main file for the videojs-wavesurfer project.\n * MIT license: https://github.com/collab-project/videojs-wavesurfer/blob/master/LICENSE\n */\n\nimport log from './utils/log';\nimport formatTime from './utils/format-time';\nimport pluginDefaultOptions from './defaults';\nimport window from 'global/window';\n\nimport videojs from 'video.js';\nimport WaveSurfer from 'wavesurfer.js';\n\nconst Plugin = videojs.getPlugin('plugin');\n\nconst wavesurferClassName = 'vjs-wavedisplay';\n\n/**\n * Draw a waveform for audio and video files in a video.js player.\n *\n * @class Wavesurfer\n * @extends videojs.Plugin\n */\nclass Wavesurfer extends Plugin {\n /**\n * The constructor function for the class.\n *\n * @param {(videojs.Player|Object)} player\n * @param {Object} options - Player options.\n */\n constructor(player, options) {\n super(player, options);\n\n // add plugin style\n player.addClass('vjs-wavesurfer');\n\n // parse options\n options = videojs.mergeOptions(pluginDefaultOptions, options);\n this.waveReady = false;\n this.waveFinished = false;\n this.liveMode = false;\n this.debug = (options.debug.toString() === 'true');\n this.msDisplayMax = parseFloat(options.msDisplayMax);\n this.textTracksEnabled = (this.player.options_.tracks.length > 0);\n\n // microphone plugin\n if (options.src === 'live') {\n // check if the wavesurfer.js microphone plugin can be enabled\n if (WaveSurfer.microphone !== undefined) {\n // enable audio input from a microphone\n this.liveMode = true;\n this.waveReady = true;\n } else {\n this.onWaveError('Could not find wavesurfer.js ' +\n 'microphone plugin!');\n return;\n }\n }\n\n // wait until player ui is ready\n this.player.one('ready', this.initialize.bind(this));\n }\n\n /**\n * Player UI is ready: customize controls.\n */\n initialize() {\n // hide big play button\n this.player.bigPlayButton.hide();\n\n // the native controls don't work for this UI so disable\n // them no matter what\n if (this.player.usingNativeControls_ === true) {\n if (this.player.tech_.el_ !== undefined) {\n this.player.tech_.el_.controls = false;\n }\n }\n\n // controls\n if (this.player.options_.controls === true) {\n // make sure controlBar is showing\n this.player.controlBar.show();\n this.player.controlBar.el_.style.display = 'flex';\n\n // progress control isn't used by this plugin\n this.player.controlBar.progressControl.hide();\n\n // make sure time displays are visible\n let uiElements = [\n this.player.controlBar.currentTimeDisplay,\n this.player.controlBar.timeDivider,\n this.player.controlBar.durationDisplay\n ];\n uiElements.forEach((element) => {\n // ignore and show when essential elements have been disabled\n // by user\n if (element !== undefined) {\n element.el_.style.display = 'block';\n element.show();\n }\n });\n if (this.player.controlBar.remainingTimeDisplay !== undefined) {\n this.player.controlBar.remainingTimeDisplay.hide();\n }\n\n // handle play toggle interaction\n this.player.controlBar.playToggle.on(['tap', 'click'],\n this.onPlayToggle.bind(this));\n\n // disable play button until waveform is ready\n // (except when in live mode)\n if (!this.liveMode) {\n this.player.controlBar.playToggle.hide();\n }\n }\n\n // wavesurfer.js setup\n let mergedOptions = this.parseOptions(this.player.options_.plugins.wavesurfer);\n this.surfer = WaveSurfer.create(mergedOptions);\n this.surfer.on('error', this.onWaveError.bind(this));\n this.surfer.on('finish', this.onWaveFinish.bind(this));\n if (this.liveMode === true) {\n // listen for wavesurfer.js microphone plugin events\n this.surfer.microphone.on('deviceError', this.onWaveError.bind(this));\n }\n this.surferReady = this.onWaveReady.bind(this);\n this.surferProgress = this.onWaveProgress.bind(this);\n this.surferSeek = this.onWaveSeek.bind(this);\n\n // only listen to these wavesurfer.js playback events when not\n // in live mode\n if (!this.liveMode) {\n this.setupPlaybackEvents(true);\n }\n\n // video.js player events\n this.player.on('volumechange', this.onVolumeChange.bind(this));\n this.player.on('fullscreenchange', this.onScreenChange.bind(this));\n\n // make sure volume is muted when requested\n if (this.player.muted()) {\n this.setVolume(0);\n }\n\n // video.js fluid option\n if (this.player.options_.fluid === true) {\n // give wave element a classname so it can be styled\n this.surfer.drawer.wrapper.className = wavesurferClassName;\n // listen for window resize events\n this.responsiveWave = WaveSurfer.util.debounce(\n this.onResizeChange.bind(this), 150);\n window.addEventListener('resize', this.responsiveWave);\n }\n\n // text tracks\n if (this.textTracksEnabled) {\n // disable timeupdates\n this.player.controlBar.currentTimeDisplay.off(this.player, 'timeupdate',\n this.player.controlBar.currentTimeDisplay.throttledUpdateContent);\n\n // sets up an interval function to track current time\n // and trigger timeupdate every 250 milliseconds.\n // needed for text tracks\n this.player.tech_.trackCurrentTime();\n }\n\n // kick things off\n this.startPlayers();\n }\n\n /**\n * Initializes the waveform options.\n *\n * @param {Object} surferOpts - Plugin options.\n * @private\n */\n parseOptions(surferOpts) {\n let rect = this.player.el_.getBoundingClientRect();\n this.originalWidth = this.player.options_.width || rect.width;\n this.originalHeight = this.player.options_.height || rect.height;\n\n // controlbar\n let controlBarHeight = this.player.controlBar.height();\n if (this.player.options_.controls === true && controlBarHeight === 0) {\n // the dimensions of the controlbar are not known yet, but we\n // need it now, so we can calculate the height of the waveform.\n // The default height is 30px, so use that instead.\n controlBarHeight = 30;\n }\n\n // set waveform element and dimensions\n // Set the container to player's container if \"container\" option is\n // not provided. If a waveform needs to be appended to your custom\n // element, then use below option. For example:\n // container: document.querySelector(\"#vjs-waveform\")\n if (surferOpts.container === undefined) {\n surferOpts.container = this.player.el_;\n }\n\n // set the height of generated waveform if user has provided height\n // from options. If height of waveform need to be customized then use\n // option below. For example: waveformHeight: 30\n if (surferOpts.waveformHeight === undefined) {\n let playerHeight = rect.height;\n surferOpts.height = playerHeight - controlBarHeight;\n } else {\n surferOpts.height = opts.waveformHeight;\n }\n\n // split channels\n if (surferOpts.splitChannels && surferOpts.splitChannels === true) {\n surferOpts.height /= 2;\n }\n\n // enable wavesurfer.js microphone plugin\n if (this.liveMode === true) {\n surferOpts.plugins = [\n WaveSurfer.microphone.create(surferOpts)\n ];\n this.log('wavesurfer.js microphone plugin enabled.');\n }\n\n return surferOpts;\n }\n\n /**\n * Start the players.\n * @private\n */\n startPlayers() {\n let options = this.player.options_.plugins.wavesurfer;\n if (options.src !== undefined) {\n if (this.surfer.microphone === undefined) {\n // show loading spinner\n this.player.loadingSpinner.show();\n\n // start loading file\n this.load(options.src, options.peaks);\n } else {\n // hide loading spinner\n this.player.loadingSpinner.hide();\n\n // connect microphone input to our waveform\n options.wavesurfer = this.surfer;\n }\n } else {\n // no valid src found, hide loading spinner\n this.player.loadingSpinner.hide();\n }\n }\n\n /**\n * Starts or stops listening to events related to audio-playback.\n *\n * @param {boolean} enable - Start or stop listening to playback\n * related events.\n * @private\n */\n setupPlaybackEvents(enable) {\n if (enable === false) {\n this.surfer.un('ready', this.surferReady);\n this.surfer.un('audioprocess', this.surferProgress);\n this.surfer.un('seek', this.surferSeek);\n } else if (enable === true) {\n this.surfer.on('ready', this.surferReady);\n this.surfer.on('audioprocess', this.surferProgress);\n this.surfer.on('seek', this.surferSeek);\n }\n }\n\n /**\n * Start loading waveform data.\n *\n * @param {string|blob|file} url - Either the URL of the audio file,\n * a Blob or a File object.\n * @param {string|?number[]|number[][]} peaks - Either the URL of peaks\n * data for the audio file, or an array with peaks data.\n */\n load(url, peaks) {\n if (url instanceof Blob || url instanceof File) {\n this.log('Loading object: ' + JSON.stringify(url));\n this.surfer.loadBlob(url);\n } else {\n // load peak data from file\n if (peaks !== undefined) {\n if (Array.isArray(peaks)) {\n // use supplied peaks data\n this.log('Loading URL: ' + url);\n this.surfer.load(url, peaks);\n } else {\n // load peak data from file\n let ajaxOptions = {\n url: peaks,\n responseType: 'json'\n };\n // supply xhr options, if any\n if (this.player.options_.plugins.wavesurfer.xhr !== undefined) {\n ajaxOptions.xhr = this.player.options_.plugins.wavesurfer.xhr;\n }\n let ajax = WaveSurfer.util.ajax(ajaxOptions);\n\n ajax.on('success', (data, e) => {\n this.log('Loaded Peak Data URL: ' + peaks);\n this.surfer.load(url, data.data);\n });\n ajax.on('error', (e) => {\n this.log('Unable to retrieve peak data from ' + peaks +\n '. Status code: ' + e.target.status, 'warn');\n this.log('Loading URL: ' + url);\n this.surfer.load(url);\n });\n }\n } else {\n // no peaks\n this.log('Loading URL: ' + url);\n this.surfer.load(url);\n }\n }\n }\n\n /**\n * Start/resume playback or microphone.\n */\n play() {\n // show pause button\n this.player.controlBar.playToggle.handlePlay();\n\n if (this.liveMode) {\n // start/resume microphone visualization\n if (!this.surfer.microphone.active)\n {\n this.log('Start microphone');\n this.surfer.microphone.start();\n } else {\n // toggle paused\n let paused = !this.surfer.microphone.paused;\n\n if (paused) {\n this.pause();\n } else {\n this.log('Resume microphone');\n this.surfer.microphone.play();\n }\n }\n } else {\n this.log('Start playback');\n\n // put video.js player UI in playback mode\n this.player.play();\n\n // start surfer playback\n this.surfer.play();\n }\n }\n\n /**\n * Pauses playback or microphone visualization.\n */\n pause() {\n // show play button\n if (this.player.controlBar.playToggle.contentEl()) {\n this.player.controlBar.playToggle.handlePause();\n }\n\n if (this.liveMode) {\n // pause microphone visualization\n this.log('Pause microphone');\n this.surfer.microphone.pause();\n } else {\n // pause playback\n this.log('Pause playback');\n\n if (!this.waveFinished) {\n // pause wavesurfer playback\n this.surfer.pause();\n } else {\n this.waveFinished = false;\n }\n\n this.setCurrentTime();\n }\n }\n\n /**\n * @private\n */\n dispose() {\n if (this.surfer) {\n if (this.liveMode && this.surfer.microphone) {\n // destroy microphone plugin\n this.surfer.microphone.destroy();\n this.log('Destroyed microphone plugin');\n }\n // destroy wavesurfer instance\n this.surfer.destroy();\n }\n if (this.textTracksEnabled) {\n this.player.tech_.stopTrackingCurrentTime();\n }\n this.log('Destroyed plugin');\n }\n\n /**\n * Indicates whether the plugin is destroyed or not.\n *\n * @return {boolean} Plugin destroyed or not.\n */\n isDestroyed() {\n return this.player && (this.player.children() === null);\n }\n\n /**\n * Remove the player and waveform.\n */\n destroy() {\n this.player.dispose();\n }\n\n /**\n * Set the volume level.\n *\n * @param {number} volume - The new volume level.\n */\n setVolume(volume) {\n if (volume !== undefined) {\n this.log('Changing volume to: ' + volume);\n\n // update player volume\n this.player.volume(volume);\n }\n }\n\n /**\n * Save waveform image as data URI.\n *\n * The default format is 'image/png'. Other supported types are\n * 'image/jpeg' and 'image/webp'.\n *\n * @param {string} [format=image/png] - String indicating the image format.\n * @param {number} [quality=1] - Number between 0 and 1 indicating image\n * quality if the requested type is 'image/jpeg' or 'image/webp'.\n * @returns {string} The data URI of the image data.\n */\n exportImage(format, quality) {\n return this.surfer.exportImage(format, quality);\n }\n\n /**\n * Change the audio output device.\n *\n * @param {string} sinkId - Id of audio output device.\n */\n setAudioOutput(deviceId) {\n if (deviceId) {\n this.surfer.setSinkId(deviceId).then((result) => {\n // notify listeners\n this.player.trigger('audioOutputReady');\n }).catch((err) => {\n // notify listeners\n this.player.trigger('error', err);\n\n this.log(err, 'error');\n });\n }\n }\n\n /**\n * Get the current time (in seconds) of the stream during playback.\n *\n * Returns 0 if no stream is available (yet).\n */\n getCurrentTime() {\n let currentTime = this.surfer.getCurrentTime();\n currentTime = isNaN(currentTime) ? 0 : currentTime;\n\n return currentTime;\n }\n\n /**\n * Updates the player's element displaying the current time.\n *\n * @param {number} [currentTime] - Current position of the playhead\n * (in seconds).\n * @param {number} [duration] - Duration of the waveform (in seconds).\n * @private\n */\n setCurrentTime(currentTime, duration) {\n if (currentTime === undefined) {\n currentTime = this.surfer.getCurrentTime();\n }\n\n if (duration === undefined) {\n duration = this.surfer.getDuration();\n }\n\n currentTime = isNaN(currentTime) ? 0 : currentTime;\n duration = isNaN(duration) ? 0 : duration;\n let time = Math.min(currentTime, duration);\n\n // update current time display component\n if (this.player.controlBar.currentTimeDisplay.contentEl()) {\n this.player.controlBar.currentTimeDisplay.formattedTime_ =\n this.player.controlBar.currentTimeDisplay.contentEl().lastChild.textContent =\n formatTime(time, duration, this.msDisplayMax);\n }\n\n if (this.textTracksEnabled) {\n // only needed for text tracks\n this.player.tech_.setCurrentTime(currentTime);\n }\n }\n\n /**\n * Get the duration of the stream in seconds.\n *\n * Returns 0 if no stream is available (yet).\n */\n getDuration() {\n let duration = this.surfer.getDuration();\n duration = isNaN(duration) ? 0 : duration;\n\n return duration;\n }\n\n /**\n * Updates the player's element displaying the duration time.\n *\n * @param {number} [duration] - Duration of the waveform (in seconds).\n * @private\n */\n setDuration(duration) {\n if (duration === undefined) {\n duration = this.surfer.getDuration();\n }\n duration = isNaN(duration) ? 0 : duration;\n\n // update duration display component\n if (this.player.controlBar.durationDisplay.contentEl()) {\n this.player.controlBar.durationDisplay.formattedTime_ =\n this.player.controlBar.durationDisplay.contentEl().lastChild.textContent =\n formatTime(duration, duration, this.msDisplayMax);\n }\n }\n\n /**\n * Audio is loaded, decoded and the waveform is drawn.\n *\n * @fires waveReady\n * @private\n */\n onWaveReady() {\n this.waveReady = true;\n this.waveFinished = false;\n this.liveMode = false;\n\n this.log('Waveform is ready');\n this.player.trigger('waveReady');\n\n // update time display\n this.setCurrentTime();\n this.setDuration();\n\n // enable and show play button\n if (this.player.controlBar.playToggle.contentEl()) {\n this.player.controlBar.playToggle.show();\n }\n\n // hide loading spinner\n if (this.player.loadingSpinner.contentEl()) {\n this.player.loadingSpinner.hide();\n }\n\n // auto-play when ready (if enabled)\n if (this.player.options_.autoplay === true) {\n this.play();\n }\n }\n\n /**\n * Fires when audio playback completed.\n *\n * @fires playbackFinish\n * @private\n */\n onWaveFinish() {\n this.log('Finished playback');\n\n // notify listeners\n this.player.trigger('playbackFinish');\n\n // check if loop is enabled\n if (this.player.options_.loop === true) {\n // reset waveform\n this.surfer.stop();\n this.play();\n } else {\n // finished\n this.waveFinished = true;\n\n // pause player\n this.pause();\n\n // show the replay state of play toggle\n this.player.trigger('ended');\n\n // this gets called once after the clip has ended and the user\n // seeks so that we can change the replay button back to a play\n // button\n this.surfer.once('seek', () => {\n this.player.controlBar.playToggle.removeClass('vjs-ended');\n this.player.trigger('pause');\n });\n }\n }\n\n /**\n * Fires continuously during audio playback.\n *\n * @param {number} time - Current time/location of the playhead.\n * @private\n */\n onWaveProgress(time) {\n this.setCurrentTime();\n }\n\n /**\n * Fires during seeking of the waveform.\n * @private\n */\n onWaveSeek() {\n this.setCurrentTime();\n }\n\n /**\n * Waveform error.\n *\n * @param {string} error - The wavesurfer error.\n * @private\n */\n onWaveError(error) {\n // notify listeners\n this.player.trigger('error', error);\n\n this.log(error, 'error');\n }\n\n /**\n * Fired when the play toggle is clicked.\n * @private\n */\n onPlayToggle() {\n // workaround for video.js 6.3.1 and newer\n if (this.player.controlBar.playToggle.hasClass('vjs-ended')) {\n this.player.controlBar.playToggle.removeClass('vjs-ended');\n }\n if (this.surfer.isPlaying()) {\n this.pause();\n } else {\n this.play();\n }\n }\n\n /**\n * Fired when the volume in the video.js player changes.\n * @private\n */\n onVolumeChange() {\n let volume = this.player.volume();\n if (this.player.muted()) {\n // muted volume\n volume = 0;\n }\n\n // update wavesurfer.js volume\n this.surfer.setVolume(volume);\n }\n\n /**\n * Fired when the video.js player switches in or out of fullscreen mode.\n * @private\n */\n onScreenChange() {\n // execute with tiny delay so the player element completes\n // rendering and correct dimensions are reported\n var fullscreenDelay = this.player.setInterval(() => {\n let isFullscreen = this.player.isFullscreen();\n let newWidth, newHeight;\n if (!isFullscreen) {\n // restore original dimensions\n newWidth = this.originalWidth;\n newHeight = this.originalHeight;\n }\n\n if (this.waveReady) {\n if (this.liveMode && !this.surfer.microphone.active) {\n // we're in live mode but the microphone hasn't been\n // started yet\n return;\n }\n // redraw\n this.redrawWaveform(newWidth, newHeight);\n }\n\n // stop fullscreenDelay interval\n this.player.clearInterval(fullscreenDelay);\n\n }, 100);\n }\n\n /**\n * Fired when the video.js player is resized.\n *\n * @private\n */\n onResizeChange() {\n if (this.surfer !== undefined) {\n // redraw waveform\n this.redrawWaveform();\n }\n }\n\n /**\n * Redraw waveform.\n *\n * @param {number} [newWidth] - New width for the waveform.\n * @param {number} [newHeight] - New height for the waveform.\n * @private\n */\n redrawWaveform(newWidth, newHeight) {\n if (!this.isDestroyed()) {\n if (this.player.el_) {\n let rect = this.player.el_.getBoundingClientRect();\n if (newWidth === undefined) {\n // get player width\n newWidth = rect.width;\n }\n if (newHeight === undefined) {\n // get player height\n newHeight = rect.height;\n }\n }\n\n // destroy old drawing\n this.surfer.drawer.destroy();\n\n // set new dimensions\n this.surfer.params.width = newWidth;\n this.surfer.params.height = newHeight - this.player.controlBar.height();\n\n // redraw waveform\n this.surfer.createDrawer();\n this.surfer.drawer.wrapper.className = wavesurferClassName;\n this.surfer.drawBuffer();\n\n // make sure playhead is restored at right position\n this.surfer.drawer.progress(this.surfer.backend.getPlayedPercents());\n }\n }\n\n /**\n * @private\n */\n log(args, logType) {\n log(args, logType, this.debug);\n }\n}\n\n// version nr is injected during build\nWavesurfer.VERSION = __VERSION__;\n\n// register plugin once\nvideojs.Wavesurfer = Wavesurfer;\nif (videojs.getPlugin('wavesurfer') === undefined) {\n videojs.registerPlugin('wavesurfer', Wavesurfer);\n}\n\nmodule.exports = {\n Wavesurfer\n};\n","/**\n * @file log.js\n * @since 2.0.0\n */\n\nconst ERROR = 'error';\nconst WARN = 'warn';\n\n/**\n * Log message (if the debug option is enabled).\n */\nconst log = function(args, logType, debug)\n{\n if (debug === true) {\n if (logType === ERROR) {\n videojs.log.error(args);\n } else if (logType === WARN) {\n videojs.log.warn(args);\n } else {\n videojs.log(args);\n }\n }\n};\n\nexport default log;\n","/**\n * @file format-time.js\n * @since 2.0.0\n */\n\n/**\n * Format seconds as a time string, H:MM:SS, M:SS or M:SS:MMM.\n *\n * Supplying a guide (in seconds) will force a number of leading zeros\n * to cover the length of the guide.\n *\n * @param {number} seconds - Number of seconds to be turned into a\n * string.\n * @param {number} guide - Number (in seconds) to model the string\n * after.\n * @param {number} msDisplayMax - Number (in milliseconds) to model the string\n * after.\n * @return {string} Time formatted as H:MM:SS, M:SS or M:SS:MMM, e.g.\n * 0:00:12.\n * @private\n */\nconst formatTime = function(seconds, guide, msDisplayMax) {\n // Default to using seconds as guide\n seconds = seconds < 0 ? 0 : seconds;\n guide = guide || seconds;\n let s = Math.floor(seconds % 60),\n m = Math.floor(seconds / 60 % 60),\n h = Math.floor(seconds / 3600),\n gm = Math.floor(guide / 60 % 60),\n gh = Math.floor(guide / 3600),\n ms = Math.floor((seconds - s) * 1000);\n\n // handle invalid times\n if (isNaN(seconds) || seconds === Infinity) {\n // '-' is false for all relational operators (e.g. <, >=) so this\n // setting will add the minimum number of fields specified by the\n // guide\n h = m = s = ms = '-';\n }\n\n // Check if we need to show milliseconds\n if (guide > 0 && guide < msDisplayMax) {\n if (ms < 100) {\n if (ms < 10) {\n ms = '00' + ms;\n } else {\n ms = '0' + ms;\n }\n }\n ms = ':' + ms;\n } else {\n ms = '';\n }\n\n // Check if we need to show hours\n h = (h > 0 || gh > 0) ? h + ':' : '';\n\n // If hours are showing, we may need to add a leading zero.\n // Always show at least one digit of minutes.\n m = (((h || gm >= 10) && m < 10) ? '0' + m : m) + ':';\n\n // Check if leading zero is need for seconds\n s = ((s < 10) ? '0' + s : s);\n\n return h + m + s + ms;\n};\n\nexport default formatTime;\n","/**\n * @file defaults.js\n * @since 2.0.0\n */\n\n// plugin defaults\nconst pluginDefaultOptions = {\n // Display console log messages.\n debug: false,\n // msDisplayMax indicates the number of seconds that is\n // considered the boundary value for displaying milliseconds\n // in the time controls. An audio clip with a total length of\n // 2 seconds and a msDisplayMax of 3 will use the format\n // M:SS:MMM. Clips longer than msDisplayMax will be displayed\n // as M:SS or HH:MM:SS.\n msDisplayMax: 3\n};\n\nexport default pluginDefaultOptions;\n","var win;\n\nif (typeof window !== \"undefined\") {\n win = window;\n} else if (typeof global !== \"undefined\") {\n win = global;\n} else if (typeof self !== \"undefined\"){\n win = self;\n} else {\n win = {};\n}\n\nmodule.exports = win;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__7__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8__;"],"sourceRoot":""} \ No newline at end of file