| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Wed Oct 11, 2006 9:38 pm Post subject: Simple time limiting |
|
|
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

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 12, 2006 3:02 am Post subject: |
|
|
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 |
|
 |
|