如何解决使用 wx.getBackgroundAudioManager 出现的各种错误code ?
发布于 4 年前 作者 jun83 15118 次浏览 来自 官方Issues

能给出一个解决方案嘛?

[
    {
        "res": {
            "errCode": 10001,
            "errMsg": "playerErrCode:9, systemErrCode:1852077119, domain:ASCII OSStatus:ndt?, description:未能完成操作。(“ASCII OSStatus:ndt?”错误 1852077119。)"
        },
        "systemInfo": {
            "benchmarkLevel": 15,
            "system": "iOS 12.4.1",
            "model": "iPhone 7 Plus<iPhone9,2>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    },
    {
        "res": {
            "errCode": 10001,
            "errMsg": "errCode:67, err:decode audio fail"
        },
        "systemInfo": {
            "benchmarkLevel": 34,
            "system": "Android 10",
            "model": "ANA-AN00",
            "version": "7.0.19",
            "brand": "HUAWEI",
            "SDKVersion": "2.13.2",
            "platform": "android"
        }
    },
    {
        "res": {
            "errCode": 10001,
            "errMsg": "VoIP is working"
        },
        "systemInfo": {
            "benchmarkLevel": 30,
            "system": "iOS 12.4",
            "model": "iPhone XS Max China-exclusive<iPhone11,6>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    },
    {
        "res": {
            "errCode": 10001,
            "errMsg": "playerErrCode:9, systemErrCode:1852077119, domain:ASCII OSStatus:ndt?, description:未能完成操作。(ASCII OSStatus:ndt?错误1852077119。)"
        },
        "systemInfo": {
            "benchmarkLevel": 15,
            "system": "iOS 12.4.1",
            "model": "iPhone 7 Plus<iPhone9,2>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    },
    {
        "res": {
            "errCode": 10002,
            "errMsg": "playerErrCode:6, systemErrCode:18446744073709550615, domain:NSURLErrorDomain, description:请求超时。"
        },
        "systemInfo": {
            "benchmarkLevel": 34,
            "system": "iOS 13.3",
            "model": "iPhone 11<iPhone12,1>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    },
    {
        "res": {
            "errCode": 10002,
            "errMsg": "playerErrCode:6, systemErrCode:53, domain:NSPOSIXErrorDomain, description:未能完成该操作。软件导致连接中止"
        },
        "systemInfo": {
            "benchmarkLevel": 10,
            "system": "iOS 12.4",
            "model": "iPhone 6s<iPhone8,1>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    },
    {
        "res": {
            "errCode": 10002,
            "errMsg": "playerErrCode:6, systemErrCode:18446744073709550607, domain:NSURLErrorDomain, description:似乎已断开与互联网的连接。"
        },
        "systemInfo": {
            "benchmarkLevel": 10,
            "system": "iOS 11.0",
            "model": "iPhone 6s Plus<iPhone8,2>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    },
    {
        "res": {
            "errCode": 10002,
            "errMsg": "playerErrCode:6, systemErrCode:18446744073709550611, domain:NSURLErrorDomain, description:网络连接已中断。"
        },
        "systemInfo": {
            "benchmarkLevel": 34,
            "system": "iOS 13.3",
            "model": "iPhone 11 Pro<iPhone12,3>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    },
    {
        "res": {
            "errCode": 10003,
            "errMsg": "playerErrCode:7, systemErrCode:2, domain:NSCocoaErrorDomain, description:未能完成操作。(“Cocoa”错误 2。)"
        },
        "systemInfo": {
            "benchmarkLevel": 5,
            "system": "iOS 12.1.2",
            "model": "iPhone 6<iPhone7,2>",
            "version": "7.0.17",
            "brand": "iPhone",
            "SDKVersion": "2.13.2",
            "platform": "ios"
        }
    }
]
4 回复

把语音的SRC路径贴出来看下,我也有用到该API,但没遇到你这个问题。

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

日志记录中,每天都有个别用户出现以上,但ios机型出现错误的概率更高一些

你好,请问你能把代码片段发一下看看吗?你的问题是无法播放吗?

回到顶部