[wp-trac] [WordPress Trac] #27971: pauseAllPlayers in media-audiovidio.js stops players on the entire page
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Apr 22 14:12:56 UTC 2014
    
    
  
#27971: pauseAllPlayers in media-audiovidio.js stops players on the entire page
--------------------------+-----------------------------
 Reporter:  raptor235     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.9
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 The issue is that players outside of the tinymce get stopped... the
 function should target the players within the tinymce editor only and
 don't stop all players on the page weather they're related to the
 switching between rich text and html mode...
 $(document.body)
                         .on( 'click', '.wp-switch-editor',
 wp.media.mixin.pauseAllPlayers )
 pauseAllPlayers: function() {
                         var p;
                         if ( window.mejs && window.mejs.players ) {
                                 for ( p in window.mejs.players ) {
                                         window.mejs.players[p].pause();
                                 }
                         }
                 },
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27971>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list