Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: embeding youtube video

  1. #1
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question embeding youtube video

    I am working on a site where somebody has made a clip for the site and has uploaded it to youtube.

    He has told us to go get it and imbed in on our site.

    I do not have a clue how to go about it. I mean I can get the object tag with the file name, which is right there to copy, what I mean is how to I get the actual clip from the youtube site?

    Thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    Well, as with any html, you can just place it in the source code.

    <img src="myimg.jpg" alt="a picture!"> would be the easiest way to show an image on a page. And, just like text, it would display right where it is in the source code.

    An object tag, such as flash, is a lot more complex looking, but the same, in essence-- it's a chunk of code that does something-- displays a graphic.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,953
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Yes, just copy the tag from YouTube to your HTML page using a text-only editor. You don't need to have the vid, Flash file or anything. Let YouTube host it.

    If you paid for this content and want to physically have it, and if your contract with the person who made it for you doesn't preclude your having the file, and you payed a reasonable price for it, ask the person who made it to make it available to you for download.

    But, it really is much simpler to just embed the tag on your page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face embedded youtube



    I embeded the object on a test page and all I get is the player and the dotted circle going round, round, around, ...

    I have not been able to get it to play!!!

    What am I doing wrong or missing to do?

    Thanks

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Either you didn't get all the code to paste on your page, the link is dead, or you are on a slow connection and need to just wait a few minutes. Some youtube videos take a while to buffer.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #6
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You were right it needed more time than I had giving it. A failing of mine that I seem to think it takes less time than it really needs.

    BUT I have another problem with it.

    I noticed that the player needs just too much space and I would like to make it a separate popup window player.

    I believe for that I need some js, and I do what? The js goes in the head and what do I need to write in the body.

    I did study js, but that was 3+ years ago and have not used it since than. Naturally if you do not use you LOSE.

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,953
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    This:

    http://www.dynamicdrive.com/dynamicindex8/popwin.htm

    can be worked out for that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb addendum to previous post

    I would like to add the following to my previous post.

    I foolded around with the youtube player and ended up with a non-to-bad looking one. So what I would like to do is have this player pop up in its own window, so that the page only needs a spot for the link to this popup.

    I know it still needs its js code, but I hope this will need a simpler solution.

    Thanks

  9. #9
    Join Date
    Sep 2007
    Posts
    162
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    All you have to do is to goto the direct video URL then on the right side above similar videos probably you will find a embed link just paste it anywhere in you site body where you want to place it =)

  10. #10
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Have now crashed head first into a mountain, and am stuck.

    I test my website in 2 browsers and the owner of the site only has a mac, so when she is checking it she uses the safari, and am learning what I have to change in order for her to see what the other 2 browsers see.

    A friend made a promotional short video and uploaded it to YouTube, and I simply linked to that video. She did not like it, so I have decided to put it into a popup window, and with some kind help of this forum have found js for this and also to have this video play there.

    It worked fine in IE and I thought great, and tested it in FF. NO VIDEO (

    I then went searching and found some help and amended it to play in FF. Works great,

    BUT AGAIN A BIG PROBLEM.

    Now it will not work in IE and instead of the text link I have a large white space of the page and did not keep a copy of the earlier version. gggggrrrrrrreeeeeeeeeeeee

    Now what?

    I have used the following code.

    In the head

    <script language="javascript" type="text/javascript">
    <!--
    function openpopup(popurl)
    {
    var winpops=window.open(popurl,"","left=310, top=70, width=428, height=373")
    }

    // -->
    </script>

    and in the body the following

    <object name="wmode" type="application/x-shockwave-flash" data="movie.swf" wmode="transparent" width="428px" height="373px"><param name="movie" value="movie.swf" />
    <a href="javascriptpenpopup('http://www.youtube.com/v/bnsF5lIqw1s&rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1')">The animals in their natural habitat</a></object>

    Do I need to have one link for FF and another link for IE, and if this is so could I have some help in order for it to work again in IE.
    Also will the FF code work with safari?

    Any help is enormously appreaciated.

Bookmarks

Posting Permissions

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