Hi Presenly Iam adding roPosterScreen Items using a array...
But I want this items to be added from a XML file and also when a menu item is selected we need get the corresponding sub menu item from XML....
screen = CreateObject("roPosterScreen")
categoryList = getCategoryList() //Now this should be from a xml file....
screen.SetListNames(categoryList)
screen.SetIconArray(getShowsForCategoryItem(categoryList[0]))
//below two functions values should be from xml file....
Function getCategoryList() As Object
categoryList = CreateObject("roArray", 10, true)
categoryList = [ "My Channel", "Add Channel","Remove Channel" ]
return categoryList
End Function
Function getShowsForCategoryItem(category As Object) As Object
print "getting shows for category "; category
showList = [
{
ShortDescriptionLine1:"IPL",
ShortDescriptionLine2:"Indian Premier League",
HDPosterUrl:"pkg:/images/ipl.jpg",
SDPosterUrl:"pkg:/images/ipl.jpg"
}
{
ShortDescriptionLine1:"Pop Channel",
ShortDescriptionLine2:"Free Live Video Streaming,Online Broadcasts",
HDPosterUrl:"pkg:/images/popcorn.png",
SDPosterUrl:"pkg:/images/popcorn.png"
}
{
ShortDescriptionLine1:"Roku",
ShortDescriptionLine2:"Roku Sports Channels",
HDPosterUrl:"pkg:/images/roku.png",
SDPosterUrl:"pkg:/images/roku.png"
}
]
return showList
End Function