View Full Version : HTML coding with youtube video's
mklane232
April 12th, 2007, 01:56 PM
When you view a video on youtube you can copy and paste a code that you can use to put into a web page. (Much like how David and Tim do for this website). So, my question is is this. If I have my video of me on youtube and I want to put it on my website then how do i get it to work if the coding from the youtube site isn't working when i put it into the coding for the html?
Do you guys just use CSS or do you code every page?
disobedience
April 13th, 2007, 05:09 AM
What type of page are you putting it on?
Some types of sites that use PHP require you to change the code to make it work.
Miika
April 13th, 2007, 05:25 AM
If you're talking about the code in the 'Embed' box, it should work on .html file.
Pekker_Head
April 13th, 2007, 05:45 AM
All the above are right BUT they are using Joomla as their web page creator so it is slightly different as it was a wysiwyg editor (what you see is what you get) and it gives them an option of adding a video. It could look similar to this (image at bottom)
Joomla is really nice, it automatically creates web pages and you change its look by uploading templates. Also its free.
disobedience
April 13th, 2007, 05:50 AM
NLG is using Joomla....I'm not...I use frontpage on most of my sites, the rest are coded by hand.
nlsstar
April 13th, 2007, 09:51 AM
I'm a dreamweaver user for my sites...so i have no idea if that coding will work with that...I thought NLG links the videos from either youtube, google or their own servers...isn't what he's talking about is embedding a video...that can be coded with action scripts to do like "start on page opening, mouse over...things like that?...and the code youtube gives you in that box is for embedding not just linking....i'm only asking for my own personal curioisty?
Mitch
mklane232
April 13th, 2007, 10:30 AM
Yes, NLstar is right..i wanted to embed it into my webpage, not link it or anything like that.
Once i have my website complete i'll let you guys take a look and tell me what you think and maybe i'll be able to get some help making it look better and embeddnig videos.
nlsstar
April 13th, 2007, 07:55 PM
MKlane....did you think of maybe importing it to flash and then using an FLA. or an SWF. file?....i don't know if youtubes code accept script for pre-loading which would help with an embedded video? I'm guessing here...but i would imagine you want to use youtubes servers to store files...which is a good idea...but for embedding it may be slow because it's not directly on your server...again I'm just asking!!
Mitch
Pekker_Head
April 13th, 2007, 09:16 PM
you guys are losing me here is the code for an embeded object on a site.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Name here</title>
</head>
<body>
you tube embed tag here
<p>Some words describing it</p>
</body>
</html>
you should use the "embed" tag on the you tube videos for it to work,
demo of the above code can be seen here
http://codyt07.com/site/orion.html
which is Metallica Playing Orion
Which above I believe is the only way to do You Tube videos
]you want to use youtubes servers to store files...which is a good idea...but for embedding it may be slow because it's not directly on your server...again I'm just asking!!
Yes but the advantage of having it on You Tube is videos are big files and that take up a lot of server space. And it really isn't that much slower (on broadband that is). Also helps with advertisement if you put your web url in the video.
nlsstar
April 14th, 2007, 05:55 AM
Yes but the advantage of having it on You Tube is videos are big files and that take up a lot of server space. And it really isn't that much slower (on broadband that is). Also helps with advertisement if you put your web url in the video.
Pekker ...ah yes...your right i wasn't thinking in the line of tagging a youtube vid with your url in the video to get ppl to search you....i was thinking more in the lines of quality..youtubes compression is...uh...ummmm.. ok at best for what it is intended...but if you look at the vid's that Zepplin Manic puts up from his server the quality is outstanding...and that's kinda were i was thinking...
Mitch
Pekker_Head
April 14th, 2007, 08:01 AM
Yes but the advantage of having it on You Tube is videos are big files and that take up a lot of server space. And it really isn't that much slower (on broadband that is). Also helps with advertisement if you put your web url in the video.
Pekker ...ah yes...your right i wasn't thinking in the line of tagging a youtube vid with your url in the video to get ppl to search you....i was thinking more in the lines of quality..youtubes compression is...uh...ummmm.. ok at best for what it is intended...but if you look at the vid's that Zepplin Manic puts up from his server the quality is outstanding...and that's kinda were i was thinking...
Mitch
You Tube does compress a lot (especially photobucket) but they are forced too with nearly 1 billion videos thats a lot of server space. On my server were some of my videos are from they aren't compress but the biggest downside is time and space. If you are just doing a jam or a informal version of the song stick it on you tube. If you are going all out with guitar solos and hitting every note correctly stick it on a server. As my videos can take nearly 5 minutes to download and you tube 20 seconds. but it is up to you.
mklane232
April 14th, 2007, 08:22 AM
Ok, so here is the link to the video that i want to put on my website...
now, can someone just explain to me how i could embed the given code froms the site into my basic HTML coded webpage.
http://www.youtube.com/watch?v=TyY-8N8TMUE
Pekker_Head
April 14th, 2007, 08:30 AM
read on page 1 I made a basic page with a you tube video.
vBulletin® v3.6.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.