esm.sh
esm.sh copied to clipboard
Dual package hazard on video.js and videojs-youtube ?
We get 'VIDEOJS: ERROR: The "youtube" tech is undefined. Skipped browser support check for that tech'
When these packages are used together, we get https://github.com/videojs/videojs-youtube/issues/569
Imports (not working) "videojs-youtube": "https://esm.sh/videojs-youtube", "video.js": "https://esm.sh/video.js",
Imports (The same works in jsdelivr) "videojs-youtube": "https://cdn.jsdelivr.net/npm/[email protected]/+esm", "video.js": "https://cdn.jsdelivr.net/npm/[email protected]/+esm",
@mediabuff can you please post a mini demo i can test? thanks 🙏
Hi, more clarification.
- Both esm and jsdelvr work in simple html. See indexYT.html
- Both don't work in a simple React component. Both work on MP4 - I assume that this does'nt use the second YT package. I have attached source code for React app. you can toggle between mp4 and youtube. react-YT-videojs-nobundle.zip indexYT.zip
thanks