axiomy
11 years agoVisitor
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
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.
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.