Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
gabek
Level 7

roAudioPlayer + HTTP 302 Redirects

I'm fighting an issue where a valid HTTP 302 Redirect is seen as an error with roAudioPlayer.  For example:


$ curl -I http://streams.getmyip.com
curl -I http://streams.getmyip.com
HTTP/1.1 302 Moved Temporarily
Server: nginx/0.7.67
Date: Sat, 12 Nov 2016 21:30:08 GMT
Connection: close
Location: http://nyc04.egihosting.com:6699/


Valid response with cURL.

But with roAudioPlayer I get a roAudioPlayerEvent of:

There was an error in the HTTP response.  This could mean that malformed HTTP headers or an HTTP error code was returned.


Is there any way to force this component to handle redirects?  It looks like other components with the SDK follow them ok.
0 Kudos
3 Replies
belltown
Level 7

Re: roAudioPlayer + HTTP 302 Redirects

Does it work if you put a forward-slash character at the end of the url?

http://streams.getmyip.com/
https://github.com/belltown/
0 Kudos
gabek
Level 7

Re: roAudioPlayer + HTTP 302 Redirects

Sadly, no, the trailing slash doesn't seem to make a difference.
0 Kudos
belltown
Level 7

Re: roAudioPlayer + HTTP 302 Redirects

"gabek" wrote:
Sadly, no, the trailing slash doesn't seem to make a difference.

Sorry to hear that. Putting the trailing slash worked for me when I put the url into a couple of different channels, one that uses roAudioPlayer, and one that uses the Scene Graph Audio component.
Try playing the url (both with and without the trailing slash) using the SimpleAudioPlayer channel, https://my.roku.com/account/add?channel=SIMPLEAUDIOPLAYER
https://github.com/belltown/
0 Kudos