Streaming Media Player/Connection Speed Detection Tutorial
The original page is available below for your convenience.
The following code and examples accompany the three-part article:
"Detecting Streaming Media Players and Internet Connection Speed"
Quick Links
Client Side- only Code Examples - Detect your installed
media players and connection speed
Complete application example with server-side code
Source Code and Resources
It's an unpleasant reality that there are several major, incompatible
streaming media platforms. Many of us streaming content providers will
have to make content available our users on several platforms.
And we want to do it as seamlessly and conveniently as possible. These
examples teach you how to detect which streaming media players your
users have installed, as well as detect their internet connection
speed. You'll also learn how to use this information to allow your
users to choose which streaming media player they'd like to use to view
your content. Finally, we'll use their choice to generate the streaming
media metafile (.ram, .asx, .smi) on the fly, automatically directing
them to the server (or servers) that match their choice. You may wish
to look at Figure One , a flowchart
describing the approach used in this example.
It turns out that generating streaming media metafiles also sets the
stage for you to offer advanced streaming media management features,
such as load balancing, fault tolerance, video search and more. We may
cover this in a future series.
- To run this example on your own server requires a JSP engine
such as Apache
Tomcat (free), Macromedia JRun (free trial version), iPlanet web
server, or any J2EE application server (BEA Weblogic, ATG Dynamo, IBM
WebSphere, iPlanet Application Server, etc). This example was developed
using
Tomcat 3.2.3 ).
Some brief notes if you're going to install and use Tomcat to run these
examples:
- Tomcat installation instructions can be found at
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
.
- You'll also need to have a Java JDK installed, if you don't
already have it. For windows, you can get it here .
- Unzip the source code archive linked in the above paragraph
into your jakarta-tomcat-3.2.3 directory. Be sure to preserve the full
path to the zipped files. If you're not using Tomcat, then simply
place the .class files somewhere on your classpath, and place the .jsp
files under your web server's document root.
Start Tomcat from your jakarta-tomcat-3.2.3 directory
by typing bin\startup from a command prompt and go to
http://localhost:57060/playVideo.jsp?clip=profiles to access the example
application.
©2002 Larry Bouthillier