|
7#
楼主 |
发表于 2013-9-5 09:41:44
|
只看该作者
本帖最后由 清风 于 2013-9-5 09:43 编辑
AnyChatServerSDK.cs
// 中心端录像控制
//BRAS_API DWORD BRAS_StreamRecordCtrl(DWORD dwUserId, BOOL bStartRecord, DWORD dwFlags, DWORD dwParam, DWORD dwRecordServerId);
[DllImport(AnyChatServerSDKDll, EntryPoint = "BRAS_StreamRecordCtrl", CallingConvention = CallingConvention.Cdecl)]
public static extern int BRAS_StreamRecordCtrl(int dwUserId, int bStartRecord, int dwFlags, int dwParam, int dwRecordServerId);
上面的写着 C++的 bStartRecord是BOOL型
而C#代码调用bStartRecord就变成int型了
我以为是你们写错了呢。我就给改成bool型了。
客户端日志
[2013-09-04 16:26:50(030)] ---------------------------BRAnyChatCore ActiveCallLog---------------------------
[2013-09-04 16:26:50(033)] Load SDK Success, dwFuncMode:0x3fe,V4.6(Build Time:Nov 21 2012 21:01:10)
[2013-09-04 16:26:50(046)] Load BRMiscUtil.dll success!(V4.6 Build Time:Nov 21 2012 21:07:23)
[2013-09-04 16:26:50(104)] Load BRMediaUtil.dll success!(V4.6 Build Time:Nov 21 2012 21:06:19)
[2013-09-04 16:26:50(108)] Load BRMediaShow.dll success!(V4.6 Build Time:Nov 21 2012 21:06:07)
[2013-09-04 16:26:50(116)] Load BRMediaCore.dll success!(V4.6 Build Time:Nov 23 2012 10:44:13)
[2013-09-04 16:26:50(135)] Invoke BRAC_Connect(127.0.0.1,8906)=0
[2013-09-04 16:26:50(139)] Invoke LoginServer(username=guest001)
[2013-09-04 16:26:50(236)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2013-09-04 16:26:50(241)] CheckClientSocketLink Connect(ip=127.0.0.1,port=8906)
[2013-09-04 16:26:50(243)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2013-09-04 16:26:50(276)] Server version: V4.8(Build Time:2013-08-06 20:50:42)
[2013-09-04 16:26:50(280)] Message OnConnect(bSuccess=1)
[2013-09-04 16:26:50(303)] Message OnLoginSystem(userid=-7,errorcode=0,username=guest001), msg deliver worked(0)
[2013-09-04 16:26:50(312)] Connection to streaming media server successfully!(udp delay:0ms)
[2013-09-04 16:26:50(711)] Invoke EnterRoom(roomid=1)
[2013-09-04 16:26:50(731)] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2013-09-04 16:26:50(737)] Message OnReceiveOnlineUser(count=1,roomid=1)
[2013-09-04 16:26:50(745)] Audio Capture(Driver:1) Init Failed:10613, (6.1.7601[1537])
[2013-09-04 16:26:50(753)] No Full Duplex DSound(hr=0x88780078)
[2013-09-04 16:26:50(758)] No Full Duplex DSound(No AEC)(hr=0x88780078)
[2013-09-04 16:26:50(766)] No Full Duplex DSound(No AEC and No Freq)(hr=0x88780078)
[2013-09-04 16:26:50(772)] Audio Capture(Driver:2) Init Failed:10500, (6.1.7601[1537])
[2013-09-04 16:26:50(780)] Audio Capture(Driver:3) Init Failed:10500, (6.1.7601[1537])
[2013-09-04 16:26:50(787)] Audio Init, error:10500, device:0, 0, 0, 0, capmode:0
[2013-09-04 16:26:50(792)] Audio Playback Device Init(10500, 2, 44100, 16), WaveOut Playback Driver
[2013-09-04 16:26:50(797)] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x405fc, l:0, t:0, r:167, b:140)
[2013-09-04 16:26:50(800)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2013-09-04 16:26:50(804)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2013-09-04 16:26:50(884)] MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(RGB24, 0x0)
[2013-09-04 16:26:50(889)] Video Config Size(320, 240) Format(RGB24, 25fps)
[2013-09-04 16:26:50(937)] video init finish:320x240, RGB24, fps:100000
[2013-09-04 16:26:50(993)] video codec init:codec:1, 15fps, 320x240, bitrate:90000, quality:3, preset:3, gop:30, handle:1
[2013-09-04 16:26:54(935)] OnReceiveUserDefine(dwSrcUserId:0, dwTarUserId:-7, dwCommand:3, wParam:-7, lParam:1, dwBufSize:0)
[2013-09-04 16:27:39(531)] OnReceiveUserDefine(dwSrcUserId:0, dwTarUserId:-7, dwCommand:3, wParam:-7, lParam:0, dwBufSize:0)
[2013-09-04 16:41:51(642)] OnReceiveUserDefine(dwSrcUserId:0, dwTarUserId:-7, dwCommand:2, wParam:105, lParam:0, dwBufSize:0)
[2013-09-04 16:41:51(667)] Invoke LeaveRoom(roomid=-1) Elapse:31 ms
[2013-09-04 16:41:51(780)] Message OnLinkClose(reason=2)
[2013-09-04 17:30:18(807)] Invoke LogoutServer(userid=-7) Elapse:0 ms
[2013-09-04 17:30:18(996)] Invoke BRAC_Release Elapse:0 ms
|
|