FlowPlayer API supports a subset of the JavaScript API available in mplayer browser plug-in (http://mplayerplug-in.sourceforge.net/). Additionally it defines some methods that are not available in mplayer plug-in. mplayer plug-in's API is documented in javascript.txt that can be found in the plugin's source distribution package. FlowPlayer supports the following methods. These are available to JavaScript and to other Flash movies via Flash's LocalConnection. methods (same as in mplayer plug-in): DoPlay():Void; DoStop():Void; Reset()Void; Pause()Void; Seek(seconds:Number)Void; getTime()Void; getDuration()Void; FlowPlayer specific, not in mplayer plug-in API: setConfig(flowPlayerConfig:Object):Void StartBuffering()Void; ToggleLoop()Void; getPercentLoaded():Number; getIsPlaying():Boolean; getIsPaused():Boolean; getIsLooping():Boolean; PlayList control (FlowPlayer specific, not in mplayer plug-in API): hasNext():Boolean; NextClip():Void; PrevClip():Void; getPlayListSize():Number; getCurrentClip():Number; ToClip(index:Number):Void; Detail: methods (same as in mplayer plug-in): DoPlay():Void; Plays the current clip. DoStop():Void; Stops playback and returns to the first clip in the playlist. Reset()Void; Resets the player to the initial state. Pause()Void; Pauses playback. Seek(seconds:Number)Void; Seeks to the specified time during the clip's timeline. getTime()Void; Get's the current time (seconds advanced). getDuration()Void; Get's the clip's duration. FlowPlayer specific, not in mplayer plug-in API: setConfig(flowPlayerConfig:Object):Void; Configure the player using a FlowPlayer configuration object. This is a JavaScript object that is documented in flowPlayer.js (http://flowplayer.sourceforge.net/flowPlayer.js). NOTE: The visible playList will not behave currently if you replace an existing playlist by calling this method with an object that has a different playList! StartBuffering()Void; Starts loading the clip into the buffer memory. Does not start playback. ToggleLoop()Void; Toggless looping on/off. getPercentLoaded():Number; Gets the percentage of buffer memory currently filled with data. getIsPlaying():Boolean; Is the player currently playing? getIsPaused():Boolean; Is the player currently paused? getIsLooping():Boolean; Is the player looping? PlayList control (FlowPlayer specific, not in mplayer plug-in API): hasNext():Boolean; Does the playlist have more clips after the current clipP? NextClip():Void; Moves to next clip. PrevClip():Void; Moves to previous clip. getPlayListSize():Number; Gets the number of clips in the playlist. getCurrentClip():Number; Gets the index of the current clip. First clip is at index zero. ToClip(index:Number):Void; Moves to clip at the specified index. Callbacks from the player (FlowPlayer specific, not in mplayer plug-in API): function onClipDone(clip); Called when a clip has been played to the end. The clip parameter object has following properties: name, baseUrl, fileName, start (start time in seconds), end (end time in seconds), protected (is hotlink protection applied for this clip?), linkUrl, linkWindow, controlEnabled (enable playback control buttons?) function onClipChanged(clip); Called when the user manually changes to another clip in the playlist or when the playback moves from one clip to the next. function onLoadBegin(clip); Called when the loading of a clip begins. function onStreamNotFound(clip); Called when a clip is not found using it's URL. function onPlay(clip); Called when playback starts for a playlist. function onStop(clip); Called when playback of the playlist stops. function onPause(clip); Called when the player is paused. function onResume(clip); Called when the player is resumed. function onCuePoint(cuePoint); Called when a cue point is reached. function onStartBuffering(clip); Called when a clip starts buffering. function onBufferFull(clip); Called when the buffer is full and the playback for the specified clip can start. function onBufferFlush(clip); Called when the buffer is flushed for a clip. function onMetaData(metadataObj); Called when metadata for the currently playing clip has been received. The metadata object contains following properties: duration (seconds), videodatarate (kbit/s), audiodatarate (kbit/s) and creationdate.