How to add URL from database to YouTube
Question

I am working on 1 reactive application, in this application I want to add Url to video  from database

If I give URL from youtube it is displaying video but from database it wont 

database

mvp_badge
MVP
Solution

Hi Priyanka,

Ensure that the URL contains embed rather watch as the /embed. Refer to this post:stackoverflowPost

For e.g.,

URL won't work in IFrame - https://www.youtube.com/watch?v=bp9qi3R7K0U

IFrame URLhttps://www.youtube.com/embed/bp9qi3R7K0U


I hope this helps you!


Kind regards,

Benjith Sam

Hello Benjith Sam,

I changed the url path now iframe  is working only for single url not for multiple url, i.e it is not refreshing. How to refresh the iframe content i.e Url


Regards,

Priyanka


Solution

Hello everyone,

Thank you, By refreshing the aggregate we can refresh video links of URL, I got the answer.

Regards, 

Priyanka

Solution

Hello everyone,

Thank you, By refreshing the aggregate we can refresh video links of URL, I got the answer.

Regards, 

Priyanka

Hi Priyanka,

You need to use block for that. You need to create iframe using html element widget in web block. Create a input parameter for video URL.

I am sharing attached sample for the same.

Thanks

Vinod

SongsSample.oml

mvp_badge
MVP
Solution

Hi Priyanka,

Ensure that the URL contains embed rather watch as the /embed. Refer to this post:stackoverflowPost

For e.g.,

URL won't work in IFrame - https://www.youtube.com/watch?v=bp9qi3R7K0U

IFrame URLhttps://www.youtube.com/embed/bp9qi3R7K0U


I hope this helps you!


Kind regards,

Benjith Sam

Hello Benjith Sam,

I changed the url path now iframe  is working only for single url not for multiple url, i.e it is not refreshing. How to refresh the iframe content i.e Url


Regards,

Priyanka


Solution

Hello everyone,

Thank you, By refreshing the aggregate we can refresh video links of URL, I got the answer.

Regards, 

Priyanka

Hi Priyanka,

You must ensure the URL contains embed rather watch as the /embed endpoint allows outside requests, whereas the /watch endpoint does not. 

Example - 

https://www.youtube.com/embed/A6XUVjK9W4o

Hello Priyanka,

URL contains embed. For that, you have to follow the below steps

  1. In that Youtube, video description click on the share 
  2. then click on the embed 
  3. Copy the URL

I hope it is helpful!

Thanks 

Suraj Paul

Hi Priyanka,

Please check the attached OML. That contains two example -

1. How to render video's within List.

https://personal-itafqtdv.outsystemscloud.com/SongsSample/VideoSample

2. Change iframe src on table link click.

https://personal-itafqtdv.outsystemscloud.com/SongsSample/VideoSample2


Thanks

Vinod

SongsSample.oml

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.