1/*! 2 * MediaElement.js 3 * http://www.mediaelementjs.com/ 4 * 5 * Wrapper that mimics native HTML5 MediaElement (audio and video) 6 * using a variety of technologies (pure JavaScript, Flash, iframe) 7 * 8 * Copyright 2010-2017, John Dyer (http://j.hn/) 9 * License: MIT 10 * 11 */(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ 12'use strict'; 13 14mejs.i18n.en['mejs.time-jump-forward'] = ['Jump forward 1 second', 'Jump forward %1 seconds']; 15 16Object.assign(mejs.MepDefaults, { 17 jumpForwardInterval: 30, 18 19 jumpForwardText: null 20}); 21 22Object.assign(MediaElementPlayer.prototype, { 23 buildjumpforward: function buildjumpforward(player, controls, layers, media) { 24 25 var t = this, 26 defaultTitle = mejs.i18n.t('mejs.time-jump-forward', t.options.jumpForwardInterval), 27 forwardTitle = mejs.Utils.isString(t.options.jumpForwardText) ? t.options.jumpForwardText.replace('%1', t.options.jumpForwardInterval) : defaultTitle, 28 button = document.createElement('div'); 29 30 button.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'jump-forward-button'; 31 button.innerHTML = '<button type="button" aria-controls="' + t.id + '" title="' + forwardTitle + '" aria-label="' + forwardTitle + '" tabindex="0">' + t.options.jumpForwardInterval + '</button>'; 32 33 t.addControlElement(button, 'jumpforward'); 34 35 button.addEventListener('click', function () { 36 var duration = !isNaN(media.duration) ? media.duration : t.options.jumpForwardInterval; 37 if (duration) { 38 var current = media.currentTime === Infinity ? 0 : media.currentTime; 39 media.setCurrentTime(Math.min(current + t.options.jumpForwardInterval, duration)); 40 this.querySelector('button').blur(); 41 } 42 }); 43 } 44}); 45 46},{}]},{},[1]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.