Possible to remove playlist item in RC mode?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
-pekr-
New Cone
New Cone
Posts: 1
Joined: 04 Feb 2012 18:57

Possible to remove playlist item in RC mode?

Postby -pekr- » 04 Feb 2012 19:23

Hello,

although I use VLC for quite some time, this time I need to aproach it from the different angle. We are setting up a LED screen, and our clients requires one special feature - dynamically change playlist. I mean - if e.g. our local ice hockey team scores a goal, such info should go right after the content being played :-)

I looked into mplayer, vlcplayer, ffplay, and I found out, that those are all usable from command line, and/or via some remote aproach, being it tcp, pipe, whatever. Sorry if you think it belongs to LUA scripting (which I might learn in the end), but I am used less known scripting environment - REBOL.

When I look into RC commands available, I can see commands like ADD, ENQUEUE, various navigations, but what I cant find is the ability to remove from playlist, although I can see API has such a function (I am not fluent C coder though). Problem with CLEAR is, that it shuts down even the item, which is just recently being played, and what I need is uninterrupted playback.

My idea was as follows:

- REBOL few lines of code, linking to TCP port
- forever looping
- checking is_playing
- checking on delta of get_time and get_length
- enqueueing new item, if the recent is about to end in few seconds

That way, I am able to insert new stuff dynamically, as I keep playlist in VLC having only a one item. The problem is - it keeps growing. Well, maybe it does not mind, and I can restart the player at night, when the screen is turned off.

But anyway - my question is - is there a way, of how to clear the playlist items, without the playback being interrupted? Would it be possible to add such a feature in future releases, exposing DELETE index to the RC interface? I would find it usefull :-)

Thanks, and sorry if such a question was answered already - I was looking over the net and found not relevant answer, why such a functionality is not supported.

Thanks a lot,
Petr

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: Possible to remove playlist item in RC mode?

Postby Jean-Baptiste Kempf » 06 Feb 2012 17:55

If you delete the current item, it stops playing.
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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 49 guests