RyanMarquiste
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011
01:57 PM
Web Server
It appears there is a lightweight web server built into the Roku, because the developer page runs off of this.
It would be useful, to at least some programs, to be able to serve pages out via this web server. I'm mainly thinking in terms of simple form pages to get information from the user via computer or mobile device. These simple forms could then save the results to a local file or the registry to be accessed by BrightScript. I realize all of this can be done by setting up an external server, but it would simplify things quite a bit to be able to do it all locally.
Trying to keep the idea fairly open right now. Maybe the page is only accessible while the channel is open? Perhaps some BrightScript code is required to make it available? Maybe it is accessible via http://address/vanity?
It would be useful, to at least some programs, to be able to serve pages out via this web server. I'm mainly thinking in terms of simple form pages to get information from the user via computer or mobile device. These simple forms could then save the results to a local file or the registry to be accessed by BrightScript. I realize all of this can be done by setting up an external server, but it would simplify things quite a bit to be able to do it all locally.
Trying to keep the idea fairly open right now. Maybe the page is only accessible while the channel is open? Perhaps some BrightScript code is required to make it available? Maybe it is accessible via http://address/vanity?
4 REPLIES 4


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011
02:25 PM
Re: Web Server
You could probably accomplish something similar with the new socket features in 3.0.
RyanMarquiste
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011
03:02 PM
Re: Web Server
In section 3.5 of the ExternalControlGuide.pdf the following is listed:
I don't see this file in the /examples/source directory. Could I get a copy of it?
The SDK includes a sample External Control Protocol application that requires only glibc to compile. The program is self contained in the /examples/source/rokuExternalControl.c file of the SDK. You can compile and run it with the following commands:
% cd <SDK Directory>
% gcc /examples/source/rokuExternalControl.c –o rokuExternalControl
% ./rokuExternalControl
On Windows, it can be compiled with the following line:
% cl /D "WIN32" rokuExternalControl.c
I don't see this file in the /examples/source directory. Could I get a copy of it?
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011
03:43 PM
Re: Web Server
It's in the examples directory, not examples/source.
-JT
-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.
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.
RyanMarquiste
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011
03:48 PM
Re: Web Server
"renojim" wrote:
It's in the examples directory, not examples/source.
Thanks! There just as you said.
Ryan