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

Backup video loop if Stream is down

Hi, does anyone know if it is possible to add a video file to the pkg and get it to loop
if the stream is not responding / drops?

Example issues:
App launches
Connect to URL stream
Success
1.5 hours later
Stream Drops
Play Builtin Video loop (please stand by)
Try connecting to URL stream
when connection is successful drop loop and continue to play.

thanks.

Ian
0 Kudos
2 REPLIES 2
bandal
Visitor

Re: Backup video loop if Stream is down

That's what I need. I hope someone posts code to do this.
0 Kudos
TheEndless
Channel Surfer

Re: Backup video loop if Stream is down

I'd think all you need to do is listen for the isRequestFailed() event to start the "stand by" loop, then periodically test the stream using roUrlTransfer.
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
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.