Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
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?
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.
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)
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.