| YouTube Tips |
Mindwatering Incorporated
Tripp W Black on 05/14/2008 at 10:55 PM |
Category: General Web Tips
Other
|
There are a couple of YouTube things you can do once you decide to embed the video off of YouTube's web site:
1. Add the wmode=transparent will reduce the frame a bit. A YouTube video is nothing but a Flash SWF runing FLV movie.
2. To make the code work w/opera, change the url in the embed tag replacing the /v/ with /p.swf?video_id= .
(This seems to break Firefox and Safari. We are leaving it out.)
3. To make the movie start automatically, add the following to the URL: &autoplay=1 to the embed url and &autostart=1 to the object URL.
4. You might want to put a picture up front. There are three methods we've commonly seen. Once had a picture just link out to the YouTube. The second good workaround is to have your own Flash SWF load the YouTube video via the Object method. The last is a technique I saw by David Battimo where you simply wrap the code in a div with a standard link with the onClick running a custom function. The function is attached below. Sample updated div code is also below:
previous page
|