|
调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;}
|
|