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

Adding a new 1440p resolution #117

Open kosar91 opened 6 years ago

kosar91 commented 6 years ago

This commit fixes an error, for cases when the video comes in a resolution greater than 1080p.

VIDEOJS: ERROR: TypeError: Cannot read property 'label' of undefined at videojs-resolution-switcher.js?W:323 at Array.map () at b. (videojs-resolution-switcher.js?W:319) at HTMLDivElement.e (video.min.js?W:18) at HTMLDivElement.e (video.min.js?W:18) at HTMLDivElement.d.dispatcher.d.dispatcher (video.min.js?W:18) at Object.k [as trigger] (video.min.js?W:18) at b.a.trigger (video.min.js?W:12) at b.handleTechPlay_ (video.min.js?W:15) at constructor.e (video.min.js?W:18)