http-streaming icon indicating copy to clipboard operation
http-streaming copied to clipboard

Uncaught TypeError: Cannot read properties of undefined (reading 'NetworkBadStatus')

Open idsulik opened this issue 9 months ago • 1 comments

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:

Image.

How to reproduce:

  1. install the latest version of the http-streaming
  2. install the 7th version of the video.js
  3. specify link which returns errors(4xx/5xx)

idsulik avatar Feb 10 '25 13:02 idsulik