User Guide
FLVPlayback class 689
FLVPlayback.visibleVideoPlayerIndex
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.visibleVideoPlayerIndex
Description
Property; a number that you can use to manage multiple FLV file streams. Sets which video
player instance is visible, audible, and controlled by the skin or playback controls, while the
the rest of the video players are hidden and muted. The default is 0. It does not make the
video player the target for most APIs; use the
activeVideoPlayerIndex property instead.
Methods and properties that control dimensions interact with this property. The methods and
properties that set the dimensions of the video player (
setScale(), setSize(), width,
height, scaleX, scaleY) can be used for all video players. However, depending on whether
autoSize or maintaintAspectRatio are set on those video players, they might have
different dimensions. Reading the dimensions using the
width, height, scaleX, and scaleY
properties gives you the dimensions only of the visible video player. Other video players might
have the same dimensions or might not.
To get the dimensions of various video players when they are not visible, listen for the
resize
event, and store the size value.
This property does not have any implications for visibility of the component as a whole, only
which video player is visible when the component is visible. To set visibility for the entire
component, use the
visible property.
Example
The following example creates two video players to play two FLV files consecutively in a single
FLVPlayback instance. It sets the
visibleVideoPlayerIndex property to make the video
players and the FLV files visible.