Forum Discussion

ioan's avatar
ioan
Roku Guru
15 years ago

"Details Screen" questions

I'm making a private channel for my PVR. So far everything works fine, but I want to make it a little better. How do I flip the poster to be landscape (see the picture)?

4 Replies

  • The poster orientation on the springboard depends on the value of the contentType attribute of your content-meta-data object. Setting it to "episode" should do what you want. Other possible values are called out in section 3.3 of the Component Reference. roSpringboardScreen also has a SetPosterStyle() method for overriding those defaults, documented on p45 of the same document.
  • I'm trying to get the poster to display in portrait orientation.
    I've tried all the available ContentTypes in my XML file, but they don't seem to have any effect, it always stays with the landscape as came with the videoplayer example.
    ie <ContentType>episode</ContentType>
    <ContentType>movie</ContentType>


    By inserting this line around line 11 of my appDetailScreen.brs, I'm able to get the "multiple" style where it looks like there are a stack of images with mine on top
     screen.SetPosterStyle("multiple-portrait-generic")


    I tried varying other meta data values and the changes appeared immediately, so I know I'm working with the correct file. Can anyone tell me why the ContentType in my meta data has no effect?
  • Answered my own question (sort of) -

    In showFeed.brs I had to change the line
    item.ContentType = "episode"
    to
    item.ContentType = "movie"

    now I see the single image like I had hoped. Although I wonder why my meta data didn't take care of this, since this section says
    'Set Default screen values for items not in feed
    ?

    Anyway, hope i'm not clogging up the forum with my dumb questions & answers; maybe this might help someone else?
  • destruk's avatar
    destruk
    Streaming Star
    I still think the only dumb question is the one that's not asked. 🙂