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.


Built from https://develop.svn.wordpress.org/trunk@27895


git-svn-id: http://core.svn.wordpress.org/trunk@27726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-04-01 19:04:14 +00:00
parent 7aaa878a6f
commit 6ec61c7506
2 changed files with 4 additions and 3 deletions

View File

@ -98,7 +98,7 @@
}
.wp-playlist-caption {
max-width: 90%;
max-width: 88%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;

View File

@ -52,7 +52,7 @@
this._player.pause();
this._player.remove();
this.playerNode = this.$( this.data.type );
this.playerNode.prop( 'src', this.current.get( 'src' ) );
this.playerNode.attr( 'src', this.current.get( 'src' ) );
this.settings.success = this.bindResetPlayer;
}
/**
@ -63,6 +63,7 @@
playCurrentSrc : function () {
this.renderCurrent();
this.player.setSrc( this.playerNode.attr( 'src' ) );
this.player.load();
this.player.play();
},
@ -139,7 +140,7 @@
if ( last !== current ) {
this.setPlayer();
} else {
this.playerNode.prop( 'src', this.current.get( 'src' ) );
this.playerNode.attr( 'src', this.current.get( 'src' ) );
this.playCurrentSrc();
}
},