http-streaming
http-streaming copied to clipboard
Uncaught TypeError: Cannot read properties of undefined (reading 'NetworkBadStatus')
This package supports "video.js": "^7 || ^8" according to the package.json https://github.com/videojs/http-streaming/blob/main/package.json#L67C5-L67C27, but in reality, it doesn't support the 7 version of the video.js.
In this file https://github.com/videojs/http-streaming/blob/main/src/error-codes.js#L18 it calls videojs.Error, but the property was added in the v8.11.0.
Now it fails if you use 7 version of the video.js:
.
How to reproduce:
- install the latest version of the
http-streaming - install the 7th version of the video.js
- specify link which returns errors(4xx/5xx)