mirror of
https://github.com/WordPress/WordPress.git
synced 2024-08-22 05:43:45 +02:00
Built from https://develop.svn.wordpress.org/trunk@26209 git-svn-id: http://core.svn.wordpress.org/trunk@26117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
17 lines
466 B
JavaScript
17 lines
466 B
JavaScript
/* global mejs, _wpmejsSettings */
|
|
(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));
|