Hide loading spinner after playing (flash issue). Added example with flash.

This commit is contained in:
Kasper Moskwiak 2015-10-18 00:23:16 +02:00
parent 9807328dc0
commit b09025742b
2 changed files with 51 additions and 1 deletions

View file

@ -54,7 +54,10 @@
// Probably because of https://github.com/videojs/video-js-swf/issues/124
setSourcesSanitized(this.player_, this.src).one('loadeddata', function() {
this.player_.currentTime(currentTime);
if(!isPaused){ this.player_.play(); }
if(!isPaused){
// Start playing and hide loadingSpinner (flash issue ?)
this.player_.play().handleTechSeeked_();
}
this.player_.trigger('resolutionchange');
});
}