/************************************************************************* * * ADOBE SYSTEMS INCORPORATED * Copyright 2004-2008 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the * terms of the Adobe license agreement accompanying it. If you have received this file from a * source other than Adobe, then your use, modification, or distribution of it requires the prior * written permission of Adobe. * **************************************************************************/ package fl.video { /** * The VideoState class provides constant values for the read-only FLVPlayback.state and * VideoPlayer.state properties. * * @see FLVPlayback#state * @see VideoPlayer#state * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public final class VideoState { // // public state constants // /** * The video player is in the disconnected state. * It enters this state when the stream is closed by a call * to the closeVideoPlayer() * method or timed out on idle. Use the FLVPlayback.state property to * obtain the current state of the video player. * *

The FLVPlayback instance is in a disconnected state until you set the * FLVPlayback.source property.

* * @see FLVPlayback#closeVideoPlayer() * @see FLVPlayback#idleTimeout * @see FLVPlayback#source * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const DISCONNECTED:String = "disconnected"; /** * The video player is in the stopped state. * It enters this state when the FLV file is loaded and * play is stopped by calling the stop() method or when the * playhead reaches the end of the stream. Use the FLVPlayback.state * property to obtain the current state of the video player. * *

This is a responsive state.

* * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * @see FLVPlayback#stop() * @see FLVPlayback#stopped * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const STOPPED:String = "stopped"; /** * The video player is in the playing state. * It enters this state when the FLV file is loaded and is playing. * Use the FLVPlayback.state * property to obtain the current state of the video player. * *

This is a responsive state.

* * @see FLVPlayback#playing * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * @see FLVPlayback#play() * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const PLAYING:String = "playing"; /** * The video player is in the paused state. * It enters this state when the FLV file is loaded, but play is paused * by calling the pause() or * load() method. * Use the FLVPlayback.state * property to obtain the current state of the video player. * *

This is a responsive state.

* * @see FLVPlayback#load() * @see FLVPlayback#pause() * @see FLVPlayback#paused * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const PAUSED:String = "paused"; /** * The video player is in the buffering state. * It enters this state immediately * after a call is made to the play() or load() method. * Use the FLVPlayback.state property to obtain the current state of * the video player. * *

This is a responsive state.

* * @see FLVPlayback#buffering * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const BUFFERING:String = "buffering"; /** * The video player is in the loading state. * It enters this state immediately after the * play() or load() method is called or * after the FLVPlayback.source property is set. * Use the FLVPlayback.state property to obtain the current state of * the video player. * *

This is an unresponsive state.

* * @see FLVPlayback#load() * @see FLVPlayback#play() * @see FLVPlayback#source * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const LOADING:String = "loading"; /** * The video player is in the connection error state. * It enters this state when a video stream attempted to * load but was unsuccessful. There are two possible reasons for the error: * no connection to the server or the stream was not found. * Use the FLVPlayback.state property to obtain the current * state of the video player. * *

This is an unresponsive state.

* * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const CONNECTION_ERROR:String = "connectionError"; /** * The video player is in the rewinding state. * It enters this state when the video rewinds automatically. * The video rewinds automatically after it has stopped, either * by clicking the stop button or by the video playing to the end. * After rewinding is complete, the state is stopped. * Use the FLVPlayback.state property to obtain the current * state of the video player. * *

This is an unresponsive state.

* * @see FLVPlayback#autoRewind * @see FLVPlayback#state * @see FLVPlayback#stateResponsive * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const REWINDING:String = "rewinding"; /** * The video player is in the seeking state. * It enters this state after the seek() method * is called and also while the user is scrubbing with the seek bar. * Use the FLVPlayback.state property to obtain the current * state of the video player. * *

This is an unresponsive state.

* * @see FLVPlayback#stateResponsive * @see FLVPlayback#state * @see FLVPlayback#seek() * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const SEEKING:String = "seeking"; /** * The video player is in the resizing state. * It enters this state during autolayout. * The FLVPlayback instance never has this constant's state value, * only the VideoPlayer instance. Use the VideoPlayer.state * property to obtain the current * state of the video player. * *

This is a unresponsive state.

* * @see VideoPlayer#state * @see VideoPlayer#stateResponsive * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const RESIZING:String = "resizing"; /** * The video player is in the execQueuedCmd state. * It enters this state during execution of queued command. * There will never get a "stateChange" event notification with * this state; it is internal only. * *

This is a unresponsive state.

* * @see VideoPlayer#state * @see VideoPlayer#stateResponsive * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ flvplayback_internal static var EXEC_QUEUED_CMD:String = "execQueuedCmd"; }; // class VideoState }; // package fl.video