|
我是直接在【OnAnyChatUserEnterRoomActionCallBack】这个回调里面执行的录制开始指令:- int dwFlags = AnyChatServerSDK.ANYCHAT_RECORD_FLAGS_VIDEO + AnyChatServerSDK.ANYCHAT_RECORD_FLAGS_AUDIO + AnyChatServerSDK.ANYCHAT_RECORD_FLAGS_MIXVIDEO + AnyChatServerSDK.ANYCHAT_RECORD_FLAGS_MIXAUDIO + AnyChatServerSDK.ANYCHAT_RECORD_FLAGS_SERVER;
- //接口调用
- AnyChatServerSDK.StreamRecordCtrlEx(dwUserId, 1, dwFlags, 1, "", 0);
复制代码 但是,结束视频后,产生了两个文件,以下是日志:- 06-02 13:53:31:958 OnAnyChatUserLeaveRoomActionCallBack: userid:1 roomid: 1
- 06-02 13:53:32:150 OnAnyChatServerRecordExCallBack: dwUserId1 ,Record Event ,szRecordFileName:D:\soft\AnyChat\AnyChatCoreSDK_Win32_r4641\bin\recordserver\record\2015-06-02\13-53-04-335_mylee_52.mp4 lpUserStr:
- 06-02 13:53:36:175 OnAnyChatUserLeaveRoomActionCallBack: userid:2 roomid: 1
- 06-02 13:53:36:391 OnAnyChatServerRecordExCallBack: dwUserId2 ,Record Event ,szRecordFileName:D:\soft\AnyChat\AnyChatCoreSDK_Win32_r4641\bin\recordserver\record\2015-06-02\13-53-01-277_mylee2_66.mp4 lpUserStr:
复制代码 |
|