Client-Side Communication ActionScript > Video.height |
![]() ![]() ![]() |
Video.height
Availability
![]() |
Flash Player 6. |
![]() |
Flash Communication Server MX (not required). |
Usage
myVideoObject
.height
Description
Read-only property; an integer specifying the height of the video stream, in pixels. This value is the same as the Camera.height
property of the Camera object that is capturing (or previously captured) the video stream. You may want to use this property, for example, to ensure that the user is seeing the video at the same size at which it was captured, regardless of the actual size of the Video object on the Stage.
Example
The following example lets the user press a button to set the height and width of a video stream being displayed in the Flash Player to be the same as the height and width at which the video stream was captured.
// First attach the stream to the Video object myVid.attachVideo(videoSource); // Then attach code like the following to a button on (release) { _root.myVid._width = _root.myVid.width _root.myVid._height = _root.myVid.height }
See also
![]() ![]() ![]() |