cinera_player_pre.js: Only resume() if playing
This commit is contained in:
parent
e7aefbada0
commit
6f99a50f50
|
@ -118,8 +118,11 @@ Player.prototype.updateSize = function() {
|
|||
this.markersContainer.style.height = height;
|
||||
if (this.youtubePlayerReady) {
|
||||
this.youtubePlayer.setSize(Math.floor(width), Math.floor(height));
|
||||
if(this.playing)
|
||||
{
|
||||
this.resume();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Stops the per-frame work that the player does. Call when you want to hide or get rid of the player.
|
||||
|
|
Loading…
Reference in New Issue