Uploading And Display Link
Hi, i want to add a section to my site so that my members can add a youtube video to their profile page.
I have added a section called My Video to the My Account section of my site.
I now want users to be able to enter a youtube link so that i can then display it on their profile page BUT i am not sure what link / url i should be asking the members to upload.
For example, there are 3 different links / options:
1 - the youtube url for this video is http://www.youtube.com/watch?v=f_JRZI9o49w
2 - the share url is http://youtu.be/f_JRZI9o49w
3 - the embed code is <iframe width="853" height="480" src="http://www.youtube.com/embed/f_JRZI9o49w" frameborder="0" allowfullscreen></iframe>
Q1 - what should i ask my members to upload
Q2 - what code should i build into my script so that when i call the member's $youtube_video it will play the video back in my script
Thanks in advance for any help that you can give...
You could accept either way to build your embed code. You'll just need the video identifier used in either URL to place in your embed code. In your example the video identifier is f_JRZI9o49w and can be found at the end of both example URLs.
Users Browsing this Thread
There are currently 1 users browsing this thread.
(0 members and 1 guests)