Log in

View Full Version : embeding youtube video



ferlach
12-16-2007, 03:42 PM
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:confused:

djr33
12-16-2007, 05:06 PM
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.

jscheuer1
12-16-2007, 05:13 PM
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.

ferlach
12-16-2007, 05:27 PM
:mad:

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

BLiZZaRD
12-16-2007, 05:35 PM
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.

ferlach
12-16-2007, 06:03 PM
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. :(

jscheuer1
12-16-2007, 06:21 PM
This:

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

can be worked out for that.

ferlach
12-16-2007, 06:26 PM
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

bbilal
12-16-2007, 06:55 PM
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 =)

ferlach
12-16-2007, 10:12 PM
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="javascript:openpopup('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.

jscheuer1
12-17-2007, 05:20 AM
Put this link on your page:


<a href="tube_vid_h.htm" target="_blank"
onclick="window.open(this.href,this.target,'top=200,left=200,height=365,width=445,resizable,scrollbars');return false;"
>NECWA Marine Life Video</a>

Put the two files in the below zip archive in the same folder as your page:

1480

GodLovesDemeter
01-05-2008, 08:28 PM
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="javascript:openpopup('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.
Send me the movie link you need to embed and I will show you a cool way to get it working in all major browsers....