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: 
zcode7
Visitor

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!
0 Kudos
1 REPLY 1
RokuRobB
Streaming Star

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/
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.