hi guys,
i'm developing a small roku application. i want to put the device serial number of the client for authorization.
once the user open the xml with device serial , it will check check if that particular serial number exist in our mysql database.
so i want to show it like this
http://www.lazygeekclub.com/lazyvideosroku.php?id=xmlfiles@lazyvideos&deviceid=XXXXX <-- here need to show the roku serial
here is my bright script code
Function livechannel(id as string, title as string)
screenFacade = CreateObject("roPosterScreen")
screenFacade.show()
if id = "1"
UA_trackPageview("/Lazy_Videos_Part_1")
liveurl = "http://www.lazygeekclub.com/lazyvideosroku.php?id=xmlfiles@lazyvideos&deviceid=XXXXX"
else if id = "2"
UA_trackPageview("/Lazy_Videos_Part_2")
liveurl = "http://www.lazygeekclub.com/lazyvideosroku.php?id=xmlfiles@lazyvideos2&deviceid=XXXXX"
this = {
topics: livedata(liveurl)
}
port = CreateObject("roMessagePort")
poster = CreateObject("roPosterScreen")
poster.SetMessagePort(port)
poster.SetBreadcrumbText(title+" Live Channels","")
poster.SetListStyle("arced-landscape")
poster.SetListDisplayMode("photo-fit")
poster.SetContentList(this.topics)
poster.Show()
While True
msg = wait(0, port)
If msg.isScreenClosed() Then
return -1
Else If msg.isListItemSelected()
lang = this.topics[msg.GetIndex()]
livesingle(this.topics[msg.GetIndex()],this.topics,msg.GetIndex())
End If
End While
End Function