insiderProject/Content/js/plugins/plyr/plyr.js

(开头部分) 73KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

// ==========================================================================
// Plyr
// plyr.js v1.3.6
// https://github.com/selz/plyr
// License: The MIT License (MIT)
// ==========================================================================
// Credits: http://paypal.github.io/accessible-html5-video-player/
// ==========================================================================

(function (api) {
    'use strict';
    /*global YT*/

    // Globals
    var fullscreen, config, callbacks = {
        youtube: []
    };

    // Default config
    var defaults = {
        enabled: true,
        debug: false,
        seekTime: 10,
        volume: 5,
        click: true,
        tooltips: true,
        displayDuration: true,
        iconPrefix: 'icon',
        selectors: {
            container: '.player',
            controls: '.player-controls',
            labels: '[data-player] .sr-only, label .sr-only',
            buttons: {
                seek: '[data-player="seek"]',
                play: '[data-player="play"]',
                pause: '[data-player="pause"]',
                restart: '[data-player="restart"]',
                rewind: '[data-player="rewind"]',
                forward: '[data-player="fast-forward"]',
                mute: '[data-player="mute"]',
                volume: '[data-player="volume"]',
                captions: '[data-player="captions"]',
                fullscreen: '[data-player="fullscreen"]'
            },
            progress: {
                container: '.player-progress',
                buffer: '.player-progress-buffer',
                played: '.player-progress-played'
            },
            captions: '.player-captions',
            currentTime: '.player-current-time',
            duration: '.player-duration'
        },
        classes: {
            videoWrapper: 'player-video-wrapper',
            embedWrapper: 'player-video-embed',
            type: 'player-{0}',
            stopped: 'stopped',
            playing: 'playing',
            muted: 'muted',
后面还有 2029 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。