Learn More Contact Now Learn more about GeniusDV Video Training Classes - call toll-free: 866-566-1881

Embed Flash Video (FLV) in iWeb: Part 2

| | Leave a Comment(5) | TrackBacks (0)
You thought I'd forgotten the second part of the embedding FLVs in iWeb tutorial - not so!  Today we'll try to save you some time incorporating Flash Videos with iWeb.  It's still not the easiest process in the world, but at least it doesn't require a web programming hat to get the job done!

This lesson will allow you to embed a really fully-featured Flash Video player -- complete with Fullscreen Mode button -- into your iWeb site relatively easily.

The first step is to download our support files for this operation: ZIP File, 112kbNow, bear in mind that we offer these files as sort of an exercise rather than as software that we support in any formal sort of way.  The files are pretty straightforward to follow -- but everything you do with them is entirely at your own risk.
Background
Part 1 of this tutorial will give you the theoretical background to understand what we're trying to do, so here I'll just briefly tell how we're going to go about it.  Inside the ZIP file associated with this tutorial, you'll find a copy of FlowPlayer, and a couple of Javascript files.  The Javascript files simply tell the user's web browser to snap the FlowPlayer into the webpage, and load it with the video that you specify.  Really, that's it.

So when you want to use an FLV in a webpage, you're basically doing two things: putting a Flash Video somewhere, then telling the webpage that you want a FlowPlayer and you want it to look for Flash Video in a specific place.

It bears mentioning that this is a completely customizable process -- if you have a custom-branded Flash Video player, or if you want to buy the non-logo version of FlowPlayer, it's just a matter of replacing the FlowPlayer SWF with the new one (and updating the Javascript if necessary).  Without further ado:

Step by Step
Initial Setup (one time):

  1. Unzip the support files
  2. Open the folder where you publish your site.  You'll see an "index.html" file, and a folder that has your site's name (default is "Site").
  3. Drag the folder called "FLVSupport" into the main folder -- NOT the folder with the name of your site.

Whenever you need a Flash Video:
  1. Use your video software to create the Flash Video media file.
    Note: Need a quick and dirty way to create high-quality H.264 FLVs?  Try the end of the Quicktime vs. FLV article.
  2. Open the main publishing folder, and place the video there.  You can organize your videos however you want, but don't put them inside of your site's specific folder (iWeb erases everything in that folder every time you publish).  I created a folder called "FLV" in my main sites folder.
  3. In iWeb, open up the page where you want to place the video.
  4. From the "Web Widgets" drop-down button, select "HTML Snippet."
  5. Resize the "HTML" box to the appropriate size for your video -- by default, 320x240.  Place it wherever you want your video to appear.
  6. Double-click on the HTML box, and copy and paste the following two lines:

    <script src="../../../FLVSupport/flv.js" type="text/javascript"></script>
    <script type="text/javascript">placeFlashVideo("YOUR_FLV_HERE");</script>

  7. Change YOUR_FLV_HERE to the name of your flash video.  The path is relative to your main sites folder.  For example, if your video file was called "myvideo.flv" and you put it in the "FLV" folder, you'd use the line

    placeFlashVideo("FLV/myvideo.flv");

  8. Publish your site, and you're all set!

Note that your Flash player shows up as a blank box inside of iWeb until you publish your site -- this is normal.  Also, Flash's security model sometimes acts funny when you try to view a Flash video on your local machine (you'll see the FlowPlayer, but no video) -- try uploading your site to the internet and viewing it through a regular URL and it should be fine.


If you want to use video of a different resolution:
  1. Follow the instructions as above, except, in Step 5, be sure to make your HTML widget box the appropriate size for your own video.
  2. In Step 7, add the dimensions you want to the placeFlashVideo line.  For example, if you wanted a 1280 x 720 HD clip called "myvideo.flv", you would use:

    placeFlashVideo("../FLV/myvideo.flv" , 1280 , 720);


Like I said, I can't promise any support in any formal sense, but if you have suggestions or input, please do feel free to email me.  Hope this helps, and a very happy new year to all of you!
comments  

chris Revis said:

Failed to load resource error msg

I'm unclear where to drop the flash file.

the player is working, but seems to not be able to load the file.

Do I need to include the entire destination path to include the web.me.com/chrisrevis/etc....

Thanks.

Asilkor Author Profile Page said:

Thank you very much. how to do autoplay false?

EditBrad Author Profile Page said:

I'm having the same issue as Chris (above). Should I use a more absolute path? If so, how? I'm not a code writer.

I would also like to know how not to have the autoplay function true. Any tips?

LMC said:

I know a few people have already asked, but I can't see the responses.

I'm wondering how and where you make the autoplay false?

Thanks!

LMC said:

I know a few people have already asked, but I can't see the responses.

I'm wondering how and where you make the autoplay false?

Thanks!

Leave a comment

track.backs

Listed below are 0 links to blogs that reference this entry: Embed Flash Video (FLV) in iWeb: Part 2.

TrackBack URL for this entry: http://www.geniusdv.com/weblog/mt-tb.cgi/1110

Receive FREE Tutorials by email:

Find on-site Genius training in:
Online and On-Site Training available on demand.
Orlando Classroom Schedule
December 2009
S M T W T F S
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9
  Dec 7th -- Dec 11th  
  Final Cut Studio Training
 
  Dec 10th -- Dec 11th  
  Google Sketchup Training
 
  Jan 4th -- Jan 8th  
  Media Composer Training
 
  Jan 11th -- Jan 15th  
  Final Cut Studio Training
 
  Jan 18th -- Jan 20th  
  After Effects Training
 
  Feb 8th -- Feb 12th  
  Final Cut Studio Training
 
  Feb 15th -- Feb 17th  
  After Effects Training
 
  Mar 1st -- Mar 5th  
  Media Composer Training
 
  Mar 8th -- Mar 12th  
  Final Cut Studio Training
 
  Mar 15th -- Mar 17th  
  After Effects Training
 
 
Search Our Tutorials:
about.this

Making Mouse Cursor easy to find was the previous entry in this blog.

Using Avid Paint Effect for Tracking and Cloning is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.