From 6f99a50f509a59d03885c5af447b42c5a0e9ca8f Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Wed, 28 Feb 2018 01:25:50 +0000 Subject: [PATCH] cinera_player_pre.js: Only resume() if playing --- cinera/cinera_player_pre.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cinera/cinera_player_pre.js b/cinera/cinera_player_pre.js index 558ef25..57dd285 100644 --- a/cinera/cinera_player_pre.js +++ b/cinera/cinera_player_pre.js @@ -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(); + } } }