我们测试到按照如下流程操作,回到预览界面,服务器不发video start消息:
进入app预览,点击回放进入回放界面,然后按门铃推送来电提醒,手机端点击接听,然后挂断,回到回放界面,再返回预览界面,这时候没有video start消息,app没有预览图像。log如附件,麻烦帮忙分析一下这样正常吗?
[20230516_12:03:25.953 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c507]set clarity:1
[20230516_12:03:25.953 ]
[20230516_12:03:25.953 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c510]set clarity:1 OK
[20230516_12:03:25.953 ]
[20230516_12:03:26.026 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[0]
[20230516_12:03:26.026 ]
[20230516_12:03:26.053 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c326]12:03:23.071675: chn[0] video start
[20230516_12:03:26.053 ]
[20230516_12:03:26.068 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[2]
[20230516_12:03:26.068 ]
[20230516_12:03:26.083 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c342]chn[0] audio start
[20230516_12:03:26.083 ]
[20230516_12:03:26.354 ][05-16 12:03:25 TUYA E][tuya_ipc_p2p.c:1647] session[65538]video running force close
[20230516_12:03:26.354 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[1]
[20230516_12:03:26.354 ]
[20230516_12:03:26.354 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c334]chn[0] video stop
[20230516_12:03:26.354 ]
[20230516_12:03:26.354 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[3]
[20230516_12:03:26.354 ]
[20230516_12:03:26.354 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c348]chn[0] audio stop
[20230516_12:03:26.354 ]
[20230516_12:03:26.421 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[10]
[20230516_12:03:26.421 ]
[20230516_12:03:26.439 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c440]PB StartTS idx:0 1684188899 [1684188897 1684188908]
[20230516_12:03:26.470 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[14]
[20230516_12:03:26.470 ]
[20230516_12:03:26.485 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c492]PB idx:0 unmute
[20230516_12:03:26.540 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[10]
[20230516_12:03:26.540 ]
[20230516_12:03:26.558 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c440]PB StartTS idx:0 1684192079 [1684192079 1684192089]
[20230516_12:03:26.634 ][05-16 12:03:25 TUYA E][tuya_ipc_p2p.c:1824] session[65538] audio already open
[20230516_12:03:26.873 ]RKSockServer 12:03:23-895 {start :163} accept failed
[20230516_12:03:26.873 ]eofSTART_SUB_PROCESS done
[20230516_12:03:27.734 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[16]
[20230516_12:03:27.734 ]
[20230516_12:03:27.744 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[11]
[20230516_12:03:27.744 ]
[20230516_12:03:27.760 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c468]PB Pause idx:0
[20230516_12:03:27.790 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c315]p2p rev event cb=[13]
[20230516_12:03:27.790 ]
[20230516_12:03:27.805 ]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c484]PB idx:0 mute
【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
-
- Posts: 38
【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
- Attachments
-
- serial-com17_20230516.log
- (1.98 MiB) Downloaded 182 times
- fallen-queen
- Posts: 140
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
1.请问是必现的吗,如果好复现,复现后,上传一下APP端日志,并提供一下APP账号,谢谢
-
- Posts: 38
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
不好复现,等复现后,我把手机log上传后,再在这边回复。
-
- Posts: 38
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
手机app log已经上传:
LOG上传时间:10:58
账号:18923790502
设备ID:6c555cc5ca63228e58osil
手机型号:iPhone 11
回放界面按门铃,接听后连按门铃,挂电话,回预览不出流
- Attachments
-
- serial-com8_0524.log
- (121.22 KiB) Downloaded 158 times
-
- serial-com3_0524.log
- (479.27 KiB) Downloaded 174 times
- fallen-queen
- Posts: 140
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
1.附件里面没有10:58对应的日志。
-
- Posts: 38
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
手机log是10:58上传的,问题发生在10:33分
- fallen-queen
- Posts: 140
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
出现问题后,请问有试过退出APP,重新拉流吗?目前怀疑,应用层的回调__TUYA_APP_p2p_event_cb可能卡住,
麻烦确认一下会不会有这种情况。
-
- Posts: 38
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
退出app重新拉流能正常出图
Re: 【求助】【TuyaOS SDK】回到预览界面,服务器不发video start消息
在__TUYA_APP_p2p_event_cb中返回加了打印后测试,可以确定这个函数没有卡住
代码片段如下:
Code: Select all
case TRANS_STREAMING_VIDEO_START: {
TRANSFER_SOURCE_TYPE_E *pSrcType = (TRANSFER_SOURCE_TYPE_E *)args;
DEBUG_INFO("streaming start type %d\n", *pSrcType);
break;
}
case TRANS_STREAMING_VIDEO_STOP: {
TRANSFER_SOURCE_TYPE_E *pSrcType = (TRANSFER_SOURCE_TYPE_E *)args;
DEBUG_INFO("streaming stop type %d\n", *pSrcType);
break;
}
default:
break;
}
DEBUG_INFO("p2p rev event cb end.\n");
return 0;
}
设备端日志文件请查看附件《预览界面挂断门铃呼叫后显示获取视频流失败.log》
APP端日志:
上传时间:2023-05-31 16:33
账号:18588427787
设备ID: 6cb5ce7ac7895809c4qjq1
手机型号:Huawei nova 6
操作系统:HarmonyOS 3.0.0
- Attachments
-
- 挂断呼叫显示获取视频流失败.log
- (69.7 KiB) Downloaded 178 times