EdNewman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2012
07:06 AM
Video Play Failed
Hi, I am working on getting a simple live stream to play on a modified simplevideoplayer channel. I have been able to successfully make basic modifications to the sample channel app, zip it and upload it. I can play the apple test stream fine (after a few tweaks - damn missing srt="") but I cannot get it to connect to my live stream. In the debug all it says is "play failed: an unexpected problem (not not sever timeout or HTTP error) has been detected. Closing video screen". Using a basic HLS player app for my iPad, I can connect to the stream and it works fine. Only twist I have is that the url for the stream has a variable in it. .../index.m3u8?callsign=N12LI_WEST do I need to handle this differently? Ideas?
9 REPLIES 9
EdNewman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2012
12:30 PM
Re: Video Play Failed
GRRRR! This is driving me nuts. The Apple stream pulls up fine on Roku. Both of the flow player streams work fine on the HLS player app on the ipad and work fine when I host them on my IIS server and pull them up on a Mac with Safari or iPad. Just does not seem to like the Roku.

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2012
12:47 PM
Re: Video Play Failed
You may benefit from adding an roSystemLog to your channel and monitoring for "http.error" to get more details on where it's failing.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
EdNewman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2012
07:36 PM
Re: Video Play Failed
Getting closer. I debugged it to a 403 error, which let me to a user agent string issue. The server is set up for ie, safari, etc. to send flash and iPad, iPhone, etc. to send hls and chokes on the roku. Looks like I can use an ifhttpagent command o mimic the iPad ad make it work. Project for tomorrow.
EdNewman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2012
07:57 AM
Re: Video Play Failed
Anyone have any useful documentation or examples for ifhttpagent ? I can't find anything useful anywhere.
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2012
10:46 AM
Re: Video Play Failed
ifHttpAgent is documented multiple times in the component reference. If you're just looking to add a user-agent header to the video screen, try something like:
-JT
screen..AddHeader("user-agent","Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3")
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
EdNewman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2012
11:08 AM
Re: Video Play Failed
It is referenced all over, but there is no documentation on the meta-data. Turns out I had it right but was using videoclip. instead of video. Got that piece working, but it still did not fix my problem. Back to square one.
EdNewman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2012
02:47 PM
Re: Video Play Failed
So, I have all be debugging code figured our as well as the user-agent, which tested fine so it is not the issue, but this one stream will still not play. All the test streams I point at play fine and one of the two I am trying to code for plays fine, just not the other.
On the problem stream, I do an http get on the server x.x.244.226 with the m3u8 playlist and I ger a return code of 200 (ok), it downloads the playlist and then does a call on the second server x.x.237.22 that has the .ts stream files on it and I get a 403 (denied).
On the one that works, I do an http get on the server x.x.244.226 with the m3u8 playlist and I ger a return code of 200 (ok), it downloads the playlist and then does a call on the second server x.x.237.132 that has the .ts stream files on it and I get a 200 (ok) and the stream plays.
They are both "supposed" to be configure the same and both streams play fine on my HLS test app.
Anything different on Roku I need to do because the play list and files are on two different servers? If not? It has to be a server configuration issue??? But why would it play find on the ipad, iphone, etc.
On the problem stream, I do an http get on the server x.x.244.226 with the m3u8 playlist and I ger a return code of 200 (ok), it downloads the playlist and then does a call on the second server x.x.237.22 that has the .ts stream files on it and I get a 403 (denied).
On the one that works, I do an http get on the server x.x.244.226 with the m3u8 playlist and I ger a return code of 200 (ok), it downloads the playlist and then does a call on the second server x.x.237.132 that has the .ts stream files on it and I get a 200 (ok) and the stream plays.
They are both "supposed" to be configure the same and both streams play fine on my HLS test app.
Anything different on Roku I need to do because the play list and files are on two different servers? If not? It has to be a server configuration issue??? But why would it play find on the ipad, iphone, etc.

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2012
04:52 PM
Re: Video Play Failed
That "403 Denied" error is coming from your server. You need to investigate the server and find out why it is rejecting the HTTP request. Maybe it is configured to accept only certain User-Agents.
--Mark
--Mark
EdNewman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2012
08:29 PM
Re: Video Play Failed
Checked the user-agent evn though it is not configured for it and it did not make a difference. Starting to think there is some small protocol difference. Having the same result on my vlc player app on windows. Interestingly, vlc player won't play the apple hls test stream either. Needs more time to debug and I have been distracted on other projects this week.