Accessibility
Kevin Towes

Kevin Towes

Adobe

Table of Contents

Created:
28 July 2004
User Level:
Advanced
Products:
Flash

Building a Live Video Switcher with Flash Communication Server MX

Note: This article describes legacy techniques in Adobe Flash for generating web video. To learn about the latest best practices for working with video in newer versions in Flash, please read the Video Learning Guide for Flash and the most recent articles posted in the Video Technology Center.

In this article, you will learn how to build a basic video switcher using Flash MX Professional 2004 and Flash Communication Server MX 1.5. This video switcher enables multiple people to broadcast video and audio to Flash Communication Server, and lets you control what the end user watches. You will learn how to use server-side ActionScript and Flash Communication Server messaging easily to control the source of the stream that your audience watches.

As a bonus, you will even incorporate switching between live and prerecorded video sources—all with nothing more than Flash Player, a camera, and some real personality.

In this article, you will create three Flash movies and one ActionScript communications file:

  • Live video broadcaster (simpleBroadcaster.fla)
  • Live video player (simplePlayer.fla)
  • Video switcher (simpleSwitcher.fla)
  • Server-side ActionScript file (fcsBroadcast.asc)

To help you get started, I created the user interfaces for this article. You can download the basic interface and the completed solution with some bonus material below. The basic interface contains all visual elements with the key ActionScript removed. To follow along with this tutorial, use the files in the fcsBroadcaster_start folder. The completed solution is located within the fcsBroadcaster folder. Both folders should be placed within the flashcom/applications folder on your server.

Requirements

For this article, you will need the most recent versions and updaters of these Macromedia products:

Macromedia Flash MX Professional 2004


Macromedia Flash Communication Server MX (version 1.5 updater 2)

Communication Authoring Components for Flash MX 2004

Source Files

Prerequisite Knowledge

This article makes significant use of ActionScript and server-side ActionScript. You should be comfortable with the ActionScript language. The user interface for this article is already complete, so you don't need to be a designer!

About the author

Kevin Towes is the product manager for Flash Media Server at Adobe Systems and is responsible for defining, delivering, and supporting Adobe streaming video products and services. Before joining Adobe, Kevin spent 13 years working to enable customers with Flash based interactive video streaming solutions using Flash Media Server. His Flash Media Server Live Video work with the Canadian Broadcasting Corporation (CBC) led to an Emmy nomination in 2004.