Closed tbobkermux closed 2 years ago
Additional context:
<source>
tag does work.I can definitely see the issue on codesandbox, but locally, I'm not seeing it. Even if I load the code via unpkg. I'll continue investigating.
I think this is a codesandbox issue. If I create a file that matches the id (codesandbox offered to do it for me), that modulenotfounderror goes away and the player loads fine https://codesandbox.io/s/hardcore-rui-q6ilgi?file=/index.html It also doesn't seem to be a parcel related issue, which I thought for a minute.
Just tested again via stackblitz and that loads fine: https://stackblitz.com/edit/web-platform-yfhs7t?file=index.html
I think this is an unfortunate codesandbox issue. I opened an issue against codesandbox: https://github.com/codesandbox/codesandbox-client/issues/6848
Going to close this issue, but I'll try and update it when the codesandbox-client issue is resolved.
A couple of issues I have identified when initialising Videojs as below:
1) just adding the playback ID as
src
throws an error. It seems to be expecting the full playback URL.2) Initialising as above (non Javascript initialisation) and using the full playback URL throws an error: