Sub initTheme()
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png" '<<==NORMAL WAY TO SET IMAGES
theme.OverhangLogoSD = <WHAT URL FORMATTING GOES HERE??>
app.SetTheme(theme)
End Sub
"brocker" wrote:
I was actually trying to offload as many images as I could as I read there is a limitation to what can be saved to the Roku, and they suggested hosting them elsewhere if you have a bunch (which I will). I already got a couple of warnings when side loading the project that I'm going over on size.
I had our graphic artist go through and make images as per dimensional guidelines, now was hoping to host them at BrightCove.
Thanks
Bud
"brocker" wrote:Some good advice from the other posters, and here's some example code
Hi all,
What is the proper syntax for calling a image file that is not hosted within the project? I know in the example projects there are images in folders, but if I want to link to one that's hosted at BrightCove, what would be the proper way to do that?
ABBREVIATED EXAMPLESub initTheme()
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png" '<<==NORMAL WAY TO SET IMAGES
theme.OverhangLogoSD = <WHAT URL FORMATTING GOES HERE??>
app.SetTheme(theme)
End Sub
I tried several different combinations and they all didn't seem to work.
Thanks
Bud
http = CreateObject("roUrlTransfer")
http.SetPort(CreateObject("roMessagePort"))
http.SetUrl("http://yourserver.com/yourpath/yourimage.png")
http.GetToFile("tmp:/yourimage.png")
"stratcat96" wrote:It *could* be coded to have fall back files in the package, if the hosted ones are unavailable."brocker" wrote:
I was actually trying to offload as many images as I could as I read there is a limitation to what can be saved to the Roku, and they suggested hosting them elsewhere if you have a bunch (which I will). I already got a couple of warnings when side loading the project that I'm going over on size.
I had our graphic artist go through and make images as per dimensional guidelines, now was hoping to host them at BrightCove.
Thanks
Bud
Those theme files should be so small in size that really it's not worth going to the trouble of keeping it out of the package. If you were even able to put all image data off-site, if the channel were to have connection issues, or the box itself had connection issues when the user opened it, only a skeleton-like frame would show in the channel and kind of look crappy if you know what I mean.
"gonzotek" wrote:"stratcat96" wrote:It *could* be coded to have fall back files in the package, if the hosted ones are unavailable."brocker" wrote:
I was actually trying to offload as many images as I could as I read there is a limitation to what can be saved to the Roku, and they suggested hosting them elsewhere if you have a bunch (which I will). I already got a couple of warnings when side loading the project that I'm going over on size.
I had our graphic artist go through and make images as per dimensional guidelines, now was hoping to host them at BrightCove.
Thanks
Bud
Those theme files should be so small in size that really it's not worth going to the trouble of keeping it out of the package. If you were even able to put all image data off-site, if the channel were to have connection issues, or the box itself had connection issues when the user opened it, only a skeleton-like frame would show in the channel and kind of look crappy if you know what I mean.
"stratcat96" wrote:True, if the purpose is space-saving. I was thinking of dynamic theming. And wouldn't really be that much work.
it could, but then that's defeating the intended purpose of moving images out of the package and only saves the space difference between the two sets of images, and adds to the work