Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

How do I enable users to link to or embed YouTube Videos?

I have seen a number of posts about embedding youtube videos but none seem to be about enabling the end user to embed or link to a youtube video, I not only want to enable this but also to restrict the user such that they can only embed a youtube video and nothing else.

Can you please advise what the best way is to achieve this? Thanks,

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How do I enable users to link to or embed YouTube Videos?

Do you want the end user (end app user) to embed videos?

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

How do I enable users to link to or embed YouTube Videos?

Yes I do - and I want to restrict these to YouTube videos.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How do I enable users to link to or embed YouTube Videos?

I guess this is one way to do it. You have an input where users enter Youtube video URL. You can also validate for Youtube here. The URL is saved into a database. On the same page or a different page, you read the URL and assign it to Youtube embedded widget.

Just to let you know, we are adding a Youtube (and Vimeo) widgets in January.

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

How do I enable users to link to or embed YouTube Videos?

That's a good idea, thanks, though I'm unsure how I would go about validating for YouTube. I will have a go of course, but any tips would be appreciated. The video widgets sound interesting. How will they work, if you're able to share of course. Otherwise, if you could just tell me please if they would make it easier to accomplish what I'm trying to do. Many thanks Max.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How do I enable users to link to or embed YouTube Videos?

For validation, you can check if the URL has "youtube.com" in it.

It will be a component that you drag and drop from the palette. You then only need to set the video id. Yes, it will be simpler with the component.

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

How do I enable users to link to or embed YouTube Videos?

Sounds good. I will try this. Thanks.

Return to “Issues”