ezoolander
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2012
04:20 AM
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!
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!
4 REPLIES 4
ezoolander
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2012
04:22 AM
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.
uarlive
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2012
07:02 AM
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.
Hope this helps.
ezoolander
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2012
04:44 AM
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?
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?
uarlive
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2012
07:31 AM
Re: Simple Video Player Example - Mixed Media
Search here viewtopic.php?f=34&t=48318