Playlist.clear won't work

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
jcvamp
Blank Cone
Blank Cone
Posts: 60
Joined: 27 May 2009 00:58

Playlist.clear won't work

Postby jcvamp » 02 Jun 2009 22:29

I found that there is no way to identify which playlist item is playing, so I decided to work around it by making my own playlist array and keeping only the playing video on the playlist, as follows.

Code: Select all

vlc.playlist.items.Clear vlc.playlist.Add Filename
The problem is if the video has been played and stopped, instead of playing the new video, it plays the old one.

Any ideas?

jcvamp
Blank Cone
Blank Cone
Posts: 60
Joined: 27 May 2009 00:58

Re: Playlist.clear won't work

Postby jcvamp » 02 Jun 2009 22:41

Just for reference, I've read a thread about the same problem, and the solution was to use playitem, which plays the file you've opened. However, I want to be able to open the file without playing it immediately.

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: Playlist.clear won't work

Postby Jean-Baptiste Kempf » 03 Jun 2009 10:58

Fill a bug.
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.

fablec
New Cone
New Cone
Posts: 2
Joined: 03 Jun 2009 13:41

Re: Playlist.clear won't work

Postby fablec » 03 Jun 2009 13:49

viewtopic.php?f=16&t=46076#p201249

it's work for video too

jcvamp
Blank Cone
Blank Cone
Posts: 60
Joined: 27 May 2009 00:58

Re: Playlist.clear won't work

Postby jcvamp » 03 Jun 2009 18:10

Fill a bug.
It's apparently already been reported. It won't let me fill out a report anyway.
viewtopic.php?f=16&t=46076#p201249

it's work for video too
That method still plays the video immediately.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests