esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Dual package hazard on video.js and videojs-youtube ?

Open mediabuff opened this issue 2 years ago • 3 comments

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 avatar Apr 30 '23 12:04 mediabuff

@mediabuff can you please post a mini demo i can test? thanks 🙏

ije avatar May 02 '23 11:05 ije

Hi, more clarification.

  1. Both esm and jsdelvr work in simple html. See indexYT.html
  2. 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

mediabuff avatar May 02 '23 15:05 mediabuff

thanks

ije avatar May 02 '23 17:05 ije