This project has moved and is read-only. For the latest updates, please go here.

How to load a specific track from the playlist

Sep 1, 2014 at 3: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?

Anyone?
Coordinator
Sep 1, 2014 at 5: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 8:37 PM
Edited Sep 5, 2014 at 9: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 1:07 AM
Edited Feb 12, 2015 at 12:54 AM
🙋