Using device video
Flash Lite 2.0 can play device video, which refers to any video format or encoding that's
supported by the target device. To keep player size small (and to support a wide variety of
video formats), Flash Lite 2.0 does not decode or render device video natively. Instead, Flash
Lite 2.0 relies on the device to decode and render device video to the device's display. For this
reason, there are some limitations to using device video. For more information, see
"Limitations of device video" on page
67.
Some common device video formats include 3GP, 3G2 (or 3GPP2), and MPEG-4. In
general, you can play any video format in your Flash Lite 2.0 application that the target device
supports. Different devices support different video codecs and formats. To determine what
video formats a specific device supports, check the device's specifications from the device
manufacturer, or use ActionScript to query the device's supported formats (see
"Determining
supported video formats" on page
66).
To deploy device video you can either bundle it in the SWF file's library (see
"Using bundled
device video" on page
58) or load it from an external file on the user's device or from a
network location (see
"Using external device video" on page
65).
To control playback of device video, use the ActionScript Video object. Flash Lite 2.0 adds
additional methods to the Video object not available in the desktop version of Flash Player,
including
and
. For more information about using the Video
Video.play()
Video.pause()
object to control video playback, see
"Controlling video with ActionScript" on page
67.
This section contains the following topics:
Using bundled device video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Using external device video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Viewing and editing device video symbol properties . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Determining supported video formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Limitations of device video. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Controlling video with ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Using bundled device video
One way to deploy video in your Flash Lite 2.0 application is to package (bundle) the video
files within your published SWF file. To use bundled video, you import a device video into
your document's library. When you publish your application, the authoring tool bundles the
device video file into the published SWF file.
58
Working with Sound, Video, and Images
Need help?
Do you have a question about the FLASH 8-DEVELOPING FLASH LITE 2.X and is the answer not in the manual?
Questions and answers