Exemplo n.º 1
0
        public bool StartTlak(Enum_TalkModel talkModel)
        {
            bool bolResult = false;

            if (CurrentTalkStatus != Enum_TalkStatus.Null)  //处于对讲中 先关闭
            {
                StopTalk();
            }
            StartTalking(null);
            NET_DVR_DEVICEINFO_V30 dev = new NET_DVR_DEVICEINFO_V30();

            _intDVRHwd    = NET_DVR_Login_V30(CurrentVideoInfo.DVSAddress, CurrentVideoInfo.DVSConnectPort, CurrentVideoInfo.UserName, CurrentVideoInfo.Password, ref dev);
            VoiceCallBack = new fVoiceDataCallBack(MyRealDataCallBack);
            _intTalkHwd   = NET_DVR_StartVoiceCom(_intDVRHwd, VoiceCallBack, 0);
            NET_DVR_SetVoiceComClientVolume(_intTalkHwd, 65530);
            CurrentTalkStatus = (Enum_TalkStatus)(int)talkModel;
            return(bolResult);
        }
Exemplo n.º 2
0
 public static extern int IP_NET_DVR_StartVoiceCom(int lUserID, int dwVoiceChan, int bNeedCBNoEncData, fVoiceDataCallBack cbVoiceDataCallBack, IntPtr pUser);
Exemplo n.º 3
0
 public static extern bool NET_DVR_StartVoiceCom_MR(int lUserID, fVoiceDataCallBack x, uint dwUser);
 private static extern int MP4Net_ClientStartVoiceCom(ref PVoiceComInfo pVoiceComInfo,
     fVoiceDataCallBack fvoicedatacallback, uint dwUser);