source: trunk/fl5/src/com/longtailvideo/jwplayer/player/IPlayer.as @ 1147

Revision 1147, 2.4 KB checked in by pablo, 4 years ago (diff)
  • Replaces TEA class with Wowza's version
  • Moves deprecated link() function from IPlayer to PlayerV4Emulator
Line 
1package com.longtailvideo.jwplayer.player {
2        import com.longtailvideo.jwplayer.model.IPlaylist;
3        import com.longtailvideo.jwplayer.model.PlayerConfig;
4        import com.longtailvideo.jwplayer.plugins.IPlugin;
5        import com.longtailvideo.jwplayer.view.IPlayerComponents;
6        import com.longtailvideo.jwplayer.view.interfaces.IPlayerComponent;
7        import com.longtailvideo.jwplayer.view.interfaces.ISkin;
8
9        import flash.events.IEventDispatcher;
10
11
12        /**
13         * Interface for JW Flash Media Player
14         *
15         * @author Zachary Ozer
16         */
17        public interface IPlayer extends IEventDispatcher {
18                /**
19                 * The player's current configuration
20                 */
21                function get config():PlayerConfig;
22                /**
23                 * Player version getter
24                 */
25                function get version():String;
26                /**
27                 * Reference to player's skin.  If no skin has been loaded, returns null.
28                 */
29                function get skin():ISkin;
30                /**
31                 * The current player state
32                 */
33                function get state():String;
34                /**
35                 * The player's playlist
36                 */
37                function get playlist():IPlaylist;
38                /**
39                 * Set to true when the player is in a locked state.
40                 */
41                function get locked():Boolean;
42                /**
43                 * Request that the player enter the locked state.  When the Player is locked, the currently playing stream is
44                 * paused, and no new playback-related commands will be honored until <code>unlock</code> is
45                 * called.
46                 *
47                 * @param target Reference to plugin requesting the player lock
48                 * @param callback The function to be executed once a lock is aquired.
49                 */
50                function lock(target:IPlugin, callback:Function):void;
51                /**
52                 * Unlocks the player.  If the player was buffering or playing when it was locked, playback will resume.
53                 *
54                 * @param target Reference to the requesting plugin.
55                 * @return <code>true</code>, if <code>target</code> had previously requested player locking.
56                 *
57                 */
58                function unlock(target:IPlugin):Boolean;
59                function volume(volume:Number):Boolean;
60                function mute(state:Boolean):void;
61                function play():Boolean;
62                function pause():Boolean;
63                function stop():Boolean;
64                function seek(position:Number):Boolean;
65                function load(item:*):Boolean;
66                function playlistItem(index:Number):Boolean;
67                function playlistNext():Boolean;
68                function playlistPrev():Boolean;
69                /** Force a redraw of the player **/
70                function redraw():Boolean;
71                function fullscreen(on:Boolean):void;
72                function get controls():IPlayerComponents;
73                function overrideComponent(plugin:IPlayerComponent):void
74        }
75}
Note: See TracBrowser for help on using the repository browser.