Page 1 of 1
How do I enable users to link to or embed YouTube Videos?
Posted: Sat Dec 28, 2013 1:31 am
by Louis Adekoya
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,
How do I enable users to link to or embed YouTube Videos?
Posted: Sat Dec 28, 2013 2:10 am
by maxkatz
Do you want the end user (end app user) to embed videos?
How do I enable users to link to or embed YouTube Videos?
Posted: Sat Dec 28, 2013 2:12 am
by Louis Adekoya
Yes I do - and I want to restrict these to YouTube videos.
How do I enable users to link to or embed YouTube Videos?
Posted: Sat Dec 28, 2013 2:31 am
by maxkatz
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.
How do I enable users to link to or embed YouTube Videos?
Posted: Sat Dec 28, 2013 2:42 am
by Louis Adekoya
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.
How do I enable users to link to or embed YouTube Videos?
Posted: Sat Dec 28, 2013 5:30 am
by maxkatz
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.
How do I enable users to link to or embed YouTube Videos?
Posted: Sat Dec 28, 2013 8:43 pm
by Louis Adekoya
Sounds good. I will try this. Thanks.