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

2 styles in same file

How to add 2 styles in same file? I want to look different depending on the streamtype,

i want: hls = screen.SetDescriptionStyle("video") and another type like mkv,mp4 = screen.SetDescriptionStyle("movie")

I tried with:

if item.StreamFormat = "hls" then
screen.SetDescriptionStyle("video")
endif

and too with:


if regread(show.streamformat) <> invalid and regread(show.streamformat) <> "hls" then
screen.SetDescriptionStyle("movie")
else
screen.SetDescriptionStyle("video")
endif

but that didn't worked, any suggestions?

thanks in advance 😞
0 Kudos