Forum Discussion

newchannel's avatar
newchannel
Roku Guru
12 years ago

Need only one item on one poster screen

If you only want to have one poster screen whereby the listener can click play or pause and no other leafs or pages, what in the code gets modified to make this happen? I have a channel with an audio only category and video categories. I am trying to modify the code for only the one poster. I have already changed the xml on the server to have only the one audio feed. When I sideload I have to click a category and then click on the next level to get to the audio only.

Theway I want it to work is when channel opens it should be one poster with just the play/pause with the channel graphic on the left of it.

Thank you

3 Replies

  • destruk's avatar
    destruk
    Streaming Star
    I guess what you want to do is when you select an icon from the poster screen list, if that icon/submenu only has one choice, you want it to go directly to the springboard screen with buttons?
    For that, before displaying the poster screen with Show, do a count of the items of content after parsing them - something like if categories.count()=1 then showdetailscreen(categories[0]) should accomplish that, else show the posterscreen and do the wait event loop for the poster screen.
  • Hi,

    Yes, springboard, correct. I'll look thru the code and see if I can locate where to make the changes.

    Thanks a bunch.
  • I took a look at the simplevideoplayer example. Can it be changed so that it plays audio? This example goes directly to a springboard screen which is what I need and I want to use it to play a radio stream and change the "go back" button to be a pause button. I downloaded the example from the following url http://sourceforge.net/projects/rokusdkexamples/files/