embed-video
embed-video copied to clipboard
🎥 Get embed HTML code for youtube/vimeo/whatever from URL or ID
youtube has an alternative embedding host (`https://www.youtube-nocookie.com/`) for more privacy focused embeddings (no tracking until video is played) I'd suggest to add an option that would allow to switch to...
I'd be interested in submitting a pull request to support instagram embeds. Those are a little trickier in that they require a script tag, which you usually don't want more...
Add invidio.us parsing. It is basically the same as YouTube, so a lot of copy-pasted code. A refactoring could allow both YouTube and Invidio.us parsing to reuse the same code...
Adding type definitions for typescript
It would be nice if the embed URL formats were also parsed, like: * https://www.youtube.com/embed/LsBrT6vbQa8 * https://player.vimeo.com/video/250030285 * https://www.dailymotion.com/embed/video/x6uz6s2 @alanshaw if you agree, I can work on the PR.
When the the URL is invalid, we the error `Uncaught TypeError: Cannot read property 'indexOf' of null`. I'll add a fix for the issue.
This prevents an error when passing URLs without a protocol i.e. `www.mysite.com`, which don't have a `hostname` (among other things)