I'm building an audio player for use with a mid-sized (600,000+ tracks) music service that allows playback of albums, songs, playlists, etc. It's all fed from XML requests, and data is fairly easy to manipulate into whatever I need for BrightScript.
That being said, I'm getting frustrated with the roAudioPlayer and its usage, as well as interaction with roSpringboardScreen.
The audio player example source code makes it seem like you should just be able to pass in a list of URLs to playback, but I can't get this to work. I'm also confused as to how you can update the information on the screen (artist, album, title, etc.) when the next item plays - I feel like this information could be updated using the isStatusMessage = "end of stream" option, but the documentation and example mark this as deprecated and yet do not really suggest an alternative. Does anyone have any suggestions?
My goal is to be able to pass my Audio player an array of tracks with [artist, album, title, url, format] (and more information in the future) for each track in my list, specify the index of which track to start on (say the user chooses track 5 instead of track 1) and have the roAudioPlayer play the subsequent tracks and then be able to repeat to the beginning. Any code or examples would be much appreciated.
I know this is somewhat whiny and specific, but it seems that the majority of posts on the forum have to do with video issues and hobbyists trying to build their own UPnP streaming apps - audio and its support on the device seem somewhat of an afterthought. I'd love to see the ability to have larger album art and more information on screen, which I'm hoping will be possible with the new custom screens in the new SDK.
I apologize I can't get into the fine details of the service provider. Any input would be much appreciated!