Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gabek
Visitor

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 3
belltown
Roku Guru

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/
0 Kudos
gabek
Visitor

Re: roAudioPlayer + HTTP 302 Redirects

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

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
0 Kudos