Windows Phone 7.1 BackgroundAudioPlayer错误代码(0x803a000a)

时间:2012-08-20 09:54:02

标签: windows-phone-7.1 windows-phone

是否有BackgroundAudioPlayer错误代码的资源?

调用Play()时收到错误代码0x803a000a。知道这个错误代码是什么吗?

我找不到错误代码及其含义的良好列表。

1 个答案:

答案 0 :(得分:1)

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();
    }

}
  • “ -​​ 2147012889”80072EE7无法找到服务器(例如手机处于飞行模式)
  • “ -​​ 2147012696”80072FA8没有可用的网络连接
  • “ -​​ 1072889830”C00D001A无法找到媒体文件(例如,您指向的MP3文件已不在服务器上)
  • “ -​​ 2147467259”80004005非特定错误代码

希望有所帮助。