|
本帖最后由 lwb101010lwb 于 2016-6-26 01:30 编辑
关于windows 7系统用C++获取音视频列表的问题:刷新本地音频、视频播放设备都为0,使用BRAC_EnumVideoCapture(DeviceName,DeviceNum);断点调试发现DeviceNum=0。我用的SDK版本AnyChatCoreSDK_Win32_V6.1,解压后src中的例子代码:BRAnyChatMeeting,其它例子也是一样,音视频播放列表都为0.
客户端日志文件(BRAnyChatCore.log)的内容:
[2016-06-26 01:07:59(097)] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-06-26 01:07:59(097)] Load BRAnyChatCore.dll success!(V6.1 Build Time:Jun 3 2016 15:05:02)
[2016-06-26 01:07:59(113)] Load BRMiscUtil.dll failed,SDK some functions will fail!(Error:126)
[2016-06-26 01:07:59(113)] Load BRMediaUtil.dll failed,multimedia functions will fail!(Error:126)
[2016-06-26 01:07:59(113)] Load BRMediaShow.dll failed,video display functions will fail!(Error:126)
[2016-06-26 01:07:59(128)] Load BRMediaCore.dll failed,SDK some functions will fail!(Error:126)
[2016-06-26 01:08:02(014)] Start network engine(IPv4 mode)...
[2016-06-26 01:08:02(030)] Invoke Connect(27.126.175.111,8906)=0
[2016-06-26 01:08:02(030)] Invoke Login(username:1111)=0
[2016-06-26 01:08:02(061)] Create anychatdnsserver connect:27.126.175.111(8906)
[2016-06-26 01:08:02(186)] On pre-connection result, errorcode:0, anychatcoreserver, 27.126.175.111(8906, tcp:1)
[2016-06-26 01:08:02(280)] CheckClientSocketLink Connect(ip=27.126.175.111,port=8906)
[2016-06-26 01:08:02(420)] Server version: V6.1(Build Time:2016-06-03 15:08:22, Windows server)
[2016-06-26 01:08:02(467)] Message OnConnect(bSuccess:1, errorcode=0)
[2016-06-26 01:08:02(514)] Message OnLoginSystem(userid=-2,errorcode=0,username=1111), msg deliver worked(1)
[2016-06-26 01:08:02(514)] Load BRMediaUtil.dll failed,multimedia functions will fail!(Error:126)
[2016-06-26 01:08:02(514)] Load BRMediaShow.dll failed,video display functions will fail!(Error:126)
[2016-06-26 01:08:02(514)] Load BRMediaCore.dll failed,SDK some functions will fail!(Error:126)
[2016-06-26 01:08:02(514)] Server running time: 0 days, 0 hours, 1 minutes, license mode:0
[2016-06-26 01:08:02(560)] Connection to streaming media server successfully!(udp delay:23ms)
[2016-06-26 01:08:04(198)] Invoke EnterRoom(roomid=1)
[2016-06-26 01:08:04(245)] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
[2016-06-26 01:08:04(245)] Message OnReceiveOnlineUser(count=1,roomid=1)
[2016-06-26 01:08:04(261)] Invoke UserSpeakControl(userid=-2,bOpen=1)
[2016-06-26 01:08:04(276)] Invoke UserCameraControl(userid=-2, bOpen=1, stream=0)
[2016-06-26 01:08:04(276)] Invoke SetVideoPos(dwUserId:-2, hWnd:0xa0aee, l:27, t:26, r:165, b:130, dwStreamIndex:0)
|
|