Removing an item from the playlist problem

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Ridders
New Cone
New Cone
Posts: 7
Joined: 08 Nov 2012 16:55

Removing an item from the playlist problem

Postby Ridders » 08 Nov 2012 17:02

Hello,

I have been working in Delphi XE3 using the VLC activex plug-in and have encountered a problem when I attempt to remove an item from the playlist using

VLC.playlist.items.remove(IDNumber);

When I add an item to the playlist I store in an array of records its id number from the add command as well as its file path and display it in a list box. When I try to delete an item the last item I added will no longer play if I attempt to play its id number and when I add another item it will also use that id number.

Example:

I have added 4 files to the play list (Where the numbers are the id numbers of the playlist retruned from the add commmand):

File0, File1, File2, File3

I then delete the first leaving me with

File1, File2, File3

Now File 1 and 2 will play if I ask them to but File 3 will not. If I get a count of the items it is 3. Now if I add an item I get

File1, File2, File3, File3

Selecting either File3s will result in it playing the second file I have added.

If any more information is required or anyone has any ideas of the problem please let me know.

Thanks =)

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 9 guests