1FlowPlayer's JavaScript API supports a subset of the JavaScript API 2available in mplayer browser plug-in (http://mplayerplug-in.sourceforge.net/). 3Additionally it defines some methods that are not available in mplayer 4plug-in. mplayer plug-in's API is documented in javascript.txt that can be found 5in the plugin's source distribution package. 6 7FlowPlayer supports the following JavaScript methods 8 9 10methods (same as in mplayer plug-in): 11 12 DoPlay():Void; 13 DoStop():Void; 14 Reset()Void; 15 Pause()Void; 16 Seek(seconds:Number)Void; 17 getTime()Void; 18 getDuration()Void; 19 20FlowPlayer specific, not in mplayer plug-in API: 21 22 setConfig(flowPlayerConfig:Object):Void 23 StartBuffering()Void; 24 ToggleLoop()Void; 25 getPercentLoaded():Number; 26 getIsPlaying():Boolean; 27 getIsPaused():Boolean; 28 getIsLooping():Boolean; 29 30PlayList control (FlowPlayer specific, not in mplayer plug-in API): 31 32 hasNext():Boolean; 33 NextClip():Void; 34 PrevClip():Void; 35 getPlayListSize():Number; 36 getCurrentClip():Number; 37 ToClip(index:Number):Void; 38 39Detail: 40 41methods (same as in mplayer plug-in): 42 43 DoPlay():Void; 44 45 Plays the current clip. 46 47 DoStop():Void; 48 49 Stops playback and returns to the first clip in the playlist. 50 51 Reset()Void; 52 53 Resets the player to the initial state. 54 55 Pause()Void; 56 57 Pauses playback. 58 59 Seek(seconds:Number)Void; 60 61 Seeks to the specified time during the clip's timeline. 62 63 getTime()Void; 64 65 Get's the current time (seconds advanced). 66 67 getDuration()Void; 68 69 Get's the clip's duration. 70 71FlowPlayer specific, not in mplayer plug-in API: 72 73 setConfig(flowPlayerConfig:Object):Void; 74 75 Configure the player using a FlowPlayer configuration object. 76 This is a JavaScript object that is documented in flowPlayer.js 77 (http://flowplayer.sourceforge.net/flowPlayer.js). 78 79 NOTE: The visible playList will not behave currently if you replace 80 an existing playlist by calling this method with an object that 81 has a different playList! 82 83 StartBuffering()Void; 84 85 Starts loading the clip into the buffer memory. Does not start 86 playback. 87 88 ToggleLoop()Void; 89 90 Toggless looping on/off. 91 92 getPercentLoaded():Number; 93 94 Gets the percentage of buffer memory currently filled with data. 95 96 getIsPlaying():Boolean; 97 98 Is the player currently playing? 99 100 getIsPaused():Boolean; 101 102 Is the player currently paused? 103 104 getIsLooping():Boolean; 105 106 Is the player looping? 107 108PlayList control (FlowPlayer specific, not in mplayer plug-in API): 109 110 hasNext():Boolean; 111 112 Does the playlist have more clips after the current clipP? 113 114 NextClip():Void; 115 116 Moves to next clip. 117 118 PrevClip():Void; 119 120 Moves to previous clip. 121 122 getPlayListSize():Number; 123 124 Gets the number of clips in the playlist. 125 126 getCurrentClip():Number; 127 128 Gets the index of the current clip. First clip is at index zero. 129 130 ToClip(index:Number):Void; 131 132 Moves to clip at the specified index. 133 134