cinera_player_pre.js: Only resume() if playing

This commit is contained in:
Matt Mascarenhas 2018-02-28 01:25:50 +00:00
parent e7aefbada0
commit 6f99a50f50
1 changed files with 4 additions and 1 deletions

View File

@ -118,7 +118,10 @@ Player.prototype.updateSize = function() {
this.markersContainer.style.height = height;
if (this.youtubePlayerReady) {
this.youtubePlayer.setSize(Math.floor(width), Math.floor(height));
this.resume();
if(this.playing)
{
this.resume();
}
}
}