Changes between Version 6 and Version 7 of Ticket #415


Ignore:
Timestamp:
10/12/09 13:41:58 (4 years ago)
Author:
pablo
Comment:

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. 
     1Player 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. 
    22 
    33=== Initialization === 
    44 
    5 Initialization of the player happens before the first LOAD and before the first REDRAW occurs. It is different for plugins, actionscript and javascript: 
     5Initialization of the player happens before the first LOAD and before the first REDRAW occurs. It is different for plugins, ActionScript and javascript: 
    66 
    7  * Plugins have an '''initializePlugin(view)''' call. 
    8  * Actionscript 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. 
    1010 
    11 === Public methods === 
     11=== Public Player properties (read-only) === 
    1212 
    13  * getConfig():Object 
    14  * getPlaylist():Array 
    15  * getPlugin(name):Object 
    16  * getPluginConfig(name):Object 
    17  * addListener(event,listener):Boolean 
    18  * removeListener(event,listener):Boolean 
    19  * sendEvent(event):Boolean 
     13 * playlist:Playlist 
     14 * config:PlayerConfig 
     15 * skin:ISkin 
     16 * isBlocking:Boolean 
     17 * fullscreen:Boolean 
     18 * mute:Boolean 
     19 * controls:PlayerControls 
    2020 
     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)