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 

HTTP Auth Intro Header

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
JeremyWJ



Joined: 01 Feb 2011
Posts: 3

PostPosted: Mon Sep 09, 2013 4:56 pm    Post subject: HTTP Auth Intro Header Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Sep 10, 2013 12:37 pm    Post subject: Reply with quote

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
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 -> Feature Requests 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