For example, the following code displays in a TextField object named
the video MIME types that the device supports:
var mimeTypes = System.capabilities.videoMIMETypes;
mimeTypes_txt.text = mimeTypes.toString();
The indices for the items contained in the
are equal to the supported device video MIME types. This provides a quick way to test
whether a device supports a particular video format. For example, the following code checks
whether the device supports 3GPP video before playing a video file of that type:
if (System.capabilities.videoMIMETypes["video/3gpp"]) {
my_video.play("movie.3gp");
}
Limitations of device video
The following limitations apply to using device video in your Flash Lite 2.0 applications:
You can't rotate or skew device video. Some devices may support scaling.
■
You can't synchronize device video with the timeline.
■
You can't composite or blend device video with other media. The device renders video
■
directly to the display atop any other Flash content.
You can't control the sound volume of a video clip.
■
Controlling video with ActionScript
To control device video playback, you use the ActionScript Video object. There are several
differences between the Video object in Flash Lite 2.0 and the Video object in the desktop
version of Flash Player.
The following methods of the Video object are available only in Flash Lite 2.0 and not in the
desktop version of Flash Player:
■
Video.play()
Video.stop()
■
Video.pause()
■
■
Video.resume()
Video.close()
■
These methods of the Video object correspond roughly to the same methods
available in the NetStream object in the desktop version of Flash Player.
System.capabilities.videoMIMEtypes
all of
mimeTypes_txt
array
Using device video
67
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