2011/12/17 pranza <[email protected]>:
> hi Romain!

Hi!

> my savonet based radio is still up! works nice!

Nice!

> i wanted to ask how to make that a playlist is reloaded everytime it is
> invoked anew?

Ok. In the future, please refer to [email protected], where
everyone can help and benefit from our discussions :-)

> example could be like this:
> folks upload some files to be played at specified time
> specified time arrives and the files play
> later after, folks delete their old files and upload some new
> but when the time comes, they don't play! if i issue command
> "some_program.next" it shows nothing, and in log I can see that failed to
> open file error occured (that's proabably because it tries to open file from
> last week which exists no more)
> i have to do "some_program.reload" in order to force it re-read the folder
> and see new files.
>
> so what could be the way out?
> playlist(reload=18000, "D:/airy/sleeper") does not work (well it works for
> the first time, but not for all next events)
> and playlist("D:/airy/sleeper") does not work as well
>
> is "reload=some_seconds" ticking only while playlist is active? it seems so.
> but if i set too short time, like 1 second, if two one-hour files are
> uploaded, only first will be played and then again, because after playing it
> the playlist would reload but not jump to the next track.
> i need it to play everything for that time, but next time to reload again,
> because old files are absent and new ones are to be played...

I believe that you would be better using request.dynamic for this purpose.

What you should do is something like:

def user_source(user) =
  def f() =

    # Grab latest file uploaded by user or maybe another one in case of error..
    file = list.hg( get_process_lines("/path/to/script #{user}") )

    request.create(file)
  end

  request.dynamic(f)
end

Such a source will always fetch the latest file uploaded by your user.
Furthermore, you have total control over the file that will be played
next through the script you use.

The only part remaining is to implement a script which will do exactly
what you want.

> i also would like to make telnet interface accessible to outer world, not
> just in localhost - is that possible?

Sure, you can use:
  set("server.telnet.bind_addr","0.0.0.0")

However, remember that the telnet interface does not have any
authentication mechanism. For a proper secure authenticated access, I
would refer to:
  http://liquidsoap.fm/doc-1.0.0/secure_server_access.html

Romain

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to