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

GetIndex() returns -5

Anyone know what this means? It's not in the documenation.

This is for roVideoScreenEvent
0 Kudos
4 REPLIES 4
RokuMarkn
Visitor

Re: GetIndex() returns -5

I assume this is after isRequestFailed()? -5 is a media error; most likely the stream format is not supported. I have updated the documentation.

--Mark
0 Kudos
alexboyer
Visitor

Re: GetIndex() returns -5

Ok, thanks.

I am having difficulty with playback. It's going through the motions but fails at some point:


while true
msg = wait(0, m.screen.GetMessagePort())
print "Message = "; msg.GetMessage()
if msg.isRequestFailed() then
print "play failed: "; msg.GetInfo()
end if
end while


Output:
Message = Stream started.
Message = License acquisition status
Message = The requested operation is not implemented.
Message =
play failed: MediaFormat: <Component: roAssociativeArray>


Thanks again.
0 Kudos
TheEndless
Channel Surfer

Re: GetIndex() returns -5

You'll also get a -5 if the stream URL returns a 404. I'd suggest adding an roSystemLog and listening for http.connect and http.error to see if that sheds more light on the issue.
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)
0 Kudos
alexboyer
Visitor

Re: GetIndex() returns -5

Thanks, the systemLog helped loads!
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.