Forum Discussion

jorgeantwan's avatar
10 years ago

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 😞
No RepliesBe the first to reply