WordPress.org

Make WordPress Core

Changeset 27895


Ignore:
Timestamp:
04/01/14 19:03:24 (16 months ago)
Author:
wonderboymusic
Message:

Call MediaElement's shim method for setSrc() when dynamically updating the playing source in playlists, which will properly set the source for mobile.

Make the labels for playlist items slightly smaller to account for size on mobile.

Fixes #27625.

Location:
trunk/src/wp-includes/js/mediaelement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mediaelement/wp-mediaelement.css

    r27894 r27895  
    9999 
    100100.wp-playlist-caption { 
    101     max-width: 90%; 
     101    max-width: 88%; 
    102102    overflow: hidden; 
    103103    text-overflow: ellipsis; 
  • trunk/src/wp-includes/js/mediaelement/wp-playlist.js

    r27871 r27895  
    5353                this._player.remove(); 
    5454                this.playerNode = this.$( this.data.type ); 
    55                 this.playerNode.prop( 'src', this.current.get( 'src' ) ); 
     55                this.playerNode.attr( 'src', this.current.get( 'src' ) ); 
    5656                this.settings.success = this.bindResetPlayer; 
    5757            } 
     
    6464        playCurrentSrc : function () { 
    6565            this.renderCurrent(); 
     66            this.player.setSrc( this.playerNode.attr( 'src' ) ); 
    6667            this.player.load(); 
    6768            this.player.play(); 
     
    140141                this.setPlayer(); 
    141142            } else { 
    142                 this.playerNode.prop( 'src', this.current.get( 'src' ) ); 
     143                this.playerNode.attr( 'src', this.current.get( 'src' ) ); 
    143144                this.playCurrentSrc(); 
    144145            } 
Note: See TracChangeset for help on using the changeset viewer.