1 /* global mejs, _wpmejsSettings */
3 // add mime-type aliases to MediaElement plugin support
4 mejs.plugins.silverlight[0].types.push('video/x-ms-wmv');
5 mejs.plugins.silverlight[0].types.push('audio/x-ms-wma');
10 if ( $( document.body ).hasClass( 'mce-content-body' ) ) {
14 if ( typeof _wpmejsSettings !== 'undefined' ) {
15 settings.pluginPath = _wpmejsSettings.pluginPath;
18 settings.success = function (mejs) {
19 var autoplay = mejs.attributes.autoplay && 'false' !== mejs.attributes.autoplay;
20 if ( 'flash' === mejs.pluginType && autoplay ) {
21 mejs.addEventListener( 'canplay', function () {
27 $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings );