Hi
I have SpringboardScreen with three button and poster of video
Buttons are like
Button Index : Title
0 : Preview for 2 minutes
1 : Subscribe to channel
2 : Back
By default “Preview for 2 minutes” button is selected
is it possible: after watching the 2 minute preview (control get back to springboard screen ), “Subscribe to channel” button should be focused/selected.
Thanks
Sunil
I don’t know if you can do that easily on an roSpringboardScreen. There is a SetDefaultMenuItem function that allows you to select which button to highlight on an roParagraphScreen, but it doesn’t seem to be implemented in roSpringboardScreen.
There is a discussion in http://forums.roku.com/viewtopic.php?f=34&t=45203&p=307134#p307053 of how to do this using the ECP.
You should be able to remove the ‘back’ selection since the user can press UP on any remote to do the same thing.
You could also make the subscribe button the first button.
Or, when the user returns to the springboard screen after watching the preview, you could redisplay the buttons so you have:
0: Subscribe to channel
1: Watch 2 minute preview again
Then the Subscribe button will be highlighted when they return back to the springboard screen.
EDIT: TheEndless beat me to it.
Thank you very much
I done it using External Control Protocol
Get the IP Address of Roku Device
Function GetRokuLocalIP() As String
print "---GetRokuLocalIP---"
For Each key in m.ips
ipAddress = m.ips[key]
if ipAddress <> invalid and ipAddress.len() > 0 then
return ipAddress
end if
Next
Return ""
End Function
ip = GetRokuLocalIP()
ecp_url = "http://" + ip + ":8060/keypress/Down"
print "ecp_url " ; ecp_url
req = CreateObject("roUrlTransfer")
request.SetUrl(ecp_url)
request.PostFromString("")
Sunil