mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
7aaa878a6f
commit
6ec61c7506
@ -98,7 +98,7 @@
|
||||
}
|
||||
|
||||
.wp-playlist-caption {
|
||||
max-width: 90%;
|
||||
max-width: 88%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user