Forum Discussion
Thank you Phlume for providing such detailed information.
I have a DP channel I am converting and my json has categories and at the bottom of the json are playlists that use the content ID's of the content I wanted to display on each row.
If I understand correctly, for each row of content aka "category" I want displayed, I have to go to the RootHandlerBRS line 100 and type a "if item =" for each row/category name that I want to see listed? Is this correct?
I wish there was a way for it to pull info from the playlists in the json so I don't have to rewrite the json feed.
Regardless, I do appreciate what you have added to the forum. Going to see what I can do to get my channel converted over.
Thank you.
newchannelyes, in part. There is still more to do after adjusting line 100, but this is needed as well.
If you have a category names "Snakes" then you will need:
Line 100 (RootHandler):
if item = "snakes" ...
In your JSON:
...
"Snakes": [
{
"id" ....,
"title" "Snakes"
...
}
],
...
In DetailsViewlogic.brs you need to adjust line 24 to include 'snakes':
...
sub OnDetailsContentSet(event as Object)
btnsContent = CreateObject("roSGNode", "ContentNode")
if event.GetData().TITLE = "series"
btnsContent.Update({ children: [{ title: "Episodes", id: "episodes" }] })
elseif event.GetData().TITLE = "Snakes"
btnsContent.Update({ children: [{ title: "Episodes", id: "episodes" }] })
...
- newchannel2 years agoRoku Guru
Thank you again.
I was able to take my live stream and make it a category since there is the option of "liveFeeds" listed already in the RootHandler.
Next I will attempt to add my additional categories.
Plus, I need to change the order. The channel opens with series, shortform, movies and live and I need to look further to see how to move these around so that the live is first.
- newchannel2 years agoRoku Guru
Got the Live TV category working. But, how do you move the categories around? Let's say for example I want Live TV to be the first row and Movies to be the second row. What controls the order of the rows?
Thank you.
- newchannel2 years agoRoku Guru
The 500 kb feed limit.... I'm now wondering if this will be a problem. If yes, then I read Roku SDK needs to be used and not the rdp to scenegraph example. Guess I'll look for an sdk example to review.
Also, "series" shows up first and not sure how to move it further down. I can make new categories but can't put them in the right order I want.
Can anyone provide info on these 2 thoughts?