User Guide

708 FLVPlayback Component (Flash Professional Only)
Method summary for the VideoPlayer class
The following table lists the methods of the VideoPlayer class:
Property summary for the VideoPlayer class
The VideoPlayer class has class and instance properties.
Class properties
The following properties occur only for the VideoPlayer class. They are read-only constants
that apply to all instances of the VideoPlayer class.
Method Description
VideoPlayer.addEventListener()
Creates a listener for a specified event.
VideoPlayer.close()
Closes the video stream and FCS connection.
VideoPlayer.load()
Loads the FLV file but does not begin playing.
After resizing (if needed) the FLV file is paused.
VideoPlayer.pause()
Pauses playing the video stream.
VideoPlayer.play()
Begins playing the video stream.
VideoPlayer.removeEventListener()
Removes an event listener.
VideoPlayer.seek()
Seeks to a specified time in the file, given in
seconds, with decimal precision up to
milliseconds.
VideoPlayer.setScale()
Sets scaleX and scaleY simultaneously.
VideoPlayer.setSize()
Sets width and height simultaneously.
VideoPlayer.stop()
Stops playing the video stream.
Property Value Description
VideoPlayer.BUFFERING
"buffering"
Possible value for the state
property. Indicates state
entered immediately after
play() or load() is called.
VideoPlayer.CONNECTION_ERROR
"connectionError"
Possible value for the state
property. Indicates that a
connection error occurred.