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 10 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

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

welcome[bot] avatar Feb 10 '25 13:02 welcome[bot]