Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

passing arguments to ices2's playlist/script-module

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sun Jul 17, 2005 7:43 pm    Post subject: passing arguments to ices2's playlist/script-module Reply with quote

hi!

I'm using ices2's playlist/script-module as a source-client for my icecast-server.
Currently I'm working on a music database, which also includes playlist-creation and management. I wan't the users to be able to listen to their playlists (which are stored on the server) via the icecast-server. therefore i'd need to pass arguments (like playlistname or id) to the script-module, which are then forwarded to the script.

how can i accomplish this?!

greetings, Stefan
Back to top
MikeS
Code Warrior
Code Warrior


Joined: 29 Jun 2005
Posts: 73
Location: Barcelona, Spain

PostPosted: Mon Jul 18, 2005 9:22 am    Post subject: Reply with quote

The 'program' configuration string for the playlist module ends up just being passed directly to a call to popen() - so if you quote things properly, you can add whatever arguments you want right there.

Does that do what you want?
Back to top
View user's profile Send private message Send e-mail
Anonymous
Guest





PostPosted: Mon Jul 18, 2005 5:35 pm    Post subject: no.... Reply with quote

no, not really... i meant something like
Code:
http://server:8000/playlist.ogg?id=1


which then would be forwared to the 'program' configuration string.

that's what i initially meant, but meanwhile i know, that this won't work for me ; )

thanks, anyway
Back to top
EvilOverlord
Forum Admin
Forum Admin


Joined: 12 Jun 2005
Posts: 173
Location: Isle of Man

PostPosted: Mon Jul 18, 2005 8:42 pm    Post subject: Reply with quote

I had to do something vaguely similar to this; allow users to interact with ices via the web.

I wrote a python module which controlled ices (set playlist type to python in ices config) ices then send whatever I instructed to the icecast server.

To allow the python module to make the right decisions I wrote a php script which the user activated through a web server (seperate from the icecast server), this script interacted with config files for the python script and called a SIGUSR1 to the ices process so that it would skip to the next track and run the python module.

Not a beautiful solution, but it worked Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber