Skip to content

Commit

Permalink
[1/4] handleTechSeeked_ is not a function
Browse files Browse the repository at this point in the history
1/4 compatibility fix VideoJs 7+

Error after switching quality
> VIDEOJS: ERROR: TypeError: player.play(...).handleTechSeeked_ is not a function at Player. (videojs-resolution-switcher.js:184)
This is probably due to the exclusion of the flash from the kernel.
https://blog.videojs.com/video-js-removes-flash-from-core-player/

kmoskwiak#129 (comment)
  • Loading branch information
BaNru authored Apr 4, 2019
1 parent 85f1e51 commit c278689
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/videojs-resolution-switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,8 @@
.setSourcesSanitized(sources, label, customSourcePicker || settings.customSourcePicker)
.one(handleSeekEvent, function() {
player.currentTime(currentTime);
player.handleTechSeeked_();
if(!isPaused){
// Start playing and hide loadingSpinner (flash issue ?)
player.play().handleTechSeeked_();
player.play();
}
player.trigger('resolutionchange');
});
Expand Down

0 comments on commit c278689

Please sign in to comment.