I tried adding a YouTube video to an interface but it ends up blank.
a!videoField( videos: { a!webVideo( source: document(21953,"url") ) } )
I tried using this code and for source I tried replacing it with the YouTube video url which didn't work also. Do I need the mp4 of the video in documents or are YouTube videos not compatible?
Discussion posts and replies are publicly visible
I have looked at this in the past and I've been unable to link to YouTube videos. AFAIK this hasn't changed and for one particular use case I simply downloaded the video and uploaded it into my environment.
Would love to know if anyone knows how to embed a YouTube video though!
To embed a youtube video copy the HTML embedded tag Youtube will give you. Within that, there's a URL that has /embed. Place that in a web content field. There are also component plugins in the app market which are more Youtube friendly.
Brilliant. I'll explore when I can
Danny Verb I tried the embedded link from YouTube video but it is not working. What are the component plugins are available in App market which support YouTube videos. I see one plugin Advanced Video Player Component but it is not updated since 2019. Do you have any other plugins available?
Danny Verb do you have any sample code (with embed link) that work for YouTube video. I also reviewed all components in app market I haven't found any plugins which support video components except Advanced Video Player (I tried this which is also not working for you tube videos).
Hey Naresh please, follow the following steps for getting a Youtube embed Link.:
Open the YouTube video on YouTube that you want to add to your interface.
Click on Share button that is below the Video.
A pop up window appears with different options to share from. Select Embed from these options.
You will get an iframe link containing the different options for the video.
Select Enable privacy-enhanced mode from the Embed Options for no cookies option.
Copy only the src value from the iframe link
Forgive me if you have tried this and it hasnt worked. Example of embed video: https://www.youtube.com/embed/Yzu_VcFdWYk
Thanks so much for this explanation -- Helped me a lot
Please explain how you achieve this i am trying from 2 days.
This help me, Thanks Danny !1