- Timestamp:
- 03/07/2014 05:51:25 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mediaelement/wp-mediaelement.js
r26209 r27450 8 8 var settings = {}; 9 9 10 if ( typeof _wpmejsSettings !== 'undefined' ) 10 if ( typeof _wpmejsSettings !== 'undefined' ) { 11 11 settings.pluginPath = _wpmejsSettings.pluginPath; 12 } 13 14 settings.success = function (mejs) { 15 var autoplay = mejs.attributes.autoplay && 'false' !== mejs.attributes.autoplay; 16 if ( 'flash' === mejs.pluginType && autoplay ) { 17 mejs.addEventListener( 'canplay', function () { 18 mejs.play(); 19 }, false ); 20 } 21 }; 12 22 13 23 $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings );
Note: See TracChangeset
for help on using the changeset viewer.