mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 1797|reply: 0
打印 prevThread nextThread

c++ sdk 语音对接问题

[copyURL]

26

主题

66

帖子

262

积分

midMem

Rank: 3Rank: 3

积分
262
jumpTo
owner
poston 2022-4-27 14:48 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
调sdk demo里函数可以开启安全帽(app模拟)会话,但手机只发出“咔咔”的声音,手机不听到PC的声音,PC 也听不到手机的声音
调用的函数:
int CMLibBVCU::TalkOnly(BVCU_HDialog* phDialog, const char* puId, int channel){        if ( m_session && phDialog && puId)        {                BVCU_DialogParam dlgParam;                BVCU_DialogControlParam dlgCtrlParam;                memset(&dlgParam,0x00,sizeof(dlgParam));                memset(&dlgCtrlParam,0x00,sizeof(dlgCtrlParam));                dlgParam.iSize = sizeof(dlgParam);                dlgCtrlParam.iSize = sizeof(dlgCtrlParam);
                dlgParam.hSession = m_session;                BVCU_DialogTarget  PU;                strncpy_s(PU.szID,BVCU_MAX_ID_LEN+1,puId,_TRUNCATE);                PU.iIndexMajor = channel;                PU.iIndexMinor = -1;                dlgParam.iTargetCount = 1;                dlgParam.pTarget = &PU;                dlgParam.iAVStreamDir = BVCU_MEDIADIR_TALKONLY;                dlgParam.OnEvent = dialog_OnEvent;                dlgParam.afterRender = afterRender;
                dlgCtrlParam.stNetwork.iDelayMax = 5000;                dlgCtrlParam.stNetwork.iDelayMin = 1000;                dlgCtrlParam.stNetwork.iDelayVsSmooth = 3;                dlgCtrlParam.stRender.iPlackbackVolume = 100;                dlgCtrlParam.stRender.iCaptureVolume = 100;
                return BVCU_Dialog_Open(phDialog,&dlgParam,&dlgCtrlParam);        }        return BVCU_RESULT_E_FAILED;}
reply

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-23 11:12 , Processed in 0.063479 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList