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: 
matrixebiz
Roku Guru

RSG Channel wrap icons horizontally down on screen

Hello, I'm hoping this is an easy change but I am using the Roku SG template here - https://github.com/rokudev/videoplayer-channel and I am looking to find out if on the clips screen "The Screen after clicking on a category" if you can have the clips auto wrap horizontally on the screen?

For example, after clicking on 'Entertainment' from the "The Categories Screen" which then loads https://devtools.web.roku.com/videoplayer/xml/music.xml there are 4 clips in it. Only 3 fit on the screen horizontally and you have to scroll over to the right to see the forth clip. So if you have 30 clips then you have to scroll all the way, so I am hope there is an option in the code to just have the clips wrap the screen? I am fine with scrolling down to see the extra clips. Thank you

EDIT: Do I have to add a RowList command like (rowFocusAnimationStyle) somewhere?- https://sdkdocs.roku.com/display/sdkdoc ... LComponent
0 Kudos
5 REPLIES 5
matrixebiz
Roku Guru

Re: Hope simple change to wrap channel clips

Not sure if there are any coders here on the Forum but just wondering if this is possible to do? Thanks
0 Kudos
renojim
Community Streaming Expert

Re: Hope simple change to wrap channel clips

I took a glance at the example code, but I'm just getting into SG myself, so I didn't want to try to give a definitive answer.  That being said, I don't think what you want to do is possible with a RowList.  If you're wanting to have separate categories on one screen the way they do ("Global Issues" with a bunch of videos, "The Mind" with a bunch of videos, etc.) then I think you're out of luck.  You could eliminate the row title labels and have multiple rows with only a few videos in each row, but I think the counter for each row would start at 1, although you could turn off the row counter entirely.

You might want to look into a PosterGrid, but that wouldn't be an easy change for this example.  They probably have another example that uses something other than RowList.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
matrixebiz
Roku Guru

Re: Hope simple change to wrap channel clips

Hi JT, thanks for responding, is it possible to have multiple <feed>'s in one XML list file? Will that start a new line for every feed?
So if I wanted to have 3 videos on one line then can I do?,
EDIT: This option does not work 😞
EG:

<feed>
  <resultLength>3</resultLength>
  <endIndex>3</endIndex>
      <item ---------
      </item>
      <item ---------
      </item>
      <item ---------
      </item>
</feed>
<feed>
  <resultLength>3</resultLength>
  <endIndex>3</endIndex>
      <item ---------
      </item>
      <item ---------
      </item>
      <item ---------
      </item>
</feed>
0 Kudos
renojim
Community Streaming Expert

Re: Hope simple change to wrap channel clips

I can't say that I follow the code and all the XML feeds enough to offer any advice. This SG stuff makes it damn near impossible to follow someone else's code. :evil: I'd say just try it and see what happens. I suspect it will only take the first <feed> entry and ignore the rest.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
matrixebiz
Roku Guru

Re: Hope simple change to wrap channel clips

Is there anyone familiar with this RSG channel Template that can show me how to have the video icons wrap the screen if there are too many to fit horizontally when loaded from the Feed XML file.
Thank you
0 Kudos