From c278689bb9f4cb6122480191a2ac82c0a2bca70d Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 4 Apr 2019 18:27:08 +0400 Subject: [PATCH] [1/4] handleTechSeeked_ is not a function 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/ https://github.com/kmoskwiak/videojs-resolution-switcher/issues/129#issue-428996077 --- lib/videojs-resolution-switcher.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index eae1c38..b47458b 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -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'); });