donghu post time 2023-4-27 17:38

对接对方28181平台,对讲没有声音

MCP 代码是202304 月分的,一下是调试过程,是否有帮助,平台点击对讲后,进入该流程请查看附件

一下是打印的json

{"firstDataType":0,"hSession":1,"iMediaDir":4,"iStreamType":3,"pUserData":-1145898683,"stEncode":{"iBitrate":0,"iColorFormat":0,"iEncoderType":0,"iFramerate":0,"iHeight":0,"iWidth":0,"iYUVConvert":0},"stFileTarget":{"downloadspeed":0,"iEndTime":0,"iFileSize":0,"iStartTime":0},"stLocalAudioDes":{"bOverTCP":1,"iCount":2,"iCurIndex":0,"iPort":51766,"stAudios":[{"codec":4,"iBitrate":64000,"iChannelCount":1,"iExtraDataSize":0,"iSampleFormat":1,"iSampleRate":0},{"codec":4,"iBitrate":64000,"iChannelCount":1,"iExtraDataSize":0,"iSampleFormat":1,"iSampleRate":0}]},"stLocalVideoDes":{"bOverTCP":0,"iCount":1,"iCurIndex":0,"iPort":51766,"stVideos":[{"codec":2,"iExtraDataSize":0,"iHeight":720,"iWidth":1280}]},"stRemoteAudioDes":{"bOverTCP":2,"iCount":1,"iCurIndex":0,"iPort":30217,"stAudios":[{"codec":1,"iBitrate":0,"iChannelCount":1,"iExtraDataSize":0,"iSampleFormat":0,"iSampleRate":0}]},"stRemoteVideoDes":{"bOverTCP":0,"iCount":0,"iCurIndex":0,"iPort":0},"szID":"65280000901521690506","szLocalIp":"192.168.10.104","szRemoteIp":"124.217.111.415"}

lihui2006 post time 2023-4-27 17:46

国标的对讲是需要抓包分析的,这部分国标的定义不明确,导致各个厂家都有私有化的部分。
先不要用SDK 代码,先用我们标准的MCP调通再来弄代码。

Arthur post time 2023-4-27 17:52

这个媒体方向只有音频发送,没有命中对讲。

Arthur post time 2023-4-27 17:53

设备用wireshark抓个包看看。

donghu post time 2023-4-27 17:55

你们的国标平台,是可以对讲的

Arthur post time 2023-4-27 17:57

donghu post on2023-4-27 17:55
你们的国标平台,是可以对讲的

啥意思,用我们MCP就可以在你这个28181平台对讲?
page: [1]
full version: 对接对方28181平台,对讲没有声音