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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27895 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-04-01 19:03:24 +00:00
parent 13a0532006
commit b1122743c8
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();
}
},