diff --git a/example.html b/example.html index 41356fe..cdf913e 100644 --- a/example.html +++ b/example.html @@ -44,6 +44,14 @@ + +
+

+ Use flash +

+
+ + diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index 9f98be0..b23f3eb 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -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'); }); }