Click to See Complete Forum and Search --> : Embedding a YouTube video


charter
09-01-2007, 06:59 AM
I am building a website for a local band.
There are some videos of the band on YouTube.

I wish to embed a couple of the videos on YouTube into my web page.
Could anyone tell me the coding in which to embed the videos in to a web page.

I have seen some embedded YouTube Videos in some music forums.
For Example at this URL http://www.buzzjack.com/forums/index.php?showtopic=48589

All you have to do on this site is use the following tags video code number here

I have tried this but it doesn't work.

So if someone knows how to code this onto the web page I would be greatful.

All help very much appreciated.

Major Payne
09-05-2007, 11:24 PM
Something like this:

<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/Rest of path info here"></param>

<embed src="http://www.youtube.com/Rest of path info here" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object>

or you can get really fancy:

<object width="320" height="285" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://YouTube file info here">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="false">
<embed type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' name='mediaPlayer' displaysize='4' autosize='-1' bgcolor='#000000' showcontrols="1" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285" src="http://YouTube file info here" autostart="false" designtimesp='5311' loop="false">
</object>

Ron

LeeU
09-06-2007, 05:02 PM
Next to the video on YouTube is the embed code for placing it on your site. Works fine. You shouldn't have any problems. Should look like this:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/AGygrKwjwL4"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/AGygrKwjwL4" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

charter
09-07-2007, 05:15 AM
Many Thanks Major Payne & Lee U

Just one other point. On the You Tube page some videos have the Embedding info as: Embedding disabled by request.
Is there any code to get around this or would it be illegal.

If it's illegal I would not go there.

Again Thanks

Major Payne
09-07-2007, 08:43 AM
I imagine the "embedding disabled by request" was done by the individual to limit the display of the video only on YouTube. That doesn't prevent those who know how to read the source code from getting the video path and setting it up as I showed in post #2.

Ron

LeeU
09-07-2007, 09:22 AM
YouTube is very clear on that issue:

F. You agree not to circumvent, disable or otherwise interfere with security-related features of the YouTube Website or features that prevent or restrict use or copying of any Content or enforce limitations on use of the YouTube Website or the Content therein.
In answer to your question, yes, it would be illegal, according to the terms given on their Web site. It's just like anything else on the Web, just because it's there does not mean it's available for use by anyone. Since the person has disabled it, it would then be illegal to use it since it is without their permission.

charter
09-07-2007, 04:24 PM
Thanks for that.

I'll just play them through YouTube in a seperate browser window.