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

Specifying HD/SD thumbnails in MRSS

I don't understand how to specify multiple thumbnails (HD and SD) for a single <item> in my MRSS feed. I'm using <media:thumbnail url="xxxx.jpg" /> to call one thumbnail for each <item>; what's the syntax to call multiple, thumbnails (one HD, the other SD) for a single <item>?

I'm using Roku's MRSS template; I'm aware of that snippet (below) in NWM_MRSS.brs calls the thumbnails from the MRSS feed, but I don't understand how to specify "newItem.sdPosterURL" and "newItem.hdPosterURL" in my MRSS file.


' thumbnail
tmp = item.GetNamedElements("media:thumbnail")
if tmp.Count() > 0
newItem.sdPosterURL = ValidStr(tmp[0]@url)
newItem.hdPosterURL = ValidStr(tmp[0]@url)
else if item.GetNamedElements("media:group").Count() > 0
tmp = item.GetNamedElements("media:group")[0].GetNamedElements("media:thumbnail")
if tmp.Count() > 0
newItem.sdPosterURL = ValidStr(tmp[0]@url)
newItem.hdPosterURL = ValidStr(tmp[0]@url)
end if
else if xml.channel.image.url.Count() > 0
newItem.sdPosterURL = ValidStr(xml.channel.image.url.GetText())
newItem.hdPosterURL = ValidStr(xml.channel.image.url.GetText())
end if


I'm sure this is a beginner's question; thanks for the help.
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.