mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-04 02:09:41 +02:00
Hide loading spinner after playing (flash issue). Added example with flash.
This commit is contained in:
parent
9807328dc0
commit
b09025742b
2 changed files with 51 additions and 1 deletions
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue