Ok...so I seem to be running into another syntax error issue and now the channel doesn't show when I install on the Roku Plugin Installation page. Any help would be greatly appreciated! I'm using SDK v29
Debug info (edit):
*** ERROR compiling /pkg:/source/appMain.brs:
Syntax Error. (compile error &h02) in ...SAOhC/pkg:/source/appMain.brs(41)
Syntax Error. (compile error &h02) in ...SAOhC/pkg:/source/appMain.brs(46)
*** ERROR compiling /pkg:/source/appMain.brs:
Syntax Error. (compile error &h02) in ...sQUZM/pkg:/source/appMain.brs(41)
Syntax Error. (compile error &h02) in ...sQUZM/pkg:/source/appMain.brs(46)
appMain.brs
'********************************************************************
'** Video Player Example Application - Main
'** November 2009
'** Copyright (c) 2009 Roku Inc. All Rights Reserved.
'********************************************************************
Sub Main()
'initialize theme attributes like titles, logos and overhang color
initTheme()
'prepare the screen for display and get ready to begin
screen=preShowHomeScreen("", "")
if screen=invalid then
print "unexpected error in preShowHomeScreen"
return
end if
'set to go, time to get started
showHomeScreen(screen)
End Sub
'*************************************************************
'** Set the configurable theme attributes for the application
'**
'** Configure the custom overhang and Logo attributes
'** Theme attributes affect the branding of the application
'** and are artwork, colors and offsets specific to the app
'*************************************************************
Sub initTheme()
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")
theme.BackgroundColor = "#000000"
theme.OverhangOffsetSD_X = "72"
theme.OverhangOffsetSD_Y = "31"
theme.OverhangSliceSD = "pkg:/images/Overhang_KMBackground_SD.png"
theme.OverhangLogoSD =
theme.OverhangOffsetHD_X = "125"
theme.OverhangOffsetHD_Y = "35"
theme.OverhangSliceHD = "pkg:/images/Overhang_KMBackground_HD.png"
theme.OverhangLogoHD =
app.SetTheme(theme)
End Sub