Win端桌面共享问题
请问1. 开启桌面共享之后(BRAC_SO_CORESDK_SCREENCAMERACTRL设置为1),获取视频采集设备数量时并没有虚拟摄像头(Native Screen Camera)是怎么回事?2. 桌面共享的数据流是要通过视频数据回调(多路流)函数(如图1)来接收吗?在SDK提供的接口中并没有提供设置视频数据多路流扩展回调函数的方法,那么是在哪里接收这个数据流呢
附上日志
Local Status: connect:0, login:0, logout:1, release:0, linkclose:0(reason:0)
Local Status: natreg:0, nattimes:0, inroom:0, tickout:0, curtime:21037936
Local Status: checknattime:-1, natkeeptime:-1
Invoke SetSDKOption(BRAC_SO_CLOUD_APPGUID, A9A750AD-14B4-4837-ADD1-BD5D95644910)
Invoke SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
Invoke SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
Invoke SetSDKOption(BRAC_SO_AUDIO_CAPTUREMODE,0)
Invoke SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL=1)
Start network engine(IPv4 mode)...
Invoke Connect(cloud.anychat.cn,8906)=0
Invoke Login(username:Any)=0
Invoke EnterRoom(Monster)
Create anychatdnsserver connect:120.76.165.13(8912)
Create anychatdnsserver connect:121.41.5.231(8912)
Create anychatdnsserver connect:120.25.70.134(8912)
Success connect to anychatdnsserver(120.76.165.13:8912, tcp:0)
Receive connect parameter from anychatdnsserver!
Receive server list from anychatdnsserver(count:1):
anychatcoreserver, id:1793345385, ip:120.76.165.13(tcp:9220, udp:9220), OS:Linux, build Time:2017-05-24 18:42:51, version:6.4.0, serviceGuid:DB359562-C7EE-834F-A935-EF978DDA4259, machineGuid:1F3E8F63-2D71-B946-B7B2-CA4CD86C920F
Create anychatcoreserver connect:120.76.165.13(9220, tcp:1)
Create anychatcoreserver connect:120.76.165.13(9220, tcp:0)
Create anychatcoreserver connect:10.170.161.40(9220, tcp:1)
Create anychatcoreserver connect:10.170.161.40(9220, tcp:0)
Trial connect anychatcoreserver(id:1793345385) result: 120.76.165.13(9220,tcp:1), errorcode:0, avgtime:78ms
On trial connect finished, errorcode:0, result size:1, lbserver connect:0
anychatcoreserver, 120.76.165.13(9220, tcp:1), avg time:78
On best connection result, errorcode:0, ip:120.76.165.13, port:9220, tcp:1
On pre-connection result, errorcode:0, anychatcoreserver, 120.76.165.13(9220, tcp:1)
Start anychat server(120.76.165.13:9220) connect...
On connect anychat server return, errorcode: 0, appflags:0x460020, svrflags:0x10
Server version: V6.4(Build Time:2017-05-24 18:43:22, Linux server)
m_ProtocolPipeLine, userid:0, local session:915349770, peer session:0
Send login request...
Message OnConnect(bSuccess:1, errorcode=0)
On tcp connect app reg result, errorcode:0
Message OnLoginSystem(userid=-765,errorcode=0,username=Any), msg deliver worked(1)
Load BRMediaUtil.dll success!(V6.4 Build Time:Aug9 2017 09:49:35)
Load BRMediaShow.dll success!(V6.4 Build Time:Aug9 2017 09:53:37)
Load BRMediaCore.dll success!(V6.4 Build Time:Aug9 2017 09:53:55)
Video capture device supported:
1-USB2.0 PC CAMERA
Audio capture device supported:
1-麦克风 (2- USB2.0 MIC)
2-virtual-audio-capturer
3-麦克风 (Realtek High Definition Au
Apply server config: mtu:1500
Server running time: 102 days, 14 hours, 48 minutes, license mode:1, cert:(lo:0x80025bf, hi:0x0)
Server supports the session hold feature for up to 20000 ms
On udp connect app reg result, errorcode:0
Connection to streaming media server(120.76.165.13:9220) successfully!(udp delay:31ms)
Message OnEnterRoom(roomid=9,errorcode=0,siteindex=0)
Message OnReceiveOnlineUser(count=1,roomid=9)
WaveIn Audio Capture Driver(麦克风 (2- USB2.0 MIC))
Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
Audio codec init, handle:1, 11, 1, 16000, 16, 23850
Invoke UserCameraControl(userid=-1, bOpen=1) = 0
Invoke UserSpeakControl(userid=-1, bOpen=1) = 0
Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x8d2681, 30fps)
Prepare config camera(1-USB2.0 PC CAMERA): 320x240, 25fps
The best video format is detected: YUY2
SetFormat(320x240, YUY2, 25fps) = 0
Video Config Size(320, 240) Format(YUY2, 25fps)
video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
Prepare logout......
userid(-1) statist info, video fps:9, video count:0, audio count:0
Close network engine...
server net link reset...
Invoke Logout() Elapse:748 ms
Local Status: connect:0, login:0, logout:1, release:0, linkclose:0(reason:0)
Local Status: natreg:0, nattimes:0, inroom:0, tickout:0, curtime:22017060
Local Status: checknattime:-1, natkeeptime:-1
Invoke SetSDKOption(BRAC_SO_CLOUD_APPGUID, A9A750AD-14B4-4837-ADD1-BD5D95644910)
Invoke SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
Invoke SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
Invoke SetSDKOption(BRAC_SO_AUDIO_CAPTUREMODE,0)
Invoke SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL=1)
Start network engine(IPv4 mode)...
Invoke Connect(cloud.anychat.cn,8906)=0
Invoke Login(username:Any)=0
Invoke EnterRoom(Monster)
Create anychatdnsserver connect:121.41.5.231(8912)
Create anychatdnsserver connect:120.76.165.13(8912)
Create anychatdnsserver connect:120.25.70.134(8912)
Success connect to anychatdnsserver(120.76.165.13:8912, tcp:0)
Receive connect parameter from anychatdnsserver!
Receive server list from anychatdnsserver(count:1):
anychatcoreserver, id:1793345385, ip:120.76.165.13(tcp:9220, udp:9220), OS:Linux, build Time:2017-05-24 18:42:51, version:6.4.0, serviceGuid:DB359562-C7EE-834F-A935-EF978DDA4259, machineGuid:1F3E8F63-2D71-B946-B7B2-CA4CD86C920F
Create anychatcoreserver connect:120.76.165.13(9220, tcp:1)
Create anychatcoreserver connect:120.76.165.13(9220, tcp:0)
Create anychatcoreserver connect:10.170.161.40(9220, tcp:1)
Create anychatcoreserver connect:10.170.161.40(9220, tcp:0)
Trial connect anychatcoreserver(id:1793345385) result: 120.76.165.13(9220,tcp:1), errorcode:0, avgtime:94ms
On trial connect finished, errorcode:0, result size:1, lbserver connect:0
anychatcoreserver, 120.76.165.13(9220, tcp:1), avg time:94
On best connection result, errorcode:0, ip:120.76.165.13, port:9220, tcp:1
On pre-connection result, errorcode:0, anychatcoreserver, 120.76.165.13(9220, tcp:1)
Start anychat server(120.76.165.13:9220) connect...
On connect anychat server return, errorcode: 0, appflags:0x460020, svrflags:0x10
Server version: V6.4(Build Time:2017-05-24 18:43:22, Linux server)
m_ProtocolPipeLine, userid:0, local session:1178379952, peer session:0
Send login request...
Message OnConnect(bSuccess:1, errorcode=0)
On tcp connect app reg result, errorcode:0
Message OnLoginSystem(userid=-766,errorcode=0,username=Any), msg deliver worked(1)
Load BRMediaUtil.dll success!(V6.4 Build Time:Aug9 2017 09:49:35)
Load BRMediaShow.dll success!(V6.4 Build Time:Aug9 2017 09:53:37)
Load BRMediaCore.dll success!(V6.4 Build Time:Aug9 2017 09:53:55)
Video capture device supported:
1-USB2.0 PC CAMERA
Audio capture device supported:
1-麦克风 (2- USB2.0 MIC)
2-virtual-audio-capturer
3-麦克风 (Realtek High Definition Au
Apply server config: mtu:1500
Server running time: 102 days, 15 hours, 4 minutes, license mode:1, cert:(lo:0x80025bf, hi:0x0)
Server supports the session hold feature for up to 20000 ms
On udp connect app reg result, errorcode:0
Connection to streaming media server(120.76.165.13:9220) successfully!(udp delay:39ms)
Message OnEnterRoom(roomid=10,errorcode=0,siteindex=0)
Message OnReceiveOnlineUser(count=1,roomid=10)
WaveIn Audio Capture Driver(麦克风 (2- USB2.0 MIC))
Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
Audio codec init, handle:1, 11, 1, 16000, 16, 23850
Prepare logout......
userid(-1) statist info, video fps:0, video count:0, audio count:0
Close network engine...
server net link reset...
Invoke Logout() Elapse:93 ms
Local Status: connect:0, login:0, logout:1, release:0, linkclose:0(reason:0)
Local Status: natreg:0, nattimes:0, inroom:0, tickout:0, curtime:22290499
Local Status: checknattime:-1, natkeeptime:-1
Invoke SetSDKOption(BRAC_SO_CLOUD_APPGUID, A9A750AD-14B4-4837-ADD1-BD5D95644910)
Invoke SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
Invoke SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
Invoke SetSDKOption(BRAC_SO_AUDIO_CAPTUREMODE,4)
Invoke SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL=1)
Start network engine(IPv4 mode)...
Invoke Connect(cloud.anychat.cn,8906)=0
Invoke Login(username:Any)=0
Invoke EnterRoom(Monster)
Create anychatdnsserver connect:120.76.165.13(8912)
Create anychatdnsserver connect:121.41.5.231(8912)
Create anychatdnsserver connect:120.25.70.134(8912)
Success connect to anychatdnsserver(120.76.165.13:8912, tcp:0)
Receive connect parameter from anychatdnsserver!
Receive server list from anychatdnsserver(count:1):
anychatcoreserver, id:1793345385, ip:120.76.165.13(tcp:9220, udp:9220), OS:Linux, build Time:2017-05-24 18:42:51, version:6.4.0, serviceGuid:DB359562-C7EE-834F-A935-EF978DDA4259, machineGuid:1F3E8F63-2D71-B946-B7B2-CA4CD86C920F
Create anychatcoreserver connect:120.76.165.13(9220, tcp:1)
Create anychatcoreserver connect:120.76.165.13(9220, tcp:0)
Create anychatcoreserver connect:10.170.161.40(9220, tcp:1)
Create anychatcoreserver connect:10.170.161.40(9220, tcp:0)
Trial connect anychatcoreserver(id:1793345385) result: 120.76.165.13(9220,tcp:1), errorcode:0, avgtime:78ms
On trial connect finished, errorcode:0, result size:1, lbserver connect:0
anychatcoreserver, 120.76.165.13(9220, tcp:1), avg time:78
On best connection result, errorcode:0, ip:120.76.165.13, port:9220, tcp:1
On pre-connection result, errorcode:0, anychatcoreserver, 120.76.165.13(9220, tcp:1)
Start anychat server(120.76.165.13:9220) connect...
On connect anychat server return, errorcode: 0, appflags:0x460020, svrflags:0x10
Server version: V6.4(Build Time:2017-05-24 18:43:22, Linux server)
m_ProtocolPipeLine, userid:0, local session:220326348, peer session:0
Send login request...
Message OnConnect(bSuccess:1, errorcode=0)
On tcp connect app reg result, errorcode:0
Message OnLoginSystem(userid=-767,errorcode=0,username=Any), msg deliver worked(1)
Load BRMediaUtil.dll success!(V6.4 Build Time:Aug9 2017 09:49:35)
Load BRMediaShow.dll success!(V6.4 Build Time:Aug9 2017 09:53:37)
Load BRMediaCore.dll success!(V6.4 Build Time:Aug9 2017 09:53:55)
Video capture device supported:
1-USB2.0 PC CAMERA
Audio capture device supported:
1-麦克风 (2- USB2.0 MIC)
2-virtual-audio-capturer
3-麦克风 (Realtek High Definition Au
Apply server config: mtu:1500
Server running time: 102 days, 15 hours, 8 minutes, license mode:1, cert:(lo:0x80025bf, hi:0x0)
Server supports the session hold feature for up to 20000 ms
On udp connect app reg result, errorcode:0
Connection to streaming media server(120.76.165.13:9220) successfully!(udp delay:47ms)
Message OnEnterRoom(roomid=11,errorcode=0,siteindex=0)
Message OnReceiveOnlineUser(count=1,roomid=11)
WaveIn Audio Capture Driver(麦克风 (2- USB2.0 MIC))
Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
Audio codec init, handle:1, 11, 1, 16000, 16, 23850
Invoke UserCameraControl(userid=-1, bOpen=1) = 0
Invoke UserSpeakControl(userid=-1, bOpen=1) = 0
Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(640, 480) MaxCroppingSize(640, 480) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(352, 288) MaxCroppingSize(352, 288) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(320, 240) MaxCroppingSize(320, 240) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(176, 144) MaxCroppingSize(176, 144) Format(YUY2, 0x8d2681, 30fps)
MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x32595559, 30fps)
MinCroppingSize(160, 120) MaxCroppingSize(160, 120) Format(YUY2, 0x8d2681, 30fps)
Prepare config camera(1-USB2.0 PC CAMERA): 320x240, 25fps
The best video format is detected: YUY2
SetFormat(320x240, YUY2, 25fps) = 0
Video Config Size(320, 240) Format(YUY2, 25fps)
video(stream:0) init finish:320x240, YUY2, fps:25, codecid:1
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
No Other User Subscript Video or not need predeal
Prepare logout......
userid(-1) statist info, video fps:8, video count:0, audio count:0
Close network engine...
server net link reset...
Invoke Logout() Elapse:765 ms
server net link reset...
Invoke BRAC_Release Elapse:202 ms
您好,您没有传递正确的参数,所以没有生效。您的“SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL=1)”错误的
应该是BRAC_SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL, 1);
具体可以参考下这个http://bbs.anychat.cn/forum.php?mod=viewthread&tid=550 佰锐科技-刘冬明 发表于 2017-9-5 15:01
您好,您没有传递正确的参数,所以没有生效。您的“SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL=1)”错 ...
谢谢回复,我在实际项目中是这样使用的,只是在发帖的时候偷懒了= =
我调用SetSDKOption设置参数返回的是成功,但还是没有虚拟摄像头
我就是看着那个帖子来做的,但是帖子有成功获取到虚拟摄像头,我没有 您用我们的demo可以吗?如果可以,可以参考下与您写的项目进行对比。:)
页:
[1]