WordPress/wp-includes/js/mediaelement/wp-mediaelement.min.js

1 line
789 B
JavaScript

!function(e,t){e.wp=e.wp||{},mejs.plugins.silverlight[0].types.push("video/x-ms-wmv"),mejs.plugins.silverlight[0].types.push("audio/x-ms-wma"),e.wp.mediaelement=new function(){var e={};return{initialize:function(){(e="undefined"!=typeof _wpmejsSettings?t.extend(!0,{},_wpmejsSettings):e).success=e.success||function(e){var t,i;"flash"===e.pluginType&&(t=e.attributes.autoplay&&"false"!==e.attributes.autoplay,i=e.attributes.loop&&"false"!==e.attributes.loop,t&&e.addEventListener("canplay",function(){e.play()},!1),i&&e.addEventListener("ended",function(){e.play()},!1))},t(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").filter(function(){return!t(this).parent().hasClass(".mejs-mediaelement")}).mediaelementplayer(e)}}},t(e.wp.mediaelement.initialize)}(window,jQuery);