zcode7
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2012
07:56 AM
Playlist with Pandora-like functionality
I'm planning on setting up a playlisting aspect of my app with tracks fetched from a Google Doc CSV (Title, Artist, URL to cover art, URL to MP3).
I'd like to create a Pandora-like functionality in that somebody clicks to start the playlist and the first songs begins. They can skip to the next song easily, and after the song is over it goes to the next song. If they press the back button, they'll be taken to a list of songs on the playlist.
Any ideas of where there's a code example of this? Or can someone point me in the right direction in the documentation?
Thanks for any help!
I'd like to create a Pandora-like functionality in that somebody clicks to start the playlist and the first songs begins. They can skip to the next song easily, and after the song is over it goes to the next song. If they press the back button, they'll be taken to a list of songs on the playlist.
Any ideas of where there's a code example of this? Or can someone point me in the right direction in the documentation?
Thanks for any help!
1 REPLY 1

RokuRobB
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2012
02:50 PM
Re: Playlist with Pandora-like functionality
Audio playback is implemented using the roAudioPlayer component:
http://sdkdocs.roku.com/display/RokuSDK ... udioPlayer
You can set up a playlist with the SetContentList function. Skipping ahead or back can be accomplished by handling the appropriate remote control key press. Have a look here for details:
http://sdkdocs.roku.com/display/RokuSDK ... ntrolEvent
Rendering the playlist text sort of depends on the kind of UI you want. Building a custom look and feel for this can be done with roImageCanvas. See:
http://sdkdocs.roku.com/display/RokuSDK ... mageCanvas
and
http://blog.roku.com/developer/2012/09/ ... ge-canvas/
http://sdkdocs.roku.com/display/RokuSDK ... udioPlayer
You can set up a playlist with the SetContentList function. Skipping ahead or back can be accomplished by handling the appropriate remote control key press. Have a look here for details:
http://sdkdocs.roku.com/display/RokuSDK ... ntrolEvent
Rendering the playlist text sort of depends on the kind of UI you want. Building a custom look and feel for this can be done with roImageCanvas. See:
http://sdkdocs.roku.com/display/RokuSDK ... mageCanvas
and
http://blog.roku.com/developer/2012/09/ ... ge-canvas/