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 

Simple time limiting

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





PostPosted: Wed Oct 11, 2006 9:38 pm    Post subject: Simple time limiting Reply with quote

Using icecast 2.3.1 I was looking for a simple way to limit the time connected and found none so..... if anyone is looking or searches here is what I did.

If there is a simpler way to impose a global time limit I would like to hear about it.

create ice-auth.php on a web server with php some place
<?
$time=3600;
header('icecast-auth-user: 1');
header('icecast-auth-message: OK');
header("icecast-auth-timelimit: $time");
?>

Here is the mount point entry from icecast.xml
<mount>
<mount-name>/mountname</mount-name>
<authentication type="url">
<option name="mount_add" value="http://php.auth.server/ice-auth.php"/>
<option name="mount_remove" value="http://php.auth.server/ice-auth.php"/>
<option name="listener_add" value="http://php.auth.server/ice-auth.php"/>
<option name="listener_remove" value="http://php.auth.server/ice-auth.php"/>
<option name="username" value="user"/>
<option name="password" value="pass"/>
<option name="auth_header" value="icecast-auth-user: 1"/>
<option name="timelimit_header" value="icecast-auth-timelimit:"/>
</authentication>
</mount>

Now it is an open stream server yet everybody expires after 3600 seconds.

Jerry
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Oct 12, 2006 3:02 am    Post subject: Reply with quote

There's no setting globally but you can set it for non-auth mounts with the say

<max-listener-duration>3600</max-listener-duration>

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server 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