I'm trying to make a small radius with the AudioPlaybackAgent
as Microsoft show in their Samples In the sample we have a list of adudios:
private static List<AudioTrack> _playList = new List<AudioTrack>
{
new AudioTrack(new Uri("http://000.000.000.000/radio1.mp3", UriKind.Absolute),
"Radio 1", null, null, null, null, EnabledPlayerControls.Pause),
new AudioTrack(new Uri("http://000.000.000.000/radio2.mp3", UriKind.Absolute),
"Radio 2", null, null, null, null, EnabledPlayerControls.Pause)
};
And here I would play the tracks:
private void PlayTrack(BackgroundAudioPlayer player)
{
player.Track = _playList[VARIABLE];
}
On "VARIABLE" I want to put a variable that change depending the page I open in the main project. How I can do it? I tried a lot of things without exit. Thnks!!