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-skip-back'] = ['Skip back 1 second', 'Skip back %1 seconds']; 15 16Object.assign(mejs.MepDefaults, { 17 skipBackInterval: 30, 18 19 skipBackText: null 20}); 21 22Object.assign(MediaElementPlayer.prototype, { 23 buildskipback: function buildskipback(player, controls, layers, media) { 24 var t = this, 25 defaultTitle = mejs.i18n.t('mejs.time-skip-back', t.options.skipBackInterval), 26 skipTitle = mejs.Utils.isString(t.options.skipBackText) ? t.options.skipBackText.replace('%1', t.options.skipBackInterval) : defaultTitle, 27 button = document.createElement('div'); 28 29 button.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'skip-back-button'; 30 button.innerHTML = '<button type="button" aria-controls="' + t.id + '" title="' + skipTitle + '" aria-label="' + skipTitle + '" tabindex="0">' + t.options.skipBackInterval + '</button>'; 31 32 t.addControlElement(button, 'skipback'); 33 34 button.addEventListener('click', function () { 35 var duration = !isNaN(media.duration) ? media.duration : t.options.skipBackInterval; 36 if (duration) { 37 var current = media.currentTime === Infinity ? 0 : media.currentTime; 38 media.setCurrentTime(Math.max(current - t.options.skipBackInterval, 0)); 39 this.querySelector('button').blur(); 40 } 41 }); 42 } 43}); 44 45},{}]},{},[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.