mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
15 lines
431 B
JavaScript
15 lines
431 B
JavaScript
(function ($) {
|
|
// add mime-type aliases to MediaElement plugin support
|
|
mejs.plugins.silverlight[0].types.push('video/x-ms-wmv');
|
|
mejs.plugins.silverlight[0].types.push('audio/x-ms-wma');
|
|
|
|
$(function () {
|
|
var settings = {};
|
|
|
|
if ( typeof _wpmejsSettings !== 'undefined' )
|
|
settings.pluginPath = _wpmejsSettings.pluginPath;
|
|
|
|
$('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings );
|
|
});
|
|
|
|
}(jQuery));
|