Ive seen alot of people making their apps and trying to figure out how to host their video. So here is a step by step FOOL PROOF way to do it!
Download the Mongoose Web Server:
Windows:
http://code.google.com/p/mongoose/downloads/detail?name=mongoose-3.1.exe&can=2&q=LINUX/MAC/Unix:
http://code.google.com/p/mongoose/downloads/detail?name=mongoose-3.1.tgz&can=2&q=Now we will set up the server!
Mac Users skip ahead to mac setup!
WINDOWS SETUPOpen up My Computer and then open up your C:// directory
Create a folder called roku. Inside this Folder create the following folders: videos,music,photos.
place all your videos,music, and photos for your channel/channels in their respective folders!
Now go to Start>all programs>Mongoose Web Server>edit config
Change root C:
to root C:\roku\
Alternativly you can delete everything and copy this code into the document if you have a hard time finding it:
# Mongoose web server configuration file.
# Lines starting with '#' and empty lines are ignored.
# For detailed description of every option, visit
# http://code.google.com/p/mongoose/wiki/MongooseManual
root c:\roku\
ssl_cert C:\mongoose-2.8\ssl_cert.pem
ports 80,443s
access_log c:\mongoose_access_log.txt
error_log c:\mongoose_error_log.txt
# NOTE FOR PHP USERS:
# Correct PHP binary to use is php-cgi.exe, NOT php.exe!
# cgi_interp c:\php\php-cgi.exe
# cgi_interp c:\perl\bin\perl.exe
# cgi_ext cgi,pl,php
# ssi_ext shtml,shtm
# auth_realm mydomain.com
# dir_list no
# index_files index.html,index.htm,index.php,index.cgi
# aliases /my_d_disk=d:\,/my_e_disk=e:\
# acl -0.0.0.0/0,+10.0.0.0/8,+192.168.0.0/16
# admin_uri /remote_admin
# protect /remote_admin=c:\passwords.txt
# cgi_env FOO=BAR,BAZ=POO
# auth_gpass c:\mongoose_global_web_passwords.txt
# auth_PUT c:\mongoose_put_delete_passwords.txt
# ssl_cert ssl_cert.pem
# max_threads 100
# idle_time 10
Save and close.
Now go to Start>all programs>Mongoose Web Server>run in console
Your server is set up and running. Skip down to the finishing up section!
MAC/Linux/UNIXTUTORIAL TO BE POSTED. I HAVE TO LEARN A LITTLE MORE ABOUT LINUX/UNIX AND THEIR FILE SYSTEMS. IF YOU ARE PROFFICIENT IN LINUX/UNIX/MAC OS AND WINDOWS YOU CAN READ THE WINDOWS SETUP SECTION AND CREATE YOUR DIRECTORIES AND EDIT THE CONFIG. HERES THE BASIC LAYOUT:
ROOT>roku
Inside ROOT>roku create a videos,music, and photos folders
Once done edit the config file so that it says ROOt Root\roku\ instead of ROOT root:
Hope that makes sense and helps till i can make a better tutorial for LINUX/Unix users.
FINISHING UPwith your server running here is how you add the files to your channel:
In your Roku channel file the stream link for your video will be: "HTTP://YourIpAddress/videos/NameofYourvideo.mp4"
In your Roku channel file the stream link for your music will be: "HTTP://YourIpAddress/music/Nameofsong.mp3"
In your Roku channel file the stream link for your photo will be: "HTTP://YourIpAddress/photos/NameofYourphoto.jpeg"
HOPE THIS TUTORIAL HAS HELPED!!!
I have a 15mbps connection and i can stream videos and Music VERY fast with very little load times.