$scripts->
add( 'mediaelement', false, array
( 'jquery', 'mediaelement-core', 'mediaelement-migrate'
), '4.2.17', 1
);
$scripts->
add( 'mediaelement-core', "/wp-includes/js/mediaelement/mediaelement-and-player
$suffix.js", array
(), '4.2.17', 1
);
$scripts->
add( 'mediaelement-migrate', "/wp-includes/js/mediaelement/mediaelement-migrate
$suffix.js", array
(), false, 1
);
did_action( 'init'
) &&
$scripts->
add_inline_script( 'mediaelement-core',
sprintf( 'var mejsL10n = %s;',
wp_json_encode( array
( 'language' =>
strtolower( strtok( determine_locale(), '_-'
) ),
'strings' => array
( 'mejs.download-file' =>
__( 'Download File'
),
'mejs.install-flash' =>
__( 'You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/'
),
'mejs.fullscreen' =>
__( 'Fullscreen'
),
'mejs.play' =>
__( 'Play'
),
'mejs.pause' =>
__( 'Pause'
),
'mejs.time-slider' =>
__( 'Time Slider'
),
'mejs.time-help-text' =>
__( 'Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.'
),
'mejs.live-broadcast' =>
__( 'Live Broadcast'
),
'mejs.volume-help-text' =>
__( 'Use Up/Down Arrow keys to increase or decrease volume.'
),
'mejs.unmute' =>
__( 'Unmute'
),