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?
'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
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.
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?
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.
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)?
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.
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.
“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.
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?
If you go into the Soundcloud section, and play a track, one logo is the waveform display which overlays the graphic-background, and the other logo is the thing that moves.This is only relevant because it works, and because I intend to post the working code for you as soon as I can.