Flash Guru: How to Delay Loading a Flash Video Miami FL

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

Compuace
(305) 625-2875
14411 Commerce Way
Hialeah, FL
Ifx Communication
(305) 512-1100
15050 NW 79th Ct
Hialeah, FL
USA Broadband Wireless Corp
(305) 558-1766
6073 NW 167th St
Hialeah, FL
Hialeah Gardens Satellite Internet
(786) 220-6688
10318 NW 87th Ave
Hialeah, FL
Cbeyond
(954) 239-6200
3601 SW 160th Ave
Miramar, FL
NBC6/WSCTV51
954-622-6940
15000 SW 27 St.
Miramar, FL
5-Linx
(954) 435-1133
15645 NW 14th ct
Pembroke Pines, FL
Trinity Effects Inc
(305) 251-1864
12914 SW 132nd Ct
Miami, FL
Link2City.Com
(305) 259-7776
15190 SW 136th St Ste 27
Miami, FL
On Fire Graphics
(305) 759-4862
950 NE 83rd St
Miami, FL

 

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

Compuace

(305) 625-2875
14411 Commerce Way
Hialeah, FL

Related Local Events
SCORE Business Counseling
Dates: 12/9/2009 - 12/9/2009
Location: The Chamber Office
Coral Springs, FL
View Details

Wake Up Coral Springs Breakfast!!
Dates: 12/15/2009 - 12/15/2009
Location: Marriott Heron Bay
Coral Springs, FL
View Details

Wednesday Evening Referral Group
Dates: 12/16/2009 - 12/16/2009
Location: WineStyles
Coral Springs, FL
View Details

Afternoon Chamber Referral Group Meeting
Dates: 1/21/2010 - 1/21/2010
Location: The Coral Springs Chamber Office
Coral Springs, FL
View Details

Wednesday Evening Referral Group
Dates: 2/3/2010 - 2/5/2010
Location: WineStyles
Coral Springs, FL
View Details