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: 
lhgrubbs
Channel Surfer

Roku Internet Browser?

Is there anything like a Internet Browser for a Roku Channel? Might there be Wireless Keyboard and Mouse capabilities?
0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: Roku Internet Browser?

No, all the way around.

-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
kavulix
Visitor

Re: Roku Internet Browser?

It could be done but you'd have to be really determined to create a Roku browser that supported html. For starters, you'd need to create a roKeyboardScreen so that users could enter the url they want to load. You would then need to download the page to temporary storage.

url = keyboard.GetText()
ba = CreateObject("roByteArray")
ba.FromAsciiString(url)
digest = CreateObject("roEVPDigest")
digest.Setup("sha1")
digest.Update(ba)
filename = digest.Final()
path = "tmp:/" + filename + ".xml"
http = CreateObject("roUrlTransfer")
http.SetUrl(url)
success = http.AsyncGetToFile(path)

Plain text pages could easily be rendered using a roImageCanvas screen. XML feeds like rss, atom, mrss could easily be rendered using a combination of Roku components/screens. It's only when you start trying to render html that you're going to run into problems. The only way to display a html page while preserving all of the formatting on a Roku screen would be to take a screenshot of the page from your server and then return the screenshot url. The image could then be displayed using roImageCanvas. You might be able to use the browsershots code to accomplish this but like I mentioned above, you'd have to be really determined and invest a ton of time into this to make it work.

http://code.google.com/p/browsershots/source/checkout

Regarding the wireless keyboard/mouse, you can create your own wireless keyboard using the external control protocol. You could develop a keyboard application that issued commands to your Roku box which would enable any wi-fi enabled laptop to become a wireless Roku keyboard.

echo -e 'POST /keypress/Home HTTP/1.1\r\n\r\n' | ncat 192.168.x.x 8060
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.