Results 1 to 2 of 2

Thread: Uploading And Display Link

  1. #1
    Join Date
    Jul 2006

    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...

  2. #2
    Join Date
    Jan 2009
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles