设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 16670|回复: 48
打印 上一主题 下一主题

BRAC_StreamRecordCtrlEx相应的服务器端“设置服务器录像通知回调函数”是哪个?

[复制链接]

26

主题

161

帖子

485

积分

中级会员

Rank: 3Rank: 3

积分
485
跳转到指定楼层
楼主
发表于 2015-4-20 10:43:54 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
我在客户端调用BRAC_StreamRecordCtrlEx进行服务器端录制,请问服务器端的“设置服务器录像通知回调函数”是哪个?

我模仿BRAS_SetOnServerRecordCallBack,在SDK文件中加了设置服务器录像通知回调函数 BRAS_SetOnServerRecordExCallBack,但是报错:
无法在 DLL“AnyChatServerSDK.dll”中找到名为“BRAS_SetOnServerRecordExCallBack”的入口点。

请问应该是哪个函数?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

26

主题

161

帖子

485

积分

中级会员

Rank: 3Rank: 3

积分
485
沙发
 楼主| 发表于 2015-4-20 11:01:35 | 只看该作者
不好意思,我已经明白了,直接用BRAS_SetOnServerRecordCallBack设置就可以了。
回复 支持 反对

使用道具 举报

26

主题

161

帖子

485

积分

中级会员

Rank: 3Rank: 3

积分
485
板凳
 楼主| 发表于 2015-4-20 11:33:04 | 只看该作者
本帖最后由 lincy 于 2015-4-20 11:40 编辑

还有个问题,调用BRAC_StreamRecordCtrlEx后,为啥回调函数里得到的lpFileName、lpUserStr都为null,而dwUserId是对的。

而且有时候能触发回调函数,有时候不触发。
回复 支持 反对

使用道具 举报

地板
发表于 2015-4-20 11:40:22 | 只看该作者
您好,,,方便发具体日志过来参考一下不?
回复 支持 反对

使用道具 举报

26

主题

161

帖子

485

积分

中级会员

Rank: 3Rank: 3

积分
485
5#
 楼主| 发表于 2015-4-20 11:41:24 | 只看该作者
你好,日志如下:
[2015-04-20 11:17:24(397)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2015-04-20 11:17:24(398)]        Load BRAnyChatCore.dll success!(V5.2 Build Time:Feb 10 2015 14:09:19)
[2015-04-20 11:17:24(447)]        Load BRMiscUtil.dll success!(V5.2 Build Time:Feb 10 2015 14:07:32)
[2015-04-20 11:17:24(477)]        Load BRMediaUtil.dll success!(V5.2 Build Time:Feb 10 2015 14:07:48)
[2015-04-20 11:17:24(479)]        Load BRMediaShow.dll success!(V5.2 Build Time:Feb 10 2015 14:07:40)
[2015-04-20 11:17:24(483)]        Load BRMediaCore.dll success!(V5.2 Build Time:Feb 10 2015 14:08:00)
[2015-04-20 11:17:24(514)]        Apply video parameter:1280x720, bitrate:600000, quality:0, gop:20, fps:12, preset:3, codec:0
[2015-04-20 11:17:24(516)]        Invoke        BRAC_Connect(192.168.52.144,8906)=0
[2015-04-20 11:17:24(516)]        Invoke        LoginServer(username=lincy1)
[2015-04-20 11:17:24(517)]        Invoke        EnterRoom(lincy1)
[2015-04-20 11:17:24(573)]        CheckClientSocketLink         Connect(ip=192.168.52.144,port=8906)
[2015-04-20 11:17:24(724)]        Server version: V5.2(Build Time:2015-02-10 14:08:34, Server OS:Windows)
[2015-04-20 11:17:24(930)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-04-20 11:17:25(361)]        Message        OnLoginSystem(userid=4,errorcode=0,username=lincy1), msg deliver worked(1)
[2015-04-20 11:17:25(362)]        Server running time: 10 days, 0 hours, 23 minutes, license mode:0
[2015-04-20 11:17:25(403)]        Connection to streaming media server successfully!(udp delay:23ms)
[2015-04-20 11:17:25(613)]        Message        OnEnterRoom(roomid=217,errorcode=0,siteindex=0)
[2015-04-20 11:17:25(614)]        Message        OnReceiveOnlineUser(count=1,roomid=217)
[2015-04-20 11:17:25(614)]        Invoke        BRAC_SetVideoPos(dwUserId:-1, hWnd:0x610dc, l:0, t:0, r:340, b:284)
[2015-04-20 11:17:25(615)]        Invoke        UserCameraControl(userid=-1,bOpen=1)
[2015-04-20 11:17:25(615)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2015-04-20 11:17:25(632)]        WaveIn Audio Capture Driver(麦克风 (HD Webcam C270))
[2015-04-20 11:17:25(633)]        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2015-04-20 11:17:25(633)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2015-04-20 11:17:25(644)]        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
[2015-04-20 11:17:25(666)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2015-04-20 11:17:25(742)]        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(743)]        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(743)]        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(744)]        MinCroppingSize(320, 176)        MaxCroppingSize(320, 176)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(745)]        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(745)]        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(746)]        MinCroppingSize(432, 240)        MaxCroppingSize(432, 240)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(746)]        MinCroppingSize(544, 288)        MaxCroppingSize(544, 288)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(747)]        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(747)]        MinCroppingSize(752, 416)        MaxCroppingSize(752, 416)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(748)]        MinCroppingSize(800, 448)        MaxCroppingSize(800, 448)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(748)]        MinCroppingSize(800, 600)        MaxCroppingSize(800, 600)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(749)]        MinCroppingSize(864, 480)        MaxCroppingSize(864, 480)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(749)]        MinCroppingSize(960, 544)        MaxCroppingSize(960, 544)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(750)]        MinCroppingSize(960, 720)        MaxCroppingSize(960, 720)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(750)]        MinCroppingSize(1024, 576)        MaxCroppingSize(1024, 576)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(751)]        MinCroppingSize(1184, 656)        MaxCroppingSize(1184, 656)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(751)]        MinCroppingSize(1280, 720)        MaxCroppingSize(1280, 720)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(752)]        MinCroppingSize(1280, 960)        MaxCroppingSize(1280, 960)        Format(RGB24, 0x0)
[2015-04-20 11:17:25(753)]        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(753)]        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(754)]        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(754)]        MinCroppingSize(320, 176)        MaxCroppingSize(320, 176)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(754)]        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(755)]        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(755)]        MinCroppingSize(432, 240)        MaxCroppingSize(432, 240)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(756)]        MinCroppingSize(544, 288)        MaxCroppingSize(544, 288)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(756)]        MinCroppingSize(640, 360)        MaxCroppingSize(640, 360)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(757)]        MinCroppingSize(752, 416)        MaxCroppingSize(752, 416)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(757)]        MinCroppingSize(800, 448)        MaxCroppingSize(800, 448)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(758)]        MinCroppingSize(800, 600)        MaxCroppingSize(800, 600)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(758)]        MinCroppingSize(864, 480)        MaxCroppingSize(864, 480)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(759)]        MinCroppingSize(960, 544)        MaxCroppingSize(960, 544)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(759)]        MinCroppingSize(960, 720)        MaxCroppingSize(960, 720)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(760)]        MinCroppingSize(1024, 576)        MaxCroppingSize(1024, 576)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(760)]        MinCroppingSize(1184, 656)        MaxCroppingSize(1184, 656)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(766)]        MinCroppingSize(1280, 720)        MaxCroppingSize(1280, 720)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(767)]        MinCroppingSize(1280, 960)        MaxCroppingSize(1280, 960)        Format(YUV420P, 0x30323449)
[2015-04-20 11:17:25(768)]        Video Config Size(1280, 720)        Format(RGB24, 12fps)
[2015-04-20 11:17:26(100)]        video init finish:1280x720, RGB24, fps:12
[2015-04-20 11:17:26(104)]        Message        OnUserEnterRoom(userid=3,nickname=customerTTTNETPF_600500_1_321043067856330650_100003,siteindex=1)
[2015-04-20 11:17:26(318)]        Invoke        BRAC_SetVideoPos(dwUserId:3, hWnd:0x330dbe, l:0, t:0, r:557, b:300)
[2015-04-20 11:17:26(319)]        Invoke        UserCameraControl(userid=3,bOpen=1)
[2015-04-20 11:17:26(319)]        Invoke        UserSpeakControl(userid=3,bOpen=1)
[2015-04-20 11:17:26(564)]        On Remote UserCameraControl(dwUserId:3, bOpen:1)
[2015-04-20 11:17:26(564)]        On Remote UserSpeakControl(dwUserId:3, bOpen:1)
[2015-04-20 11:17:26(605)]        Message        OnP2PConnectState(userid=3, state=1)
[2015-04-20 11:17:26(735)]        Message        OnP2PConnectState(userid=3, state=3)
[2015-04-20 11:17:27(668)]        video codec init:codec:1, 12fps, 1280x720, bitrate:600kbps, quality:0, preset:3, gop:20, handle:3
[2015-04-20 11:17:28(031)]        userid(3) video decode delay:0ms
[2015-04-20 11:17:31(465)]        Invoke        StreamRecordCtrlEx(3, 1, 0x137, 0, )=0
[2015-04-20 11:17:34(106)]        Invoke        StreamRecordCtrlEx(3, 0, 0x137, 0, )=0
[2015-04-20 11:17:51(631)]        Invoke        StreamRecordCtrlEx(3, 1, 0x137, 0, )=0
[2015-04-20 11:17:56(478)]        Invoke        StreamRecordCtrlEx(3, 0, 0x137, 0, )=0
[2015-04-20 11:18:34(347)]        Invoke        StreamRecordCtrlEx(3, 1, 0x137, 0, )=0
[2015-04-20 11:18:44(875)]        Invoke        StreamRecordCtrlEx(3, 0, 0x137, 0, )=0
[2015-04-20 11:21:49(087)]        Message        OnP2PConnectState(userid=3, state=2)
[2015-04-20 11:21:49(247)]        Message        OnUserLeaveRoom(userid=3,siteindex=1)
[2015-04-20 11:32:29(867)]        Invoke        LeaveRoom(roomid=-1)        Elapse:1373 ms
[2015-04-20 11:32:29(871)]        Message        OnLinkClose(reason=2, dwErrorCode:105)
回复 支持 反对

使用道具 举报

6#
发表于 2015-4-20 11:47:06 | 只看该作者
有时候能触发回调函数,有时候不触发
请问没有触发的时候,是不是录制时间很短?
回复 支持 反对

使用道具 举报

26

主题

161

帖子

485

积分

中级会员

Rank: 3Rank: 3

积分
485
7#
 楼主| 发表于 2015-4-20 12:32:19 | 只看该作者
佰锐科技-邵光清 发表于 2015-4-20 11:47
请问没有触发的时候,是不是录制时间很短?

是的,录制时间是较短
回复 支持 反对

使用道具 举报

26

主题

161

帖子

485

积分

中级会员

Rank: 3Rank: 3

积分
485
8#
 楼主| 发表于 2015-4-20 12:33:38 | 只看该作者
录制时间一定要超过一定的时长才行吗?
回复 支持 反对

使用道具 举报

9#
发表于 2015-4-20 12:42:17 | 只看该作者
lincy 发表于 2015-4-20 12:33
录制时间一定要超过一定的时长才行吗?

您好,录制时间超过5秒才能生成录制文件。
回复 支持 反对

使用道具 举报

249

主题

2967

帖子

9079

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9079
10#
发表于 2015-4-20 12:47:17 | 只看该作者
我模仿BRAS_SetOnServerRecordCallBack,在SDK文件中加了设置服务器录像通知回调函数 BRAS_SetOnServerRecordExCallBack,但是报错:
无法在 DLL“AnyChatServerSDK.dll”中找到名为“BRAS_SetOnServerRecordExCallBack”的入口点。
您好,请升级AnyChat Server SDK到V5.2版本,以前的老版本是不支持“OnServerRecordExCallBack”回调函数的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-5-10 06:48 , Processed in 0.129569 second(s), 22 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表