
Note: This learning guide introduces core concepts of video on the web, and provides you with tools for developing your skills. The Flash product documentation is the source of many of these materials; always consult Flash Help (also available in Flash LiveDocs) first when learning to use new features.
Flash video lets you easily put video on a web page in a format that almost anyone can view. This guide provides an introduction to web video, including information on how to create and publish web video.
To follow along with this learning guide, you will need to install the following software:
Note: This learning guide covers video in Flash CS3, as well as Flash 8. Be sure to note that certain features, such as H.264 codec support, are available only in Flash CS3 with Flash Player 9 and later.
The following steps describe how to create web video content and publish it online. The procedures for creating and publishing on demand (pre-recorded) video are different from those for creating and publishing live video.
For information on live video, see the Flash Media Server Developer Center.
Video and the Internet seem ideally matched. Video is the medium that most closely echoes our day-to-day visual experiences, and the Internet is a boundless playground filled with interesting content. You might expect, therefore, that thousands of compelling websites would integrate video with data, content, and interactive controls to create rich experiences that go beyond what is possible with video on a television set.
Unfortunately, early video content on the web was often relegated to a simple rectangle of content playing back on a computer monitor, usually in a separate pop-up window covering the website page that spawned it. The video images were often small and ugly, and the overall experience was poor.
In the past, several technical challenges kept designers from using video content to its full potential, including the following:
Video is a data-intensive format, requiring megabytes of data to display even short video clips. The growth of broadband has greatly reduced this technical obstacle. Increasingly large numbers of site visitors have the bandwidth required to receive video content via the web, but file size can still present a problem for many visitors.
The tool sets for creating interactivity, navigation control, and fusion of video with other rich media content have not been standardized. Furthermore, the majority of video playback clients are not pre-installed on most visitors' systems, so many visitors must pause to download a plug-in or third-party application before they can view video.
Most video formats for the web offer no rich media capabilities beyond playback of video in a rectangular window.
Fortunately, Flash video (which presents video content seamlessly and in context, in a form that site visitors can view using Flash Player) overcomes these issues.
For more information about video, see Overview of video standards.
Flash video offers technological and creative benefits that allow designers to create immersive, rich experiences that fuse video together with data, graphics, sound, and dynamic interactive control. The advantages of using Flash to present video online include:
Since the introduction of Flash video in 2002, Flash Player has become the most widely installed Internet video client, running on over 96% of all Internet-connected personal computers. Also, Flash Player runs on a wide variety of platforms and operating systems. The ubiquity of Flash Player ensures that most visitors can view Flash video without downloading additional plug-ins, so you can reach more people with lower development, testing, and support costs.
Web-based video integrates seamlessly into your website, and you can add a new "skin" on your video content to customize your branding and design unique video playback controls. You can also set the size and aspect ratio of your video, and the video can dynamically change based on a data source.
Flash video provides immersive and interactive experiences. Because Flash treats video as simply another media type, you can layer, script, and control video content just like any other object in a SWF file. Flash video is an integral part of the viewing experience, as opposed to a separate pop-up window that interrupts the experience.
The following image shows a sophisticated example of a web page containing web video synchronized to text and graphics. The superimposed dotted blue outline shows the boundary of the area where the SWF file is displayed; the dotted red outline shows the boundary of the area where the web video (FLV or MPEG-4) file is displayed, as part of the SWF content. A SWF file can contain graphics, text, and client logic (for creating video controls, for example). It can refer to an external video file, and it plays in Flash Player. A Flash video file contains primarily audio and video, and it plays inside a SWF file (see Figure 1).

Figure 1. Flash video file playing inside a SWF file
The following is a list of tools, features, servers, and services that you can use to create and deliver compelling web video experiences.
Flash CS3 Professional is the primary tool used for producing the Flash video user interface:
In addition to Flash CS3 Professional, you will most likely find that using some additional tools will greatly increase your video production and delivery options:
Before you can use Flash video on your site, you need to decide how to deliver the video; the two primary options are to deliver it as a progressive download or as a streaming video. (One important distinction to note is that Flash video files download progressively by default. Use of the Flash Media Server is required to deliver streaming video.)
Note: A third option is to embed video in the Flash Timeline. However, this is recommended only for very short video clips with no audio track.
For help deciding which delivery option to use, see Table 1. Find your situation in the left column, and then see which delivery options are recommended. If two options are marked, then either one is recommended.
| Embedded | Progressive | Streaming | |
|---|---|---|---|
| Clip is under 5 seconds long | |||
| Clip is 5 to 30 seconds long | |||
| Clip is over 30 seconds long | |||
| Low viewership expected | |||
| Medium to high viewership expected | |||
| Instant start | |||
| Intellectual property protection | |||
| Live video streams | |||
| Variable streaming rates based on visitor's bandwidth | |||
| SMIL usage to control file selection |
For more information about delivery options, see Delivery options for Flash video.
After choosing a delivery option, choose which authoring tool to use: Flash or Dreamweaver.
Importing video directly into Dreamweaver is ideal for situations where you want to put video onto your site quickly and easily, with no interactive elements beyond simple video controls (play, stop, pause, skip ahead, and skip backward). The Dreamweaver solution offers an easy way to integrate web video into an HTML-based page layout.
If you need to build a more interactive experience or need to heavily customize the look and feel of the video, you must use the video features in Flash CS3. You also need Flash CS3 Professional to encode FLV files.
For more information about authoring options, see Adding Flash video to your web page.