As video becomes easier to produce, more and more people are creating and sharing videos online. Whether you are a professor demonstrating your research, a student working on a film project, or me creating how-to instructions, you've realized that there are times when video can enhance your Web content.
The resolution on YouTube is not as crisp as the original.
You can also view the video in higher resolution .mov format.
Back at the turn of the century, embedding video was complicated. Streaming required a special server, you had to decide what format(s) you wanted to stream, then you had to provide links to whatever software users might need to view your video—in case it wasn't already installed on their computers.
With YouTube, that's all changed. Now you can just go to the YouTube page for the video you wish to embed, copy the coding they provide, paste it into your html file or blog entry and publish the page.
It's just that easy—unless, like me, you care about adhering to Web standards. In that case, it requires a few more steps, but don't worry, they're not that complicated. YouTube videos can be embedded on the Web using swfobject.js—in a manner similar to the method I described last year in "Embedding Flash Objects for Internet Explorer." You can also use this method for embedding regular Flash .swf files. Just substitute the path to your .swf for the YouTube link in the instructions below.
SWFObject 2.0 provides a significant upgrade to SWFObject 1.5—what we'd previously been using to embed Flash .swf files. To begin you will want to download the new script from the SWFobject project page. After downloading the script, you can upload it to your site, in whichever directory you prefer. Note: SWFobject 2.0 is not backwards compatible with 1.5, but the script has the same file name, swfobject.js. If you are already using 1.5 on your site—and don't plan to immediately edit all the pages that use it—you should rename the file to something like swfobject2.js or store it in a different directory so that you don't write over the prior version.
While you could do this manually by following the instructions in the documentation, the SWFobject team has provided a rather handy Web-based code generator that we'll use in this example.
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/b-tYxJcFj9I&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/b-tYxJcFj9I&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
<script
type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "9.0.0");
</script>
<script type="text/javascript" src="swfobject.js"></script>
<script
type="text/javascript" src="swfobject2.js"></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "9.0.0");
</script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="425" height="350" id="myFlashContent">
<param name="movie" value="http://www.youtube.com/v/b-tYxJcFj9I&hl=en" />
<param name="wmode" value="opaque" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/b-tYxJcFj9I&hl=en" width="425" height="355">
<param name="wmode" value="opaque" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
The video screen captures were recorded using iShowU, a program I discovered yesterday afternoon. The scenes were pieced together, and audio was recorded and added in iMovie. As this was my first time experimenting with iShowU some portions of the video are a bit wobbly, but overall I found it very easy to use. I expect my skills will improve with time.
I'll post more about the process as I become more familiar with the software. Members of the Case Western Reserve University community interested in producing similar instructional videos may also wish to visit the Freedman Center which offers tools and instructions on this and related topics.
Comment by Business Cash Advance — April 22, 2008 @12:21 pm
Comment by Samuel — April 23, 2008 @8:35 pm
Comment by hemroids — April 28, 2008 @9:02 pm
Comment by Motormag — April 30, 2008 @6:28 am
Comment by Leo — April 30, 2008 @6:54 pm
Comment by Link Building Bible — May 1, 2008 @7:07 pm
Comment by James — May 1, 2008 @7:18 pm
Comment by Tom — May 20, 2008 @5:10 pm
Comment by YouTube Downloader — May 26, 2008 @4:55 am
Comment by tom — June 1, 2008 @2:33 pm
Comment by Affordable Shared Hosting — October 20, 2008 @9:27 am
Comment by John Dougherty — October 26, 2008 @9:37 pm
Pingback by Web Development Blog: Heidi Adams Cool » Welcome to the new home of the Web Development Blog! — February 23, 2009 @4:02 pm
Pingback by » Embedding Flash Objects for Internet Explorer | Web Development Blog: Heidi Adams Cool — June 8, 2009 @11:54 pm
Pingback by » Valid code for using Flash animations on the Web | Web Development Blog: Heidi Adams Cool — June 9, 2009 @12:02 am
Trackback by FormsOfPlato (FormsOfPlato) — July 20, 2009 @7:48 pm
Comment by web 2.0 development company — November 7, 2009 @8:52 am
Comment by David — April 12, 2010 @12:19 pm