Minimum Roku Video Channel


This is a minimum Roku channel that shows up on Roku TV home screen and plays HLS video.

Screen shot: http://riowing.net/p/MiniChannel2.mp4

Folder structure:

source/
main.brs is the only source file, in BrightScript language.
images/
two .png files. one as home screen tile, one as spalash screen when entering channel.
manifest: some meta data such as title and resolution.

A typical channel would have a components/ folder with .xml and .brs files. I moved the essential components into the main.brs file to keep the channel to minimum.
mian.brs: Main() is the entry point to create screen, which in turn creates Scene, which in turn creates Video, which has a ContentNode with HLS URL property.
Installation process: make a zip file and post it to HTTP plugin_install API of the Roku device like so:
curl -v –user “rokudev:YourPassWord” –anyauth -F “mysubmit=Install” -F “archive=@MinimumVideo.zip” “http://192.168.1.8/plugin_install” The IP belongs to the Roku device.
All files can be downloaded from http://riowing.net/p/MinimumVideo.zip

 

Advertisements
Comments are closed.
%d bloggers like this: