IOS调试发现别人发来的视频和语音消息无法弹出播放界面

淘气柚子 2022-7-12 544

IOS模拟器和真机调试中发现,别人发来的语音消息和视频无法弹出播放界面,自己发出的语音消息和视频可以弹出界面,自己转发别人的视频和语音同样无法弹出界面,去服务器中查看文件真实存在,用链接方式可以在APP内用浏览器打开语音和视频文件,但是无法直接弹出播放界面。

最新回复 (4)
  • HeavyRain 2022-7-13
    引用 2
    是在demo测试的吗?用demo测试看看情况?
  • HeavyRain 2022-7-13
    引用 3
    看上面提示是下载失败
  • 淘气柚子 2022-7-13
    引用 4
    HeavyRain 看上面提示是下载失败
    demo测试结果:
    1、语音:
    2022-07-13 13:16:54.287222+0800 野火IM[4476:80417] 总大小:46,当前大小:46
    2022-07-13 13:16:54.288837+0800 野火IM[4476:71260] download message content of 299689046303604737 failure with error Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)" UserInfo={NSLocalizedDescription=Request failed: not found (404), NSErrorFailingURLKey=http://1212121212121212.com:80/fs/2/2022/01/11/19/z5zfzfuu-2-1641899004-7wctjEhtMDvy.amr, com.alamofire.serialization.response.error.data={length = 0, bytes = 0x}, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x600001d78120> { URL: http://12121212122.com:80/fs/2/2022/01/11/19/z5zfzfuu-2-1641899004-7wctjEhtMDvy.amr } { Status Code: 404, Headers {
        "Content-Length" =     (
            46
        );
    } }}
    2022-07-13 13:16:55.851494+0800 野火IM[4476:71260] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

    2、视频:
    2022-07-13 13:17:33.657269+0800 野火IM[4476:81601] 总大小:46,当前大小:46
    2022-07-13 13:17:33.660679+0800 野火IM[4476:71260] download message content of 299687336921300993 failure with error Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)" UserInfo={NSLocalizedDescription=Request failed: not found (404), NSErrorFailingURLKey=http://121212123123123.com:80/fs/3/2022/01/09/22/z5zfzfuu-3-1641738327-dYCAFilDvYlO.mp4, com.alamofire.serialization.response.error.data={length = 0, bytes = 0x}, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x600001d37640> { URL: http://123123123123123.com:80/fs/3/2022/01/09/22/z5zfzfuu-3-1641738327-dYCAFilDvYlO.mp4 } { Status Code: 404, Headers {
        "Content-Length" =     (
            46
        );
    } }}
    2022-07-13 13:19:55.261013+0800 野火IM[4476:74899] [I][mars::comm][alarm.cc, OnAlarm, 144][OnAlarm id:123145555179304, seq:19, elapsed:210011, after:210000, miss:11, android alarm:false, MQ:123145553571840runing
    2022-07-13 13:19:55.263783+0800 野火IM[4476:74933] [I][mars::comm][alarm.cc, Start, 69][alarm id:123145555179120, after:8000, seq:20, po.reg.q:123145553571840,po.reg.s:0,po.s:144, MQ:123145553571840
    2022-07-13 13:19:55.265431+0800 野火IM[4476:74933] [I][mars::comm][alarm.cc, Start, 69][alarm id:123145555179304, after:210000, seq:21, po.reg.q:123145553571840,po.reg.s:0,po.s:145, MQ:123145553571840
    2022-07-13 13:19:55.266285+0800 野火IM[4476:74933] [I][mars::stn][longlink.cc, __RunReadWrite, 595][start noop taskid:4294967295, cmdid:6,  last:(210000,210011), next:210000
    2022-07-13 13:19:55.267377+0800 野火IM[4476:74933] [I][mars::comm][alarm.cc, Cancel, 95][alarm cancel id:123145555179304, seq:21, after:210000
    2022-07-13 13:19:55.268127+0800 野火IM[4476:74933] [I][mars::comm][alarm.cc, Start, 69][alarm id:123145555179304, after:210000, seq:22, po.reg.q:123145553571840,po.reg.s:0,po.s:146, MQ:123145553571840
    2022-07-13 13:19:55.268820+0800 野火IM[4476:74933] [D][mars::proto][stn_callback.cc, TrafficData, 240][send:2, recv:0
    2022-07-13 13:19:55.269701+0800 野火IM[4476:74933] [I][mars::stn][longlink.cc, __RunReadWrite, 676][task socket send sock:5, all send:2, count:1, sub send taskid:4294967295, cmdid:6, , len(S:2, 2/2),
    2022-07-13 13:19:55.269825+0800 野火IM[4476:74900] [V][mars::stn][longlink_task_manager.cc, __OnSend, 639][-> __OnSend
    2022-07-13 13:19:55.284656+0800 野火IM[4476:74900] [V][mars::stn][longlink_task_manager.cc, __OnSend, 639][<- __OnSend +14,
    2022-07-13 13:19:55.336328+0800 野火IM[4476:74933] [V][mars::comm][socketbreaker.cc, Clear, 129][Ret=-1
    2022-07-13 13:19:55.337222+0800 野火IM[4476:74933] [D][mars::proto][stn_callback.cc, TrafficData, 240][send:0, recv:2
    2022-07-13 13:19:55.337889+0800 野火IM[4476:74933] [I][mars::stn][longlink.cc, __RunReadWrite, 765][task socket recv sock:5, recv len:2, buff len:2
    2022-07-13 13:19:55.338555+0800 野火IM[4476:74933] [I][mars::stn][longlink.cc, __RunReadWrite, 784][task socket recv sock:5, pack recv finish taskid:4294967295, cmdid:6, , packlen:(2/2)
    2022-07-13 13:19:55.339456+0800 野火IM[4476:74933] [I][mars::stn][longlink.cc, __NoopResp, 316][end noop
    2022-07-13 13:19:55.340149+0800 野火IM[4476:74933] [I][mars::comm][alarm.cc, Cancel, 95][alarm cancel id:123145555179120, seq:20, after:8000
    2022-07-13 13:19:55.340928+0800 野火IM[4476:74933] [I][mars::stn][longlink.cc, __NoopResp, 324][noop succ, interval:210000
  • 淘气柚子 2022-7-13
    引用 5
    HeavyRain 看上面提示是下载失败
    manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", @"text/html",nil];

    改参数吗
返回