Your Digital Media Has Never Looked So Good

 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

OverhangSecondaryLogoHD will not display...

Fri Jan 06, 2012 5:26 pm

I am pulling my hair out trying to get the secondary logo to show up on any screen. I even took the sample "paragraph" app which comes with the SDK.

I modified the initThem() function as shown below. The changes I made to the position of the primary logo worked. But adding the secondary logo does nothing. No matter what I do, it refuses to display.

Does anyone have any example of a secondary logo showing? Is this actually working, or is it a bug?


Sub initTheme()

app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")

theme.OverhangOffsetSD_X = "72"
theme.OverhangOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

'commented this section out
'theme.OverhangOffsetHD_X = "123"
'theme.OverhangOffsetHD_Y = "48"
'theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
'theme.OverhangLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

'adding new section here
theme.OverhangPrimaryLogoOffsetHD_X = "123"
theme.OverhangPrimaryLogoOffsetHD_Y = "78" 'primary logo shows up in new Y position
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangPrimaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

theme.OverhangSecondaryLogoOffsetHD_X = "323" 'secondary logo does not show up
theme.OverhangSecondaryLogoOffsetHD_Y = "48"
theme.OverhangSecondaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"
'end of new section

app.SetTheme(theme)

End Sub
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: OverhangSecondaryLogoHD will not display...

Fri Jan 06, 2012 8:09 pm

I'm pretty sure you have to define both an HD and SD logo. Try adding an OverhangSecondaryLogoSD as well, and see if that works.
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)
 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

Re: OverhangSecondaryLogoHD will not display...

Fri Jan 06, 2012 8:45 pm

No dice:


Sub initTheme()

app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")

theme.OverhangPrimaryLogoOffsetSD_X = "72"
theme.OverhangPrimaryLogoOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangPrimaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangSecondaryLogoOffsetSD_X = "123"
theme.OverhangSecondaryLogoOffsetSD_Y = "25"
theme.OverhangSecondaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangPrimaryLogoOffsetHD_X = "123"
theme.OverhangPrimaryLogoOffsetHD_Y = "78"
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangPrimaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

theme.OverhangSecondaryLogoOffsetHD_X = "323"
theme.OverhangSecondaryLogoOffsetHD_Y = "48"
theme.OverhangSecondaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

app.SetTheme(theme)

End Sub
 
belltown
Posts: 1465
Joined: Thu Dec 09, 2010 1:43 pm
Contact:

Re: OverhangSecondaryLogoHD will not display...

Fri Jan 06, 2012 10:20 pm

Could it be that one logo is overlapping the other, overwriting it so that you only see the first logo? For example the file, Logo_Overhang_Roku_SDK_SD43.png in the sample paragraph app is 149x45 pixels. You're placing the primary logo at x=72, so it will extend from x=72 to x=221 (149+72). Then you're placing the secondary logo at x=123, which is in the display area of the primary logo. Try resizing the images or placing them so they don't overlap.
https://github.com/belltown/
 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

Re: OverhangSecondaryLogoHD will not display...

Fri Jan 06, 2012 10:49 pm

Still no dice:



Sub initTheme()

app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")

theme.OverhangPrimaryLogoOffsetSD_X = "72"
theme.OverhangPrimaryLogoOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangPrimaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangSecondaryLogoOffsetSD_X = "250"
theme.OverhangSecondaryLogoOffsetSD_Y = "25"
theme.OverhangSecondaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangPrimaryLogoOffsetHD_X = "123"
theme.OverhangPrimaryLogoOffsetHD_Y = "78"
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangPrimaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

theme.OverhangSecondaryLogoOffsetHD_X = "375"
theme.OverhangSecondaryLogoOffsetHD_Y = "48"
theme.OverhangSecondaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

app.SetTheme(theme)

End Sub
 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

Re: OverhangSecondaryLogoHD will not display...

Sat Jan 07, 2012 6:58 pm

Does anyone have an example of an initTheme() function that displays a secondary logo?
 
jbrave
Posts: 716
Joined: Mon Mar 22, 2010 3:00 pm
Location: Ben Lomond, CA
Contact:

Re: OverhangSecondaryLogoHD will not display...

Sat Jan 07, 2012 9:50 pm

I think this one of mine works for that purpose:

Sub InitTheme()
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")

'the background image at top of screen
theme.OverhangSliceSD = "pkg:/images/Overhang_Background_SD.jpg"
theme.OverhangSliceHD = "pkg:/images/Overhang_Background_HD.jpg"

theme.OverhangLogoSD  = "pkg:/images/Overhang_Logo_SD.png"
theme.OverhangLogoHD  = "pkg:/images/Overhang_Logo_HD.png"

'affects overhang primary logo
theme.OverhangOffsetSD_X = "0"
theme.OverhangOffsetSD_Y = "0"
theme.OverhangOffsetHD_X = "0"
theme.OverhangOffsetHD_Y = "0"


theme.OverhangPrimaryLogoHD_X="0"
theme.OverhangPrimaryLogoHD_Y="0"

theme.OverhangPrimaryLogoSD_X="0"
theme.OverhangPrimaryLogoSD_Y="0"


theme.OverhangSecondaryLogoHD_X="0"
theme.OverhangSecondaryLogoHD_Y="0"

theme.OverhangSecondaryLogoSD_X="0"
theme.OverhangSecondaryLogoSD_Y="0"

theme.overhangSecondaryLogoSD="pkg:/images/Overhang_Logo_SD.png"
theme.overhangSecondaryLogoHD="pkg:/images/Overhang_Logo_HD.png"
 
theme.filterbannerSliceSD="pkg:/images/overhangsliceSD.jpg"
theme.filterbannerSliceHD="pkg:/images/overhangsliceHD.jpg"

theme.BackgroundColor="#101010"

theme.FilterBannerInactiveColor="#A0A0A0"  '111111
theme.FilterBannerActiveColor ="#D0D0D0"
theme.FilterBannerSideColor="#F0F0F0" 'color of not-selected active banner

theme.FilterBannerActiveSD="pkg:/images/buttonSliceSD.jpg"
theme.FilterBannerActiveHD="pkg:/images/buttonSliceHD.jpg"
theme.FilterBannerinActiveSD="pkg:/images/buttonsliceSD.jpg"
theme.FilterBannerinActiveHD="pkg:/images/buttonsliceHD.jpg"

'theme.ButtonNormalColor="#FFFFFF"
'theme.buttonmenuhighlighttext="#F0F0F0"
'theme.ButtonHighlightColor="#005aaf"
'theme.ButtonMenuNormalOverlayText="#F0F0F0"
'theme.PosterScreenLine1Text="#000000"
'theme.PosterScreenLine2Text="#000000"
theme.ButtonMenuNormalText="#e6e6e6"
theme.breadcrumbtextleft="#000000"
theme.breadcrumbtextright="#000000"

theme.OverhangPrimaryLogoOffsetHD_x="0"
theme.OverhangPrimaryLogoOffsetHD_y="0"
theme.OverhangPrimaryLogoOffsetSD_x="0"
theme.OverhandPrimaryLogoOffsetSD_y="0"

theme.OverhangSecondaryLogoOffsetHD_X="0"
theme.OverhangSecondaryLogoOffsetHD_Y="0"

theme.OverhangSecondaryLogoOffsetSD_X="0"
theme.OverhangSecondaryLogoOffsetSD_Y="10"


app.SetTheme(theme)
end sub
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

Re: OverhangSecondaryLogoHD will not display...

Sat Jan 07, 2012 10:49 pm

Thanks for posting that code...but does it really work?

ie: does it actually display both your primary and secondary logos on the TV screen?

I ask because it looks like you are setting the x and y coords to be the same for both the primary and secondary logos, so I don't see how it is possible they can both show up (because they are right on top of each other).

There are also a lot of properties being set in your code which dont' seem to exist in the documentation. For instance:

OverhangPrimaryLogoHD_X and OverhangPrimaryLogoHD_Y are not defined as properties in the Component Reference guide...what are they for?
 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

Re: OverhangSecondaryLogoHD will not display...

Sat Jan 07, 2012 10:56 pm

I think there is a documentation issue here. Even the sample code in the component reference guide is setting theme attributes which are not defined in the document.

Specifically, this sample code in the document:

theme.OverhangOffsetSD_X = "72"
theme.OverhangOffsetSD_Y = "25"

theme.OverhangOffsetHD_X = "123"
theme.OverhangOffsetHD_Y = "48"

Is setting attributes which do not exist anywhere else in the document.

Can someone from Roku please comment on what the proper attribute names are to configure a theme to display a secondary logo (and if there are any specific restrictions on what must be done for it to display)?
 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

Re: OverhangSecondaryLogoHD will not display...

Tue Jan 10, 2012 10:42 pm

Anyone out there?
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: OverhangSecondaryLogoHD will not display...

Tue Jan 10, 2012 11:20 pm

I guess this (viewtopic.php?f=34&t=46690&p=317304#p317202) probably really belonged in this thread...

Looks like there's a firmware bug on the Roku 2 that prevents this from working. The same code that works for displaying a secondary logo on the Roku 1 does not work on the Roku 2.
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)
 
User avatar
RokuJoel
Posts: 1758
Joined: Mon Nov 14, 2011 5:22 pm

Re: OverhangSecondaryLogoHD will not display...

Wed Jan 11, 2012 11:26 am

If you load the channel "Musiclouds" from the channel store you will see that it is in fact working on Roku2. The theme I posted the other day was copied directly from Musiclouds. The only difference is there is a dynamic theme as well using the setthemeattribute which updates the screen position of the moving logo.

Unfortunately, I can't remote to my home machine today, so I can't copy the code for you today, but maybe tonight or tomorrow.

- Joel
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: OverhangSecondaryLogoHD will not display...

Wed Jan 11, 2012 11:41 am

RokuJoel wrote:
If you load the channel "Musiclouds" from the channel store you will see that it is in fact working on Roku2. The theme I posted the other day was copied directly from Musiclouds. The only difference is there is a dynamic theme as well using the setthemeattribute which updates the screen position of the moving logo.

Unfortunately, I can't remote to my home machine today, so I can't copy the code for you today, but maybe tonight or tomorrow.

- Joel

Joel, please try the code I posted in the thread linked in my last post. It works on Roku 1, but not on Roku 2, so there's definitely a bug in there somewhere.
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)
 
User avatar
RokuJoel
Posts: 1758
Joined: Mon Nov 14, 2011 5:22 pm

Re: OverhangSecondaryLogoHD will not display...

Wed Jan 11, 2012 1:00 pm

Tested, verified, bug report filed.

- Joel
 
roquoonewbie
Topic Author
Posts: 131
Joined: Wed Dec 21, 2011 1:02 am

Re: OverhangSecondaryLogoHD will not display...

Wed Jan 11, 2012 1:18 pm

I looked at the Musicclouds app, but don't see a secondary logo on it (on a Roku 2). I see one logo that moves around, but is there supposed to be a second logo?

If not, I am not sure why that channel is relevant to this discussion?

Who is online

Users browsing this forum: No registered users and 12 guests