Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
guidamedia2
Visitor

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?
Tags (1)
0 Kudos
2 REPLIES 2
RokuChris
Roku Employee
Roku Employee

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.
Tags (1)
0 Kudos
TheEndless
Channel Surfer

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)
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!