Forum Discussion

ZandzOfTime's avatar
15 years ago

mp4 and <media:content url...

Hello,

I am trying to play video from xml file, server generates a big list media:content url for what appears to be each video. When in videoplayer I send all url's as array it does not play, but if I select url[0] or other it plays. What is the method for passing the urls and bitrate list correctly to the video player. The documentation indicates that one passes an array of video urls and bitrates, but so far it only works when I pass a single video and bitrate for playback.

Also in the qualities field, it looks like one should pass ["SD","HD"] but it only works if I pass a single value ["SD"].

- Zandz
  • show us an example of what the xml is showing, did you make the changes to your showfeed.brs (if you used the video player example)

    also i just posted a working sample you could follow viewtopic.php?f=34&t=37831
  • Ok, i now have it working, I was testing on SD screen and it seemed nothing would play, then out of curiousness I tried on HD, and all videos worked! Then I found some vids actually did work on SD, so I reason that I must detect the resolution and force all qualities to SD if roku is in SD mode, now works on both HD and SD!

    Thanks for the help, this is very not well documented in manuals.

    I also wonder if faster way is possible to get all values from the xml, instead of parse each media:content tag for each video (loop in loop) into associative array for poster then again parse each value into a sparate array for each value of bitrate streamformat quality url ( this is one loop with many arrays! too many arrays!) it is lots and lots of looping and slows down things!

    - Zandz
  • "ZandzOfTime" wrote:
    Thanks for the help, this is very not well documented in manuals.

    Per the roVideoScreen section (4.5) of the component reference:
    "ComponentReference" wrote:
    If the StreamQuality is set to HD, and the user display type is set to SD, the HD stream will not be selected.