vlc.playlist.items.remove problem

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
ams.fwd
New Cone
New Cone
Posts: 5
Joined: 11 Aug 2010 23:19

vlc.playlist.items.remove problem

Postby ams.fwd » 24 Aug 2010 00:31

Hi All.

I have an embedded player that works as follows:
- add an item using vlc.playlist.add
- save the id (which always seems to be zero-indexed and sequential)
- allow user to remove any item by calling vlc.playlist.items.remove(id-which-was-saved)

The problem I run into is that vlc.playlist.items.remove always throws an exception, but seems to remove the item from its list (ie vlc.playlist.items.count reflects reality, I have no way of knowing if it actually removed the right one).

Calling document.playlist.playItem with the saved id works perfectly, but remove always barfs.

Any ideas as to what might be going on?

Thanks.
AM

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests