2013-11-15 01:52:09 -05:00
|
|
|
/* global mejs, _wpmejsSettings */
|
2013-03-16 01:25:44 -04:00
|
|
|
(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');
|
|
|
|
|
2013-08-01 09:15:14 -04:00
|
|
|
$(function () {
|
|
|
|
var settings = {};
|
|
|
|
|
|
|
|
if ( typeof _wpmejsSettings !== 'undefined' )
|
|
|
|
settings.pluginPath = _wpmejsSettings.pluginPath;
|
|
|
|
|
|
|
|
$('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings );
|
2013-03-16 01:25:44 -04:00
|
|
|
});
|
|
|
|
|
2013-08-01 09:15:14 -04:00
|
|
|
}(jQuery));
|