Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
IanHStewart
Level 7

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
Level 8

Re: Backup video loop if Stream is down

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

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