Page 1 of 1

Taking input in the form of URL's from teamspeak and appending them to a playlist

Posted: 19 Jun 2015 03:11
by Rhysyboy98
I was wondering if anyone had attempted to use a bit to try and take input from somewhere, such as teamspeak, and add it to a playlist on VLC. If nobody knows of any programming, I have some questions.

How do I use 2 SDK's in one script? Or do I need 2 scripts.

How do I make VLC add the URL to the playlist?

Is there a way to check the URL for duplicates in the playlist or will I need a text file that it reads from?

I've already got the audio from VLC playing URL's and know how to fetch text from chat but interacting with VLC is the last step.

Re: Taking input in the form of URL's from teamspeak and appending them to a playlist

Posted: 22 Jun 2015 16:40
by Etoh
I've never tried to do anything like that and am not that clear on what you are trying to do - maybe some use cases would be helpful.

As per https://www.videolan.org/developers/vlc ... README.txt you can use playlist.add() to add to a playlist, and you can specify a URL in .path. If you use playlist.enqueue() it doesn't play it straight away. If you need to connect somewhere there is net.connect_tcp(), and you can use a dialog for user input. There are also playlist scripts: http://www.videolan.org/developers/vlc/ ... README.txt / https://wiki.videolan.org/Documentation ... t_Scripts/