[wp-trac] [WordPress Trac] #25077: Native video player doesn't autoplay when using flash fallback

WordPress Trac noreply at wordpress.org
Fri Feb 7 23:44:45 UTC 2014


#25077: Native video player doesn't autoplay when using flash fallback
--------------------------+------------------
 Reporter:  leandroprz    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  Media         |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------

Comment (by wonderboymusic):

 This might be accomplishable on init, adding something like:

 {{{
 success: function(mediaElement, domObject) {
         // also need to detect 'autoplay' somehow
         if (mediaElement.pluginType == 'flash') {
             mediaElement.addEventListener('canplay', function() {
                 // Player is ready
                 mediaElement.play();
         }, false);
     }
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25077#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list