View previous topic :: View next topic |
Author |
Message |
JeremyWJ
Joined: 01 Feb 2011 Posts: 3
|
Posted: Mon Sep 09, 2013 4:56 pm Post subject: HTTP Auth Intro Header |
|
|
Since the intro configuration tag is commonly used for advertisements it would be great if this could be enabled on a stream but also have the capability to turn it off for users when using HTTP auth.
I request a new intro_header option for HTTP auth that should return "yes" or "no" on if the defined <intro> in the mount config should play or not.
This would allow users to pay to have ads turned off and allow people to write HTTP auth scripts that do not play the intro when a user reconnects to the stream after a short disconnection. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Sep 10, 2013 12:37 pm Post subject: |
|
|
It's an idea. In the KH tree, you do have the option for the auth server to send intro content back via the listener_add call. All you would need to do is return the headers
icecast-auth-user: withintro
Content-type: eg audio/mpeg if you want FLV wrapping to work
file data in body
This allows for per-listener specific intros. This is actually broken in recent kh releases but is fixed in the github tree, so kh10 release will have it fixed.
karl. |
|
Back to top |
|
|
|