Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
jorgeantwan
Level 7

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 Smiley Sad
0 Kudos