Hi,
The documentation about the version changes says that these functions have been deleted:
"addItem / removeItem javascript calls (the LOAD call is more flexible now).".
I search on the forum and in the source code how to add an item to the playlist, but I didn't found how to do it. So my question is simple: Does the version 4 of the player handle the add of an item to the playlist with javascript.
Anyone seems to have the answer, that's why I wanted to ask it to you JeroenW.
Thx!
PS: sorry for my english!

I haven't tried this yet, but is seems that you would:
1) get a reference to the player:
var player = getPlayer('myplayer');2) create your new item (track object):
var newItem = {file:'video.flv', title:'New Video File', author:'Somebody'};3) get the existing playlist:
var oldList = player.getPlaylist();4) concatenate the objects:
var newList = oldList.concat(newItem);5) load the new playlist into the player:
player.sendEvent("LOAD", newList);It also looks like you can load multiple objects, so maybe steps 4 & 5 can be combined into this:
var lst = array(oldList, newItem);player.sendEvent("LOAD", lst);
Assuming that this works correctly, you could load multiple new items in one call:
var lst = array(oldList, newItem1, newItem2, newItem3);player.sendEvent("LOAD", lst);
Excellent JSON reference: http://www.hunlock.com/blogs/Mastering_JSON_(_JavaScript_Object_Notation_)