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: 
dew
Visitor

Remove the star rating on the videoplayer example

Hi can someone tell me how to remove the star rating on the roSpringboard Screen
I found this in the component reference
Void SetStaticRatingEnabled(Boolean isEnabled)
if I remove this code or if I set it to false it will disable the stars but I can not find this code in any of the videoplayer examples files, can someone please point me in the right direction
any help would be most appreciated.
Cheers
DEW
0 Kudos
4 REPLIES 4
bandal
Visitor

Re: Remove the star rating on the videoplayer example

Here is what I did in Videoplayer with the appDetailScreen.brs find this area in the 4.1 SDK files. You have to do this twice screen.SetStaticRatingEnabled(false) that's it.


screen.ClearButtons()
if regread(show.contentid) <> invalid and regread(show.contentid).toint() >=30 then
screen.AddButton(1, "Resume Playing")
screen.AddButton(2, "Play from Beginning")
screen.SetStaticRatingEnabled(false)
else
screen.addbutton(2,"Play")
screen.SetStaticRatingEnabled(false)
end if
screen.SetContent(show)
screen.Show()

End Function
0 Kudos
dew
Visitor

Re: Remove the star rating on the videoplayer example

Hi thank you very much that works great. I have one more question if you can help I need to change the font color on that page. ie. title, genres, synopsis.

I have another thread I started but I have yet had no reply
viewtopic.php?f=34&t=46809

Thanks again for your help
Cheers
DEW
0 Kudos
bandal
Visitor

Re: Remove the star rating on the videoplayer example

There are more but you can start by inserting these into appMain.brs
and playing around to see what works.

theme.BackgroundColor = "#87CEFA"
theme.SpringboardRuntimeColor = "#9400D3"
theme.SpringboardSynopsisColor = "#000000"
theme.SpringboardGenreColor = "#282828"
theme.SpringboardTitleText = "#282828"
theme.FilterBannerActiveColor = "#8E8E8E"
theme.FilterBannerInactiveColor = "#473C8B"
theme.FilterBannerSideColor = "00FF00"
theme.FilterBannerActiveColor = "#FF00FF"
theme.FilterBannerInactiveColor = "#FF00FF"
theme.FilterBannerSideColor = "FF00FF"
0 Kudos
dew
Visitor

Re: Remove the star rating on the videoplayer example

Hi Thanks for your help . It is starting to make sence now.
Cheers
DEW
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.