Changes between Version 6 and Version 7 of Ticket #415
- Timestamp:
- 10/12/09 13:41:58 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #415
- Property Status changed from new to closed
- Property Resolution changed from to fixed
-
Ticket #415 – Description
v6 v7 1 A couple of changes to the API should make it more useful, without it destroying the old API.1 Player 5 plugins will have a new API to interact with the player, which simplifies player interaction and removes the need for plugin developers to understand the player's internal structure. 2 2 3 3 === Initialization === 4 4 5 Initialization of the player happens before the first LOAD and before the first REDRAW occurs. It is different for plugins, actionscript and javascript:5 Initialization of the player happens before the first LOAD and before the first REDRAW occurs. It is different for plugins, ActionScript and javascript: 6 6 7 * Plugins have an '''init ializePlugin(view)''' call.8 * Action script can subscribe to the '''player.READY''' call. It forwards a reference to the view.9 * Javascript needs to have a '''playerReady()''' call implemented.7 * Plugins have an '''initPlugin(player, config)''' call, which returns a reference to the Player API class and the plugin's config object. 8 * ActionScript can subscribe to the '''PlayerEvent.JWPLAYER_PLAYER_READY''' event. 9 * Javascript can set the 'playerready' flashvar with the name of a callback function which is executed when the player setup is complete. 10 10 11 === Public methods===11 === Public Player properties (read-only) === 12 12 13 * getConfig():Object14 * getPlaylist():Array15 * getPlugin(name):Object16 * getPluginConfig(name):Object17 * addListener(event,listener):Boolean18 * removeListener(event,listener):Boolean19 * sendEvent(event):Boolean13 * playlist:Playlist 14 * config:PlayerConfig 15 * skin:ISkin 16 * isBlocking:Boolean 17 * fullscreen:Boolean 18 * mute:Boolean 19 * controls:PlayerControls 20 20 21 === Public Player methods === 22 23 * addEventListener(event type,listener):Boolean 24 * removeEventListener(event type,listener):Boolean 25 26 * play() 27 * pause() 28 * stop() 29 * playlistNext() 30 * playlistPrev() 31 * playlistItem(index) 32 * seek(position) 33 * load(toLoad) 34 35 * blockPlayback(plugin) 36 * unblockPlayback(plugin)
