guidamedia2
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
08:33 AM
Custom Channels
I have a channel that accesses our enormous video library, and rather than just promote one channel with access to them all, we are going to publish niche channels that will filter the results based on that channels topic.
Right now I am managing 3 channels, same code, except for the appMain.brs file, where a few variables determine the content the Roku gets, plus the different manifests.
Does anyone have a great solution for being able to only manage one set of code?
Right now I am managing 3 channels, same code, except for the appMain.brs file, where a few variables determine the content the Roku gets, plus the different manifests.
Does anyone have a great solution for being able to only manage one set of code?
2 REPLIES 2


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
09:40 AM
Re: Custom Channels
Not sure if this will solve your problem, but two things come to mind.
First, use a software versioning system to manage the code. This is something you should be doing anyway, but it can be especially helpful when you have multiple flavors of the same channel. I prefer svn, but there are plenty of free options out there.
Secondly, instead of setting up your content variables in code, put them in a config file and read it in at launch. You still have to manage the config file, but that's less risky than making code changes for each variant of the channel.
First, use a software versioning system to manage the code. This is something you should be doing anyway, but it can be especially helpful when you have multiple flavors of the same channel. I prefer svn, but there are plenty of free options out there.
Secondly, instead of setting up your content variables in code, put them in a config file and read it in at launch. You still have to manage the config file, but that's less risky than making code changes for each variant of the channel.

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
10:27 AM
Re: Custom Channels
Another option would be to read in the channel information from the manifest at runtime and pass the pertinent information (ex. channel name) to the server when you query for the data. Then you could filter content based on the manifest which you have to change per channel regardless, while using the exact same codebase.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)