wp/wp-includes/js/mediaelement/wp-mediaelement.js
author ymh <ymh.work@gmail.com>
Wed, 06 Nov 2013 03:21:17 +0000
changeset 0 d970ebf37754
child 5 5e2f62d02dcd
permissions -rw-r--r--
first import
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
(function ($) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
	// add mime-type aliases to MediaElement plugin support
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
	mejs.plugins.silverlight[0].types.push('video/x-ms-wmv');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
	mejs.plugins.silverlight[0].types.push('audio/x-ms-wma');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
	$(function () {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
		var settings = {};
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
		if ( typeof _wpmejsSettings !== 'undefined' )
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
			settings.pluginPath = _wpmejsSettings.pluginPath;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
		$('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
	});
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
}(jQuery));