Changeset 28363
- Timestamp:
- 05/11/2014 01:27:29 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mediaelement/wp-mediaelement.js
r27785 r28363 17 17 18 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 () { 19 var autoplay, loop; 20 21 if ( 'flash' === mejs.pluginType ) { 22 autoplay = mejs.attributes.autoplay && 'false' !== mejs.attributes.autoplay; 23 loop = mejs.attributes.loop && 'false' !== mejs.attributes.loop; 24 25 autoplay && mejs.addEventListener( 'canplay', function () { 26 mejs.play(); 27 }, false ); 28 29 loop && mejs.addEventListener( 'ended', function () { 22 30 mejs.play(); 23 31 }, false );
Note: See TracChangeset
for help on using the changeset viewer.