fortscan
15 years agoVisitor
XML syntax for roArray items (like StreamUrls)
Can anyone confirm what is the correct syntax in order to define the StreamUrls, StreamBitrates, StreamQualities arrays directly at the XML feed?
At ShowFeed.brs from videoplayer example there is a section that seems to pull that info from StreamUrl, StreamBitrate, StreamQuality:
But the correct way of defining this at the XML feed does not seem to be documented...
We have tried several combinations like:
But it doesn't seem to work (perhaps it doesn't create the array...)
A suggestion regarding this would be very appreciated.
Thanks.
At ShowFeed.brs from videoplayer example there is a section that seems to pull that info from StreamUrl, StreamBitrate, StreamQuality:
'media may be at multiple bitrates, so parse an build arrays
for idx = 0 to 2
e = curShow.media[idx]
if e <> invalid then
item.StreamBitrates.Push(strtoi(validstr(e.streamBitrate.GetText())))
item.StreamQualities.Push(validstr(e.streamQuality.GetText()))
item.StreamUrls.Push(validstr(e.streamUrl.GetText()))
endif
next idx
But the correct way of defining this at the XML feed does not seem to be documented...
We have tried several combinations like:
<StreamUrl>http://url1 , http://url2</StreamUrl>
<StreamUrl>"http://url1" , "http://url2"</StreamUrl>
<StreamUrl>"http://url1 , http://url2"</StreamUrl>
But it doesn't seem to work (perhaps it doesn't create the array...)
A suggestion regarding this would be very appreciated.
Thanks.