| View previous topic :: View next topic |
| Author |
Message |
takerman
Joined: 31 Dec 2007 Posts: 17
|
Posted: Fri Mar 21, 2008 12:29 am Post subject: Confi Icecast Auth URL |
|
|
Hello,
trying for a long time to set up the url auth
Here is what I did icecast.xml:
| Code: |
<mount>
<mount-name>/live.nsv</mount-name>
<authentication type="url">
<option name="mount_add" value="http://www.wresting-media.net/auth.php"/>
<option name="mount_remove" value="http://www.wresting-media.net/auth.php"/>
<option name="listener_add" value="http://www.wresting-media.net/auth.php"/>
<option name="listener_remove" value="http://www.wresting-media.net/auth.php"/>
</authentication>
</mount>
|
Now I would like to know what php code to put on Auth.php Allow for the connection since my forum
| Code: |
<?php
icecast-auth-user: 1
action=mount_add&mount=/live&server=86.208.111.107&port=8000
action=mount_remove&mount=/live&server=86.208.111.107&port=8000
action=listener_add&server=86.208.111.107&port=8000&client=1&mount=/live&user=&pass=&ip=www.wrestling-media.net&agent="My%20player"
action=listener_remove&server=86.208.111.107&port=8000&client=1&mount=/live&user=&pass=&duration=3600
?>
|
 |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Mar 21, 2008 2:04 am Post subject: |
|
|
The whole idea of url auth is to allow customization, the fact that we don't know what you want exactly from the php means no one can write it for you. All I can say is that the listener_add invocation is required to return the header you have mentioned to allow the listener to retrieve the stream. How you determine whether that listener is authenticated is up to you, usually people will just refer to the user and pass values passed in the POST.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Mar 22, 2008 4:17 pm Post subject: |
|
|
I take it you want to integrate the authentication with the forum?
See me on MSN - msn@footyonline.tv. I may have what your after |
|
| Back to top |
|
 |
|