diff --git a/player/gdrive-youtube.coffee b/player/gdrive-youtube.coffee index 37aa08a2..c7461c03 100644 --- a/player/gdrive-youtube.coffee +++ b/player/gdrive-youtube.coffee @@ -28,6 +28,7 @@ window.GoogleDriveYouTubePlayer = class GoogleDriveYouTubePlayer extends Player @onReady() load: (data) -> + @yt = null @setMediaProperties(data) @init(data) diff --git a/www/js/player.js b/www/js/player.js index 02c7a2fc..1cf52a40 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -1129,6 +1129,7 @@ }; GoogleDriveYouTubePlayer.prototype.load = function(data) { + this.yt = null; this.setMediaProperties(data); return this.init(data); };