![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6; the ability to play Flash Video (FLV) files was added in Flash Player 7.
The Video class lets you display live streaming video on the Stage without embedding it in your SWF file. You capture the video by using Camera.get()
. In files published for Flash Player 7 and later, you can also use the Video class to play back Flash Video (FLV) files over HTTP or from the local file system. For more information, see Playing back external FLV files dynamically, NetConnection class, and NetStream class.
A Video object can be used like a movie clip. As with other objects you place on the stage, you can control various properties of Video objects. For example, you can move the Video object around on the stage by using its _x
and _y
properties; you can change its size using its _height
and _width
properties, and so on.
To display the video stream, first place a Video object on the Stage. Then use Video.attachVideo()
to attach the video stream to the Video object.
my_video
. (Do not name it Video.)
Method |
Description |
---|---|
Specifies a video stream to be displayed within the boundaries of the Video object on the Stage. |
|
Clears the image currently displayed in the Video object. |
Property |
Description |
---|---|
Specifies the behavior for the deblocking filter that the video compressor applies as needed when streaming the video. |
|
Read-only; the height of the video stream, in pixels. |
|
Specifies whether the video should be smoothed (interpolated) when it is scaled. |
|
Read-only; the width of the video stream, in pixels. |
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |