Closed romainpoirier closed 1 year ago
getVideoId()
currently only supports YouTube and Vimeo videos, but Dailymotion support is something we can look at (pull requests welcome too!)
It would be super nice if you could integrate it. Thank you 🙏
That should now be working with Embedded Assets 3.1.1.
It works, thank you!
Bug Description
Add this test URL to embeds:
https://www.dailymotion.com/video/x6yvds
. The embed is correctly imported, and is showing up. We can see that there are infos in the created JSON. However, we can't print out the video ID becauseembed.getVideoId()
returns nothing. If trying with a YouTube or Vimeo video, this is working fine: we can get the video using this method.Steps to reproduce
{% set embed = craft.embeddedAssets.get(asset) %}
embed.getVideoId()
Expected behaviour
No response
Embedded Assets version
3.1.0
Craft CMS version
4.3.6