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

Can Roku do this?

I have a webpage that is dynamically created based on criteria the server says to display. It's not really streaming, but refreshes every 60 seconds or so. Can someone point me in the right direction on making this possible?
0 Kudos
2 REPLIES 2
jbrave
Channel Surfer

Re: Can Roku do this?

It isn't really clear from what you posted exactly what you are trying to accomplish. Do you want a Roku screen that updates every few minutes? Do you want an image that updates every few minutes? As you probably know, a Roku can't really display a web (html) page. Instead, the Roku can take XML data and render that in many different ways. To do something on a timer, one can easily create a timer and perform an action on a regular schedule:

timer=createobject("rotimespan")
timer.mark()

while true
if timer.totalseconds() > 60 then
doMyThing()
timer.mark()
end if
end while
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos

Re: Can Roku do this?

If the server is providing data to the webpage, it should be able to provide data to the Roku as well. You'll probably need the following bits to get this working.

1. Create a timer loop as jbrave mentioned above.
2. Query your server for the data that forms the webpage (XML/images are likely preferred format).
3. Parse the data from the server and render it using BrightScript tools.

As jbrave mentioned, the Roku does not support directly rendering a web page to the screen. You'll need to write your own functionality to display out the contents.
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.