Skip to content

Commit

Permalink
Fix for loading message sticking around on YouTube videos
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwise committed Sep 12, 2014
1 parent f660436 commit 58d6724
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/js/media/types/VCO.Media.YouTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ VCO.Media.YouTube = VCO.Media.extend({
onReady: function() {
self.onPlayerReady();
// After Loaded
self.onLoaded();
//self.onLoaded();
},
'onStateChange': self.onStateChange
}
Expand All @@ -131,14 +131,18 @@ VCO.Media.YouTube = VCO.Media.extend({
}, 1000);
}

this.onLoaded();

},

/* Events
================================================== */
onPlayerReady: function(e) {

this.youtube_loaded = true;
this._el.content_item = document.getElementById(this._el.content_item.id);
this.onMediaLoaded();
this.onLoaded();
},

onStateChange: function(e) {
Expand Down

0 comments on commit 58d6724

Please sign in to comment.