Live Channel Application for Roku using BrightScript Language


Here is an example application for Roku device using the only language for Roku 'BrightScript Language'. The following example needs the HLS stream url : "http://server:port/application/path.m3u8"  to be replaced with your actual HLS streaming url. The following script should be in a file with .brs extension. Create a folder, inside which a 'source' folder should be created and put the .brs file inside the source folder. Now create 'manifest' file with the following contents:




title=Channel Title
subtitle= Channel Subtitle
mm_icon_side_hd=pkg:/images/mm-icon-side-hd.jpg
mm_icon_side_sd=pkg:/images/mm-icon-side-sd.jpg
mm_icon_focus_hd=pkg:/images/mm-icon-focus-hd.jpg
mm_icon_focus_sd=pkg:/images/mm-icon-focus-sd.jpg
splash_screen_hd=pkg:/images/Splash_HD.jpg
splash_screen_sd=pkg:/images/Splash_SD43.jpg
major_version=1
minor_version=0
build_version=00000
Here in the above manifest file I have 'images' folder inside the folder where we have our 'source' folder where all my images reside. And now you are ready to package and publish the application.
For the image specification, please refer sdkdocs of roku at http://wwwimg.roku.com/static/sdk/ChannelChecklist.xlsx


Comments

  1. Great article. For those who live outside US like me, you can access Netflix, Hulu and similar media stations on your Roku by using UnoTelly or similar tools.

    ReplyDelete

Post a Comment

Popular posts from this blog

Automate file upload in Selenium IDE

How To Install and Configure Nextcloud