How to load a specific track from the playlist

Sep 1, 2014 at 2:54 PM
I'm using BackgroundAudio.Sample.WP8

How do I make a button play a specific track from the playlist?

The playbutton always goes to the next track in the playlist, but I want to stream a specific one?

Sep 1, 2014 at 4:18 PM
Take a look at AudioPlayer.cs's UpdateTrack(). It is where the track is updated when the play button is pressed (through the UserAction.Play case in OnUserAction()). The default just makes sure that the track is set to something, but you should be able to customize it to do what you need.
Marked as answer by sjuust on 9/4/2014 at 12:40 PM
Sep 4, 2014 at 7:37 PM
Edited Sep 5, 2014 at 8:56 AM
Thanks, I'm playing a custom stream now when clicking a button. Now I want to change the 'txtTrack' text so that is doesn't start with "Track:" but with "Radiostation:"

Is that possible?

..already got it.. It's in the UpdateState()

Feb 8, 2015 at 12:07 AM
Edited Feb 11, 2015 at 11:54 PM