Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ezoolander
Visitor

Simple Video Player Example - Mixed Media

Hi -

I'm doing some testing using the Simple Video Player example...and I have a channel that has mixed media formats (mp4, m4v, m4a and mp3). It appears to work very well with everything but MP3 (I'm thinking probably because it's designed to be purely a video player?)

The XML I have for the MP3 item generally looks like this...

<item sdImg="http://rokudev.roku.com/rokudev/examples/videoplayer/images/JimFallon.jpg" hdImg="http://rokudev.roku.com/rokudev/examples/videoplayer/images/JimFallon.jpg">
<title>My Song</title>
<contentId>2093</contentId>
<contentType>audio</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp3</streamFormat>
<streamBitrate>128</streamBitrate>
<streamUrl>
http://www.myurl.com/file/debug/audio/Mother.mp3
</streamUrl>
</media>
<synopsis>Just a song</synopsis>
<genres>Clip</genres>
<runtime>335</runtime>
</item>

First - is there something wrong with my item tags? If not - is my supposition correct that the video player example is only meant to handle video? If so - how do I go about adding an additional media type to it so it will support mp3s as well?

Thanks!
0 Kudos
4 REPLIES 4
ezoolander
Visitor

Re: Simple Video Player Example - Mixed Media

For the record - that's not a REAL url that I'm pointing to in what I just posted. The legit URL in the feed is a real MP3. I just put that there for illustrative purposes.
0 Kudos
uarlive
Visitor

Re: Simple Video Player Example - Mixed Media

I would suggest taking a look at the audioplayer sample. You can integrate the audio player functionality into the video player example. You may want to take at look at this post viewtopic.php?f=34&t=45561&p=330653&hilit=mrss+audio#p330653. It uses the mrss template to parse audio and video.

Hope this helps.
0 Kudos
ezoolander
Visitor

Re: Simple Video Player Example - Mixed Media

Thanks for the response! 🙂

Quick question - because I'm a total noob at this (just started messing with the ROKU system 2-3 days ago) - when I attempt to install the MRSStemplate example archive on to the ROKU from the sdk - it fails. I get a:

Install Failure: Compilation Failed.

response. None of the rest of the examples have failed. Any idea how to fix that?
0 Kudos
uarlive
Visitor

Re: Simple Video Player Example - Mixed Media

0 Kudos