Forum Discussion

lock_4815162342's avatar
lock_4815162342
Channel Surfer
12 years ago

XML Stream Reference/VideoPlayer Template

I am going through the video player template provided by roku. I am able to make many changes including the number of categories, images and descriptions. My problem is that when I reference any stream other than the Ted Talk videos, they will not play. Even the bunny video and 'bing bop' included in the Simple Video player. I have tried changing the stream format to hls on my xml file. That dosent work either. I have Mp4 files on a file server. Am I supposed to reference those files for my stream URL or do I need to create an html file with a player in it? Do I need to change the brightScript code in the template to read the XML files? Below is a sample of what I am trying to do.

<item sdImg="http://rokudev.roku.com/rokudev/examples/videoplayer/images/ImogenHeap.jpg" hdImg="http://rokudev.roku.com/rokudev/examples/videoplayer/images/ImogenHeap.jpg">
<title>Imogen Heap plays 'Wait It Out'</title>
<contentId>10033</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>
http://s3.amazonaws.com/innova_secure/t ... LapVid.mp4
</streamUrl>
</media>
<synopsis>
Imogen Heap's aching voice and spectral electronics infuse countless films and iPods with bone-chilling atmospherics.
</synopsis>
<genres>Music</genres>
<runtime>238</runtime>
</item>


Thank you so much for taking the time to read this. ANY help is greatly appreciated.

5 Replies

  • First of all, videoplayer and simplevideoplayer are note templates, they are examples. Many people choose to use them as templates to bypass the process of creating a channel from scratch, which means you have to adapt everything to work with the channel, instead of creating something that was designed from the ground up to work the way you wish.

    I don't see anything wrong with the sample you posted, but perhaps you've changed something else somewhere that is causing an issue.

    We don't support HTML and you don't need an HTML file with a player in it - referencing the file url on your S3 as you've done below should be sufficient, I'm assuming that your XML files live on your server and are referenced in your categoryfeed xml file, also on your server?

    By the way, if you post XML or other code to the forum, be sure to wrap it in the Code forum tag to make it more readable. XML should also be properly indented so humans can read it easily.

    - Joel
  • Thank you so much for taking the time to try and help me.

    The XML files are on the server and are being seen. I know because I can change the stream to another TED video. and I can also change the other elements of the XML and see the results. However, I am unable to play any video other then the TED videos.

    Should I be able to use the videoPlayer example and add my url to the XML file and it work without making changes to the brightScript?(excluding the categoryFeedUrl)


    Can you give me a url to a stream that I should be able to reference, other than the TED videos?

    Thank you for your help
  • I should note that I am able to play my videos in the simpleVideoPlayer but not the videoPlayer example.