Flash detection of bandwidth

Posted on 2008-02-06
Medium Priority
Last Modified: 2013-11-13

i want any flash  player that will detect bandwidth before loading my video file. i m been using jwplayer . if jwplayer can do that please post one example.

example should if got low bandwidth load low quality video and if got good internet speed then should hight quality video..

Question by:deepakabc
LVL 17

Accepted Solution

julianopolito earned 1500 total points
ID: 20836760
if actionscript 3.0 , here is one class of mine for bandwidth detection.
To use it, put a 50 kb jpeg file on the server , and do this:

import polito.util.BandwidthDetector;

var bwd:BandwidthDetector = new BandwidthDetector("testFile.jpg",3);//second parameter number of times to download test file and calculate bandwidth;

function completeTest(e:Event):void{
     trace(bwd.DetectedBandwidth + " kilobits/second");

Save the attached file into polito/util/ folder (for the package)


Author Comment

ID: 20836788
i don't wana change in media player... i just wana know really easy and neat way.. if there any media player provide this facility...

thanks for ur great efforts....

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses
Course of the Month4 days, 9 hours left to enroll

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question