source: trunk/fl5/src/com/longtailvideo/jwplayer/model/IPlaylist.as @ 628

Revision 628, 2.4 KB checked in by pablo, 4 years ago (diff)
  • Playlist ITEM timing issues
Line 
1package com.longtailvideo.jwplayer.model {
2        import com.longtailvideo.jwplayer.events.IGlobalEventDispatcher;
3       
4        /**
5         * Sent when a playlist has been loaded.
6         *
7         * @eventType com.longtailvideo.jwplayer.events.PlaylistEvent.JWPLAYER_PLAYLIST_LOADED
8         */
9        [Event(name="jwplayerPlaylistLoaded", type="com.longtailvideo.jwplayer.events.PlaylistEvent")]
10       
11       
12        /**
13         * Sent when the playlist has been updated.
14         *
15         * @eventType com.longtailvideo.jwplayer.events.PlaylistEvent.JWPLAYER_PLAYLIST_UPDATED
16         */
17        [Event(name="jwplayerPlaylistUpdated", type="com.longtailvideo.jwplayer.events.PlaylistEvent")]
18       
19       
20        /**
21         * Sent when the playlist's current item has changed.
22         *
23         * @eventType com.longtailvideo.jwplayer.events.PlaylistEvent.JWPLAYER_PLAYLIST_ITEM
24         */
25        [Event(name="jwplayerPlaylistItem", type="com.longtailvideo.jwplayer.events.PlaylistEvent")]
26       
27       
28        /**
29         * Sent when an error ocurred when loading or parsing the playlist
30         *
31         * @eventType com.longtailvideo.jwplayer.events.PlayerEvent.JWPLAYER_ERROR
32         */
33        [Event(name="jwplayerError", type = "com.longtailvideo.jwplayer.events.PlayerEvent")]
34       
35       
36        /**
37         * Interface for JW Flash Media Player playlist
38         *
39         * @author Zachary Ozer
40         */
41        public interface IPlaylist extends IGlobalEventDispatcher {
42                /**
43                 * Replaces all playlist items
44                 *
45                 * @param newPlaylist May be an Array of PlaylistItems or structured Objects, a PlaylistItem, or another Playlist
46                 */
47                function load(newPlaylist:Object):void;
48                /**
49                 * Gets a the PlaylistItem at the specified index.
50                 *
51                 * @param idx The index of the PlaylistItem to retrieve
52                 * @return If a PlaylistItem is found at position <code>idx</code>, it is returned.  Otherwise, returns <code>null</code>
53                 */
54                function getItemAt(idx:Number):PlaylistItem;
55                /**
56                 * Inserts a PlaylistItem
57                 *
58                 * @param itm
59                 * @param idx The position in which to place a playlist
60                 *
61                 */
62                function insertItem(itm:PlaylistItem, idx:Number = -1):void;
63                /**
64                 * Removes an item at the requested index
65                 *
66                 * @param idx The index from which to remove the item
67                 */
68                function removeItemAt(idx:Number):void;
69                /**
70                 * Returns true if the given playlist item is currently loaded in the list.
71                 **/
72                function contains(item:PlaylistItem):Boolean;
73
74                function get currentIndex():Number;
75                function set currentIndex(idx:Number):void;
76                function get currentItem():PlaylistItem;
77                function get length():Number;
78        }
79}
Note: See TracBrowser for help on using the repository browser.