videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.53k stars 425 forks source link

Question - are not dependency components automatically included when importing the js file? #1353

Closed JeppeTh closed 1 year ago

JeppeTh commented 1 year ago

Hi!

I tried out the v.3.0.0 which states it uses m3u8-parser v6.0.0.

However when I use new m3u8Parser.Parser it complains that m3u8Parser isn't found?

Is this expected or not?

There's no v.6.0.0 release which I can include in my js. v4.7.0 is the latest. I can include this before videojs but then I guess v.6.0.0 won't be used?

misteroneill commented 1 year ago

Thanks for the report. It does appear that the dependencies are mis-aligned here in the package-lock.json. A fresh VHS install shows:

└─┬ @videojs/http-streaming@2.16.2
  ├── @babel/runtime@7.21.0
  ├── @videojs/vhs-utils@3.0.5
  ├── aes-decrypter@3.1.3
  ├── global@4.4.0
  ├── m3u8-parser@4.8.0
  ├── mpd-parser@0.22.1
  ├── mux.js@6.0.1
  └── video.js@7.21.4