Not exactly.
If you go view a video on youtube you will see there is an option to get
the embed code. This is the what you should ask your user's to input.
You could have a simple regex check to make sure it seems like an embed
code.
You then echo that in the view like normal html.
On 18/03/2011 10:11, Shashank wrote:
You mean i shud give the user and input field where he enters the url
of youtube, and on submit i produce this iframe whose src will be the
url that the user entered
On Fri, Mar 18, 2011 at 1:32 PM, Warren <smole...@gmail.com
<mailto:smole...@gmail.com>> wrote:
Could you not use a simple form field that take the embed code
from youtube eg : <iframe title="YouTube video player" width="480"
height="390" src="http://www.youtube.com/embed/8rluU6BGpKw"
frameborder="0" allowfullscreen></iframe> ?
And then echo that in the view?
On 18/03/2011 09:58, Shashank wrote:
Hi Guys,
I need to know a way that enables the user to share youtube
vedios on
the site.
Thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org Check out the new CakePHP Questions site
http://ask.cakephp.org and help others with their CakePHP related
questions.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
<mailto:cake-php%2bunsubscr...@googlegroups.com> For more options,
visit this group at http://groups.google.com/group/cake-php
--
Shashank Singh
B.E.(Computer Science)
Software Developer
+91-9711882054
+91-9560545085
Skype id: shashank.singh87
Email: shashank.si...@sourcefuse.com
<mailto:shashank.si...@sourcefuse.com>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and
help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this
group at http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php