Flash Guru: How to Delay Loading a Flash Video Los Angeles CA

In this installment of our monthly series, we again turn to our favorite Flash guru, Stefan Richter, to answer a question from our forum. This time: How to delay loading a video, in order to save bandwidth and create a better user experience.

Local Companies

Earthlinc
818-240-0968
412 W Broadway
Glendale, CA
A T & T
818-291-0801
207 N Brand Blvd
Glendale, CA
C & C Business Center
818-548-3400
101 N Brand Blvd
Glendale, CA
Dedication Channel Inc
818-548-5047
130 N Brand Blvd
Glendale, CA
Recomm Wireless
818-242-5500
101 N Brand Blvd
Glendale, CA
Glendale Wireless
818-239-3861
217 N Verdugo RD
Glendale, CA
Inverselogic LLC
818-542-3103
3439 Ocean View Blvd
Glendale, CA
JDR Computer Inc.
562-407-9308
14111 Freeway Drive
Santa Fe Springs, CA
MM Internet
562-427-3632
3780 Kilroy Airport Way
Long Beach, CA
Akamai Technologies Inc
562-981-6044
3760 Kilroy Airport Way
Long Beach, CA

provided by: 
Originally published at Internet.com


In this installment of our monthly series, we again turn to our favorite Flash guru, Stefan Richter, to answer a question from our forum. This time: How to delay loading a video, in order to save bandwidth and create a better user experience.

Stefan Richter

If you're not familiar with him, Stefan Richter is a certified Flash developer and he's been involved with Flash since it first began. Regular readers to this site will recognize the excerpt "Everything You Don't Know About Flash" from his book Hands-On Guide to Flash Video, (co-written with Jan Ozer).

Reader "fzr600man" asked: Is there any way to slow down the load rate of videos? When my page first loads up, it buffers all Flash videos that are on this page. Each video is about 10 Megs. So for 3 videos when a person calls up this page it will buffer all the videos, even if they don't watch them. I see this as a huge waste of bandwidth. Is there any way to just get the first few seconds of the video for the thumbnail preview, and then only load the rest if they click on the play button? I am using the video components that come with Flash Professional CS3.

Stefan's Reply:
This is a pretty common question and there are a few ways to go about it. The easiest way-although the most labor-intensive-is to put the FLVPlayback Component on frame 2 and put a stop action on frame 1. Put a playback on frame 1, as well. Then, the first frame of the video will load and stop. Only when the viewer clicks to play the rest will the remainder of the video load.

Since the first frame of your work probably won't be the most enticing image, create a screen capture from elsewhere in the video and make that your opening frame. If you have a lot of videos, this could get time-consuming, but it's a simple way to solve the problem.

If you're not using the FLVPlayback Component and if you know ActionScript, there's another way to solve the problem. This method involves getting the video to start playing, then have it attempt to load a second video-one that doesn't exist. When it can't find the second video, it will freeze on the current video, effectively showing a preview. The viewer can then click to have the current video continue. Stefan has created a tutorial on how to achieve this on his site (click here for tutorial).

This second method might seem harder, but it has the advantage of not needing a screen grab. Plus, once you have the script you can simply re-use it.

Other Flash Guru articles: * Advice from the Flash Guru * The Flash Guru Answers Your Questions * Solving Browser Incompatibility * Converting Video to FLV * Serving FLV Files Over Slow Connections

Author: Troy Dreier

Read article at Internet.com site

Featured Local Company

Earthlinc

818-240-0968
412 W Broadway
Glendale, CA

Related Local Events
2009 IEEE Petroleum and Chemical Industry Technical Conference (PCIC 2009)
Dates: 9/14/2009 - 9/16/2009
Location:
Anaheim, CA
View Details

DIGITAL ID WORLD 2009
Dates: 9/1/2009 - 9/1/2009
Location: Hilton Anaheim
Anaheim, CA
View Details

Medical Design & Manufacturing - Trade
Dates: 6/9/2009 - 6/11/2009
Location: CANON COMMUNICATIONS LLC
Los Angeles, CA
View Details

Atlantic Design & Manufacturing - Trade
Dates: 6/9/2009 - 6/11/2009
Location: CANON COMMUNICATIONS LLC
Los Angeles, CA
View Details

Green Manufacturing Expo
Dates: 6/9/2009 - 6/11/2009
Location: CANON COMMUNICATIONS LLC
Los Angeles, CA
View Details