vlc.playlist.items.remove() seems to be buggy since V1.1

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
MrMcMedia
New Cone
New Cone
Posts: 5
Joined: 24 Mar 2010 14:51
Operating System: Windows / Linux

vlc.playlist.items.remove() seems to be buggy since V1.1

Postby MrMcMedia » 29 Aug 2010 19:26

Within the Mozilla plugin the method "vlc.playlist.items.remove() seems to be buggy since V1.1.

1.0.5 Goldeneye worked as a charme.

The javascript code : "vlc.playlist.items.remove((vlc.playlist.items.count+=-1));" doesn´t work anymore.

"try{vlc.playlist.items.remove((vlc.playlist.items.count+=-1));}catch(errorObject){ugly="bug";alert(errorObject.message);}"

throws the following error but works: "Error calling method on NPObject!"

Without try - catch the method doesn´t work any more.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc.playlist.items.remove() seems to be buggy since V1.1

Postby Jean-Baptiste Kempf » 04 Sep 2010 16:46

Do you know which one throws the exception?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

MrMcMedia
New Cone
New Cone
Posts: 5
Joined: 24 Mar 2010 14:51
Operating System: Windows / Linux

Re: vlc.playlist.items.remove() seems to be buggy since V1.1

Postby MrMcMedia » 03 Oct 2010 21:20

vlc.playlist.items.remove(1); doesn´t work even with a fixed integer as param.
with try / catch it works and returns the error above.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests