Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
axiomy
Visitor

mrss_grid_template.1.0.1 multi playback issue MP4 and HLS

I am doing some testing on the mrss_grid_template.1.0.1 and I would like to be able to play either MP4 or HLS Video. So far I have only gotten it to do one or the other by changing the code in the NWM_MRSS.brs

	xml = CreateObject("roXMLElement")
if xml.Parse(raw)
for each item in xml.channel.item
newItem = {
guid: ValidStr(item.guid.GetText())
streams: []
streamFormat: "mp4"
minBandwidth: 250
'maxBandwidth: 2200
actors: []
categories: []
contentType: "episode"
bookmarkPosition: 0
}

' title
tmp = item.GetNamedElements("media:title")
if tmp.Count() > 0
newItem.title = util.HTMLEntityDecode(ValidStr(tmp[0].GetText()))
newItem.shortDescriptionLine1 = util.HTMLEntityDecode(ValidStr(tmp[0].GetText()))
else
newItem.title = util.HTMLEntityDecode(ValidStr(item.title.GetText()))
newItem.shortDescriptionLine1 = util.HTMLEntityDecode(ValidStr(item.title.GetText()))
end if




if I change "streamFormat: "mp4" to streamFormat: "hls" then it does play hls fine but it disables MP4 playback. All attempts have failed to get it to play both, How would I allow the HLS playback without disabling the MP4 playback?

Any advice would be greatly appreciated.
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!