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: 
lmsilva
Visitor

Stream is failing, not sure why?

Dear all,

I'm trying to stream a video using the roVideoPlayer object but it is failing and I do not know exactly why.

Sub EventLoop()
while true
msg = wait(0, m.port)
if msg <> invalid
print "msg: " + msg.GetMessage()
end if
end while
End Sub

Here's my EventLoop code:

And here's the message I'm getting

msg: startup progress
msg: startup progress
msg: startup progress
msg:
msg: startup progress
msg: startup progress
msg: startup progress
msg: Stream started.
msg: Cannot seek to 0/1000: error -33 <---------------------------------------------- SUSPICIOUS MESSAGE!!!
msg:
msg: Playback completed.
msg: end of playlist


Any thoughts??

I also inspected the returns from msg.isRequestFailed() but that method returns false, so I'm guessing the 0 returned from msg.GetIndex() doesn't actually mean there was a "Network error : server down or unresponsive, server is unreachable, network setup problem on the client." (as described in the documentation), right?
BrightScript Debugger> p msg.isRequestFailed()
false
BrightScript Debugger> p msg.GetIndex()
0
BrightScript Debugger>

Thank you!
Luis
0 Kudos
6 REPLIES 6
lmsilva
Visitor

Re: Stream is failing, not sure why?

Still no reply, anybody from the Roku team around? 🐵
I could really use some pointers on what to look for?

Thank you!
Luis
0 Kudos
RokuMarkn
Visitor

Re: Stream is failing, not sure why?

What kind of stream are you playing (container and codec)?

--Mark
0 Kudos
lmsilva
Visitor

Re: Stream is failing, not sure why?

I'm trying to play an mp4 video:
root@xkitten:~# ffmpeg -i videoplayback.mp4
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:02:36 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videoplayback.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2012-05-04 20:19:48
Duration: 00:12:08.47, start: 0.000000, bitrate: 720 kb/s
Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 640x360, 621 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 96 kb/s
Metadata:
creation_time : 2012-05-04 20:19:48
At least one output file must be specified
root@xkitten:~#

p.s. I've uploaded it here https://docs.google.com/a/adaptivecompu ... t=download

Any thoughts on why I can't play it??
0 Kudos
renojim
Community Streaming Expert

Re: Stream is failing, not sure why?

It plays fine for me. I'm guessing it's a server issue. Your server must support range requests.

-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.
0 Kudos
lmsilva
Visitor

Re: Stream is failing, not sure why?

I'm trying to get this from youtube directly.
I generate the url and try to get it but I bump into that error in the roku, though I can play the url in my pc just fine...

Any thoughts?
0 Kudos
lmsilva
Visitor

Re: Stream is failing, not sure why?

Any thoughts guys? 🐵
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.