Add support for more video URLs
Looking at the extractVideoUrl function, I see that it only supports YouTube and Vimeo. I think Facebook, Instagram, TikTok, and Dailymotion are all popular enough that their video URLs should be supported.
Examples of URLs users might paste:
- https://www.facebook.com/tastyjunior/videos/371340857814381
- https://www.facebook.com/watch/?v=371340857814381
- https://fb.watch/7B5q25xnSb/
Example of what a URL should be transformed into:
https://www.facebook.com/plugins/video.php?height=476&href=https%3A%2F%2Fwww.facebook.com%2Ftastyjunior%2Fvideos%2F371340857814381%2F&show_text=false&width=380&t=0
Examples of URLs users might paste:
- https://www.instagram.com/p/BBGUSrjP1fW/
- https://www.instagram.com/tv/CS9wEBUl103/?utm_medium=copy_link
- https://www.instagram.com/reel/CS7qvUFlKYl/?igsh=d24tbzcyNmO6zXt6
Example of what a URL should be transformed into:
https://www.instagram.com/p/BBGUSrjP1fW/embed/
TikTok
Examples of URLs users might paste:
- https://www.tiktok.com/@cloud9pethotel/video/6993643918827080962?is_copy_url=1&is_from_webapp=v1
- https://vm.tiktok.com/ZMRjQcmdX/
Example of what a URL should be transformed into:
https://www.tiktok.com/embed/6993643918827080962
Dailymotion
Examples of URLs users might paste:
- https://www.dailymotion.com/video/x1b191p
- https://dai.ly/x1b191p
Example of what a URL should be transformed into:
https://www.dailymotion.com/embed/video/x1b191p?autoplay=1