Embed icon indicating copy to clipboard operation
Embed copied to clipboard

Possible to add id of video?

Open bkmorse opened this issue 5 years ago • 2 comments

You provide things like title, width, height, url. Is it possible to add id to the available pieces of data returned?

bkmorse avatar Nov 17 '20 13:11 bkmorse

This is not included in this library (and won't be) because there's no a standard way to get this. Every site is differerent (youtube, twitter, vimeo...).

But you can create your own detector to get this feature. More info: https://github.com/oscarotero/Embed#detectors

oscarotero avatar Nov 17 '20 18:11 oscarotero

It would be super helpful for youtube. The only way for loop to actually work is to add playlist=id. @bkmorse were you able to get the id with detectors?

laurabennett avatar Oct 05 '23 14:10 laurabennett