cinera_player_pre.js: Only resume() if playing
This commit is contained in:
parent
e7aefbada0
commit
6f99a50f50
|
@ -118,7 +118,10 @@ Player.prototype.updateSize = function() {
|
||||||
this.markersContainer.style.height = height;
|
this.markersContainer.style.height = height;
|
||||||
if (this.youtubePlayerReady) {
|
if (this.youtubePlayerReady) {
|
||||||
this.youtubePlayer.setSize(Math.floor(width), Math.floor(height));
|
this.youtubePlayer.setSize(Math.floor(width), Math.floor(height));
|
||||||
this.resume();
|
if(this.playing)
|
||||||
|
{
|
||||||
|
this.resume();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue