- Requirements
Prerequisite knowledge
This article assumes you are new to using Flash Media Server 3.5 and are interested
in how to stream media files from Flash Media Server.
Required Products
Server(Download trial)

User level
Beginning
     
 
For many of us, Adobe Flash Media Server is rather mysterious. We can see its benefits—and there are many—but actually using it and creating Adobe Flash applications that "hook" into it can be baffling. If you are coming to this technology for the first time, you will discover that there is a whole new workflow involved in Flash Media Server 3.5 compared to previous versions. This workflow is a bit more complicated than simply compiling a SWF and uploading it and a bunch of FLV files to a web server.
This article is the first in a series of beginning-level tutorials. My plan is to walk you through the process of learning how to use Flash Media Server 3.5—without a lot of "techie talk." Hopefully, once you have absorbed these tutorials, you will be able to read some of the articles in the Adobe Developer Connection by my colleagues and understand what they are talking about.
Here are all the articles in the series:
This particular tutorial starts at the beginning of the process. You have downloaded Flash Media Server and you are prepared to launch the installer. Before reaching for the mouse, take a look at what you are getting into.
Flash Media Server in a nutshell
As the documentation supplied with the installer clearly explains, Flash Media Server (also referred to colloquially as FMS) is a hub on which media such as video and audio files are physically located. When you need to access them, the video player (SWF file) makes a call to the server using the Real Time Messaging Protocol (called an RTMP address), locates the media file, and loads it into your movie. The really great thing about this is that "play really does mean play." The video or audio files start to play as soon as they arrive in the browser running Adobe Flash Player. There is no waiting for some of the content to load and—best of all—nothing is downloaded o the browser's cache at all, so the file is secure.
RTMP is a proprietary protocol which uses TCP (transmission control protocol) for the transmission of data packets between Flash Player and Flash Media Server. The real advantage of this method to other delivery mechanisms is that the RTMP protocol is designed to deliver video (FLV, MP4, and MOV) and audio (MP3, AAC, and Nellymoser) files to a SWF embedded in a web page, on a cell phone, or even to an Adobe AIR application sitting on the user's desktop.
The thing is, the media being hauled into the SWF file does not sit on your web server. It sits in a folder on the server running Flash Media Server, which could be one that you or your company owns, or one that is managed by an ISP or a Flash Video Streaming Service (FVSS). For the purposes of this article, Flash Media Server is sitting on your own computer.
The development version you are about to install is not much different than the full installation of Flash Media Interactive Server. Although it has all the features of the commercial edition, think of it instead as a testing server. Just as you would test a Flash file locally before uploading it to a web server, you can use the installed version of FMS on your computer to test a movie that will eventually be streamed.
Having gotten these preliminaries out of the way, let's get started with installing the server. You can grab a copy of the installer in the Requirements section below.
Starting the installation
If you have installed previous versions of Flash Media Server, you are about to discover that the installation process has undergone some changes. For example, some of the steps outlined in William Saunders' video tutorial for Flash Media Server 2 have been moved around. The other thing you should do before getting started is uninstall any previous versions of FMS on your computer:
  1. Double-click FlashMediaServer3.5.exe to launch the installer. You will see the splash screen shown in Figure 1. All three versions of the server are listed. The next screen that appears tells you what is about to happen and suggests that you close all open applications. If you do have other apps open, now would be a good time to save the documents and quit those apps. To start the installation process, click the Next button.
Flash Media Server 3.5 splash screen
Figure 1. Flash Media Server 3.5 splash screen
  1. The usual legalese appears. This license agreement sets out the usage terms and so on for the software. Feel free to read it. Assuming you agree, click the "I accept the agreement" radio button and then click Next to move on with the installation process.
  2. The next screen asks you to enter the serial number (see Figure 2). You don't need one to install the development version on your computer. If you leave it out and click Next, the installer understands that you are simply installing a local version.
Serial number not required to install Flash Media Server 3.5
Figure 2. Serial number not required to install Flash Media Server 3.5
  1. The next screen confirms that you are installing Flash Media Development Server 3.5 (see Figure 3). Mind you, if you have purchased the server and you see this screen, it would be a good idea to click the Back button and enter the actual serial number. This isn't necessary for this tutorial, however. Go ahead and click Next.
Installing Flash Media Development Server 3.5
Figure 3. Installing Flash Media Development Server 3.5
  1. You now have to decide where to install the server on your computer. The default location on Windows systems is the Adobe folder found in the Program Files folder of your computer (see Figure 4). If you want to place the installation in another location, click the Browse button and navigate there. Now that you have decided where the server will be installed, click the Next button.
Default location of server installation
Figure 4. Default location of server installation
  1. Having told the installer where the server will be located, you can see the fundamental difference between this version of Flash Media Server and all previous versions of the server. You are now asked (Figure 5) whether you would like to install an Apache 2.2 server along with FMS. If you go with this option, you'll have the best of both worlds: an HTTP server capable of delivering video content that is progressively downloaded or the ability to take advantage of all the features in FMS without having to spread your content between locations (anywhere from the server next to the FMS server to an ISP on the other side of the world).
HTTP server (new to FMS 3.5)
Figure 5. HTTP server (new to FMS 3.5)
  1. You are now prompted to decide where to put the shortcut for the server (see Figure 6). The default location is the Start menu but if you don't want a cluttered Start menu, feel free to click the Browse button and determine an alternate location. Click Next.
Where to place the shortcut
Figure 6. Where to place the shortcut?
  1. At this point the installation process takes on a degree of seriousness. The Administration Services screen appears and prompts you to enter a username and password (see Figure 7). This information will be needed when you start using the Administration Console, which I will get to in a moment.
    It would be a really good idea to enter something you will remember because every time you start the server you are going to be prompted for this information. I used my first name—if I forget that, I am in serious trouble—and a password that I regularly use for other purposes.
    One other thing I do, because this really isn't a "high risk" situation like a PayPal account, is to e-mail myself the username and password. This way, if I ever have a "senior moment," I can easily find a written record of the information.
The server's Administration Console
Figure 7. Choosing the login information you'll need to enter the server's Administration Console
  1. Having told the installer where to put the software, and having created a username and password to access the Administration Console, you now need to tell the installer which ports the server will use (see Figure 8). Unless there is a compelling reason to do so, go with the defaults as presented. Although you can use multiple ports, unless you are really confident with what you are doing, it is best simply to click the Next button.
Port information screen
Figure 8. Unless you really know what you are doing, don't change the ports
  1. Now that the installer has all of the information it needs to proceed, you have a second chance to review the settings and make changes (see Figure 9). There's no more Next button, so if everything is acceptable to you, click the Install button. The installation process is relatively speedy and you will be presented with the usual screens displaying the progress of the file extraction and the server initialization.
Confirmation settings
Figure 9. Your last chance to make changes
  1. Once the installation is completed, you will be presented with the screen shown in Figure 10. You can make a couple of decisions ranging from having a peek at the Readme file to launching Flash Media Server 3 when you start your computer. Though you can manually turn the server on and off, I prefer to go to work when I need to, so I leave the third option selected. Having FMS running in the background while you go about your daily chores won't really slow things down. So click the Finish button.
Wizard completion screen
Figure 10. Success! Now get to work
Looking at the Administration Console
The Administration Console helps you manage the server. Because there's a lot under the hood, I'm not going to dive into it. Instead, assume you have just bought a new car and the neighbors are visiting to check out your new purchase. What do you do? Open the hood (or bonnet, depending on where you live) and start pointing stuff out. Let's show the neighbors what you have.
The first thing that strikes most people new to Flash Media Server is that it isn't an application. Even though you installed the software into the same directory where you keep Flash CS3 Professional and other Adobe products, there is no product icon. The Administration Console is an HTML document. This makes sense because you are dealing with a server, not a stand-alone application.
To open the Administration Console, either locate it on the Start menu or click the All Programs button on your Start menu and navigate to Adobe > Flash Media Server 3.5 > Flash Media Administration Console (see Figure 11).
Locating the Administration Console in the Start menu
Figure 11. Locating the Administration Console in the Start menu
Alternatively, navigate to C:\Program Files\Adobe\Flash Media Server 3.5\tools\ and double-click the Flash Media Administration Console link (see Figure 12). Be sure to double-click the HTML file shown (fms_adminConsole.htm), not fms_adminConsole.swf, to launch the Administration Console.
Locating the Administration Console in Windows Explorer
Figure 12. Locating the Administration Console in Windows Explorer
When you open the Administration Console, you are prompted to enter your username and password. Once that is done, console's Log In interface appears (see Figure 13). You will notice that the server is given a name and address
(localhost
) and that your password and username have already been entered. You can also tell the console to remember your password and automatically connect you to the server without logging in. These are personal decisions which, in many cases, will follow corporate policy. If you are unsure, check with those responsible. If everything is fine, click the Login button.
Administration Console's start screen
Figure 13. Administration Console's start screen
The next screen you see is the actual Administration Console (see Figure 14). There are a couple of things you need to pay attention to here. Over on the right side of the Task Bar is a green light. This is a visual indication that your server is humming along quite nicely. The Help button (question mark) gets you over to the FMS help files. Clicking the folder next to the question mark doesn't allow you to load stuff, as you might think. Instead, this button links directly to a number of FMS resources, ranging from this very article to FMS forums where you can ask questions of others in the FMS developer community.
Administration Console
Figure 14. Administration Console
At the top of the console you can choose how often the server refreshes the page. The choices range from one second to one minute; you can even pause the server's refresh rate. What you cannot do, however, is enter your own value. If you want to force a refresh, or if you're simply impatient, click the Refresh link in the upper right corner. Clicking the Logoff link shuts down the server completely.
Notice that there are three buttons across the top of the console. The one that is currently selected, View Applications, shows you the applications that are currently associated with FMS. These "applications" are actually called "instances" (I'll get to this in greater depth at a later date) but if you click the New Instance button in the lower left, a list of the applications/instances will appear, allowing you to load one simply by selecting it. Let's hold off on that for now. Instead, click the Manage Users button.
Clicking the Manage Users button reveals the screen shown in Figure 15. It allows you add users, remove users, and even change your password or their passwords. Why would you want to add users if this a local installation? You may be sharing this computer with others in your workgroup or this installation is actually located on a server. Just keep in mind that the development server allows only 10 simultaneous connections at any one time so this really is a testing server.
Manage Users panel
Figure 15. Managing users
To change a password, simply click a username and click the Reset Password button to open the Resetting Password dialog box (see Figure 16). Enter the new password twice and click the Reset Password button to make the change. If you change your mind, click Cancel to close the dialog box.
Resetting Password dialog box
Figure 16. Changing a user password
Click the Manage Servers button to open the Manage Servers panel (see Figure 17). This area lets you see what is going on behind the scenes. The Details area graphically shows you the performance of any application that may be playing, as well as its bandwidth and CPU usage. The Connections button tells you how many servers are connected, and gives you a bit of information about the performance and status of the various servers. Applications tells you how many applications are currently running and their performance. Because you are using a development version, the License panel is irrelevant. Even so, there is a link at the bottom of the panel that permits you to upgrade to the interactive server. The last area, Server Log, gives you a log of what the server's been up to. Clear this out at any time by clicking the Clear Log button.
Manage Servers panel
Figure 17. Manage Servers panel
There is one thing in this panel that you might wish to do: make sure the server is actually "localhost." Here's how. The middle button at the top of the Manage Servers panel—the one with the "AB"—is the Edit Server Log Information button. Click it to configure the server (see Figure 18). In the Server field, enter localhost. If you want to change your username and password, this is the place to do it. The reason you enter "localhost" is because this will be the RTMP address you use to test your applications. Make whatever changes and click the Save button.
Configuring the server as "localhost"
Figure 18. Configuring the server as "localhost"
At this stage of the game, you are good to go, so quit the browser to close the Administration Console.
Using the Flash Media Server 3.5 start screen
Those of you who are new to Flash Media Server will find this new feature an indispensible resource; grizzled veterans will greet it with a resounding, "It's about time!"
Adobe is the first to admit that learning FMS is a daunting task due to the product's sheer complexity. Just as well, learning to use the product and getting support commonly starts with a simple question, "Where is the information?" The start screen brilliantly addresses that question:
  1. Click the Start menu and navigate to All Programs > Adobe > Flash Media Server 3.5 > Flash Media Server Start Screen (see Figure 19).
Launching the start screen
Figure 19. Launching the start screen
  1. Providing you have Adobe Flash Player 10 installed, you'll see the screen shown in Figure 20. It is divided into four areas. Along the top are a series of self-explanatory links as well as a text input box where you can enter search criteria. The area directly below allows you to launch the Administration Console, thereby avoiding a trip back to the Start menu and one click access to updates.
FMS start screen, a welcome addition to the product
Figure 20. FMS start screen, a welcome addition to the product
  1. The next area contains a video player. Notice that Adobe gives you Copy and Paste Embed code to add the player to your web pages. You can also see a dynamic streaming sample play on the page. Two buttons allow easy access to learn Flash Media Server and show an interactive sample.
  2. Scroll down the page to reveal the real gems of the start screen (see Figure 21). Having watched Adobe in action (and Macromedia before that) for over a decade, I have always marveled at how a company so big can still manage to be so close to their customers. This detail area of the start screen is the poster child for customer involvement. If there ever was a common complaint about Flash Media Server, it was that the knowledge base, especially within Adobe, was so spread out that it was practically inaccessible. These three columns finally put that complaint to rest.
One-click access to a world of knowledge and tools
Figure 21. One-click access to a world of knowledge and tools
The Tools column contains links to a variety of tools, from the FLVCheck Tool to a Load Simulator which will help you do your job more effectively. The middle Sample Applications and White Papers column provides you with one-click access to a variety of examples and publications designed to grow your skill set.
The third column is broken into two areas. The top Getting Started section gives you immediate access to a variety of articles and samples from the Adobe Developer Connection that are designed to get you going with FMS in no time. Think of the second section, Getting Support, as a local Rolodex for Flash Media Server. Here you get instant access to everything, from finding a local expert for any Adobe product to training and consulting around your various needs.

Where to go from here

There you have it: You installed Flash Media Server 3.5, opened the hood, and showed your neighbors what this new vehicle can do. As well, you found a tremendously helpful resource provided by the start screen. The next few articles in this series will help you slide into the driver's seat, fire the engine up, and take it for a spin around the block. The next tutorial gets you started using Flash Media Server 3.5 to stream a video into a Flash video player (SWF) using the new VOD service.