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

Discuss your Lua playlist, album art and interface scripts.
Rhysyboy98
New Cone
New Cone
Posts: 1
Joined: 19 Jun 2015 03:03

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

Postby Rhysyboy98 » 19 Jun 2015 03:11

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.

Etoh
Blank Cone
Blank Cone
Posts: 60
Joined: 12 Jan 2013 16:33

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

Postby Etoh » 22 Jun 2015 16:40

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/


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 1 guest