Home » Archive

Articles in the Tutorials Category

Code Samples, Flash, FMS, Tutorials »

[12 May 2009 | 2 Comments | 11,396 views]
Flash Media Server Streaming Speed Testing [Part 3] – Compare Multiple Server Resources, Port Connections, Detect Upload, Download, and Latency Speed

This tutorial is the final in a series of three. Part one of this tutorial outlined what is needed to detect a users upload, download, and latency between a Flash client and the Flash Media Server. Part two adds on the ability to detect which ports are available while connecting. In part three, we will be adding an external xml file that will allow you to compare connections to different Flash Media Servers in order to find which of them is the best connection for serving media. If you haven’t …

Code Samples, Flash, FMS, Tutorials »

[12 May 2009 | 4 Comments | 13,899 views]
Flash Media Server Streaming Speed Testing [Part 2] – Detect Upload, Download, and Latency Speeds, and Port Connection

This tutorial is the second in a series of three. Part one of this tutorial outlined what is needed to detect a users upload, download, and latency between a Flash client and the Flash Media Server. Part 2 adds on the ability to detect which ports are available while connecting.
Again, Bandwidth detection is most important when connecting your users to the correctly compressed media to be streamed, recorded, or delivered via a Flash Media Server. This second example will walk you through the process of being able to detect a …

Code Samples, Flash, FMS, Tutorials, Uncategorized »

[12 May 2009 | 10 Comments | 23,466 views]
Flash Media Server Streaming Speed Testing [Part 1] – Detect Upload, Download, and Latency Speeds

This tutorial is the first in a series of three that builds upon the first Flash Bandwidth & Port Detection tutorial I created a while back. These three articles look to make it even easier than the original post, and go more in depth on some of the streaming options, and have better structured server side code.
If you are interested in the original article, you can find it here.
Bandwidth detection is most important when connecting your users to the correctly compressed media to be streamed, recorded, or delivered via a …

Flex, Tutorials »

[1 Nov 2008 | 4 Comments | 22,785 views]
Flex 3 | Simple FLV Player | Scrubbing, Pause, and Play

Using Flex, it’s extremely easy to create a simple FLV player. This simple flv player has a scrub bar, pause/play buttons, and can load a flv from any url. The example is pretty basic, but it’s a great starting point on understanding how to stream video using Flex.
See the example
Download the source

Code Samples, Flash, FMS, Tutorials »

[29 Oct 2008 | 3 Comments | 15,046 views]
Flash Bandwidth & Port Detection

Being able to detect a users bandwidth can be an important part of serving them streaming video. Using their bandwidth you can stream a video that will play well using their connection speeds.
The first step is to create our NetConnection.as file. This is used by our bandwidth checking script to connect to our Flash Media Server via RTMP, select an available port, and talk with our bw_check.asc to report the users available bandwidth.
The second step is to create our FMS server side code. The bwcheck.asc file sends packets at a …

Flash, Tutorials »

[24 Oct 2008 | No Comment | 9,104 views]
Use Actionscript to Detect Flash Version

A friend my mine just asked me how he could find out how to detect his version of flash, so I wrote a quick bit of AS2 to help him out. Here’s a quick and easy way to detect a users flash version from within your Flash project.
Click here to see your version of flash.
Download the source

Code Samples, Flash, Tutorials »

[5 Sep 2008 | No Comment | 6,599 views]
AS3 MP3 Player

I have an upcoming project that will require an mp3 player that can load multiple songs, and let users choose which track they would like to listen to. I created this as a test, and will be developing it further for use on the site itself.
The player loads in mp3’s from an external file based on xml settings.
Here’s the actionscript 3 that is involved:

Here is the xml:

Download the source (Note: The mp3’s used are not included in the download)

Code Samples, SEO, Tutorials »

[21 Aug 2008 | No Comment | 9,378 views]

Inbound Links
A .htaccess file can be an SEO’s vital friend. When visitors hit your site with either www.yourdomain.com or yourdomain.com, it splits your inbound links into two separate pages. This can have effects on your Google Page Rank. By correctly creating and implementing a .htaccess file at your server root, you can improve your website ranking.
To change the url in the browser before the page loads you can use two different methods.
Here, the url will always contain the www. before the domain name:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.derekentringer\.com [NC]
RewriteRule (.*) http://www.derekentringer.com/$1 …

Code Samples, Flex, Tutorials »

[21 Aug 2008 | 18 Comments | 32,363 views]

Flex has a lot to offer when it comes to file manipulation and viewing/interaction. The AIR environment is perfect for an “explorer” type application.
Here’s a quick file browser in Flex:
The result:

Download the source

Code Samples, Flash, FMS, Tutorials »

[21 Aug 2008 | 3 Comments | 8,865 views]

This FLV player has quite a few advanced options included. The video is streamed from a Flash Media server, dynamically buffered, and playable. The server side scripts allow for dynamic port detection, and you can setup the player to serve differently encoded flv files based on the users bandwidth.
First let’s start with our external classes.

We’re using the NCManager.as file as provided by Adobe. This external class allows us to manage our port connection list as well as detect a users bandwidth when they load our swf. I have included this …