Old 4th April 2011, 08:26   #1
masterkain
Junior Member
 
Join Date: Apr 2011
Posts: 3
Winamp should follow http redirects

Hello,
I'm trying to build a m3u playlist with remote files.

Our system uses http 303 (see other) status code on our streaming action, redirecting the client to the private and temporary media file url, which is computed on the fly because it's protected.

Sample:

code:
#EXTM3U
#EXTINF:233,Sample Artist - Sample title
https://host/api/tracks/3c08ae42-e618-49f5-ace8-393112051c95/stream



Problem is that WinAmp reads the 303 status and skips to the next track instead of following the redirect to reach the actual remote file.

From our web app we can't create the m3u with the computed paths because they have time based expiration.

Any solution to this, please?

Thanks
masterkain is offline   Reply With Quote
Old 4th April 2011, 08:58   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
no versions of Winamp (note no weird capitalisation) support http 303 redirects and so you're really looking at a request to have the support implemented (as this forum isn't really for core Winamp development but for 3rd party development though i'll leave this thread in here for the time being).

ideally some sort of working link(s) to try against would make it easier to look into adding in support for a later Winamp version (can be pm'd to me if you don't want things public) to try to find someone to look into it. then again, redirect codes 301, 302 and 307 are meant to work so maybe something to try out as that'll generally work with older clients and probably easier to sort out on your end i'd have thought if you're doing things dynamically already.

-daz
DrO is offline   Reply With Quote
Old 4th April 2011, 09:05   #3
masterkain
Junior Member
 
Join Date: Apr 2011
Posts: 3
Thanks for the reply, I've sent a PM containing instructions to try this out if you want.

At the moment I guess I'll try sending the data directly from the application, will post results.

Cheers
masterkain is offline   Reply With Quote
Old 19th April 2011, 16:30   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
i've not had a chance to try things out properly but i believe i've got it fixed for when the next Winamp release happens to cope with a 303 redirect code (have been testing against something else which was using a 307 redirect and have just mapped 303 to the same handling so should be ok).

-daz
DrO is offline   Reply With Quote
Old 19th April 2011, 16:32   #5
masterkain
Junior Member
 
Join Date: Apr 2011
Posts: 3
Hi daz,
excellent, thanks for the prompt implementation, will keep you posted.

Cheers!
masterkain is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Tags
http

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump