kmoskwiak / videojs-resolution-switcher

Resolution switcher adds the ability to select the video quality in video.js player.
https://kmoskwiak.github.io/videojs-resolution-switcher/
Other
402 stars 244 forks source link

Changing resolution results to error: TypeError: setSourcesSanitized(...) is undefined #116

Open Edvac opened 6 years ago

Edvac commented 6 years ago

When I change resolution the video stops. (I should reload the video in order to play) and I get the following error in the console.

VIDEOJS: ERROR: TypeError: setSourcesSanitized(...) is undefined
Stack trace:
onClick@http://localhost:63343/videojs-tutorial/dist/videojs-resolution-switcher.js:92:7
bound@http://localhost:63343/videojs-tutorial/dist/video.js:2348:12
on/data.dispatcher@http://localhost:63343/videojs-tutorial/dist/video.js:1971:15
 video.js:498:5

Is it a videojs or videojs-resolution-switcher error? How can I solve it?

beznosd commented 5 years ago

Here is the solution, works well for version 7. https://github.com/kmoskwiak/videojs-resolution-switcher/issues/88#issuecomment-311984273