Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sunilpawar
Visitor

SpringboardScreen button navigation

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
0 Kudos
5 REPLIES 5
belltown
Roku Guru

Re: SpringboardScreen button navigation

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.
0 Kudos
destruk
Streaming Star

Re: SpringboardScreen button navigation

You should be able to remove the 'back' selection since the user can press UP on any remote to do the same thing.
0 Kudos
TheEndless
Channel Surfer

Re: SpringboardScreen button navigation

You could also make the subscribe button the first button.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
belltown
Roku Guru

Re: SpringboardScreen button navigation

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.
0 Kudos
sunilpawar
Visitor

Re: SpringboardScreen button navigation

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
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.