|
Video (object)
Availability
 |
Flash Player 6. |
The Video object lets you display live streaming video on the Stage without embedding it in your SWF file. You capture the video by using the Camera.get command.
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.
To place a Video object on the Stage:
| 1 |
If the Library panel isn't visible, select Window >Library to display it. |
| 2 |
Add an embedded Video object to the library by clicking the Options menu on the right side of the Library panel title bar and choosing New Video. |
| 3 |
Drag the Video object to the stage and use the Property inspector to give it a unique instance name. (Do not name it Video.) |
 |
|
Note: You can also embed recorded streams (FLV files) using the File > Import or File > Import to Library commands. For more information on embedding video files, see Using Flash.
Method summary for the Video object
| Method |
Description |
Video.attachVideo |
Specifies a video stream to be displayed within the boundaries of the Video object on the Stage. |
Video.clear |
Clears the image currently displayed in the Video object. |
Property summary for the Video object
| Property |
Description |
Video.deblocking |
Specifies the behavior for the deblocking filter that the video compressor applies as needed when streaming the video. |
Video.height |
Read-only; the height in pixels of the video stream. |
Video.smoothing |
Specifies whether the video should be smoothed (interpolated) when it is scaled. |
Video.width |
Read-only; the width in pixels of the video stream. |
|