Is there a resource for BackgroundAudioPlayer error codes?
I receive an error code of 0x803a000a when calling Play(). Is it known what this error code is?
I can't find a good list of the error codes and their meanings.
protected override void OnError(BackgroundAudioPlayer player, AudioTrack track, Exception error, bool isFatal)
{
if (isFatal)
{
player.Track = null;
switch (error.Message)
{
case "-2147012889":
//MessageBox.Show("Cannot connect to streaming server.");
break;
case "-2147012696":
MessageBox.Show("No available network connection.");
break;
case "-1072889830":
MessageBox.Show("Cannot find stream.");
break;
case "-2147467259":
//MessageBox.Show("Error. Try again later.");
break;
}
Abort();
}
else
{
player.Track = null;
switch (error.Message)
{
case "-2147012889":
//MessageBox.Show("Cannot connect to streaming server.");
break;
case "-2147012696":
//MessageBox.Show("No available network connection.");
break;
case "-1072889830":
//MessageBox.Show("Cannot find stream.");
break;
case "-2147467259":
//MessageBox.Show("Error. Try again later.");
break;
}
NotifyComplete();
}
}
Hope that helps.