|
板凳
楼主 |
发表于 2014-9-22 17:29:40
|
只看该作者
我首先设置了
anychat.SetSDKOptionString(AnyChatDefine.BRAC_SO_RECORD_TMPDIR,
Environment.getExternalStorageDirectory() + "/");
anychat.SetSDKOptionString(AnyChatDefine.BRAC_SO_SNAPSHOT_TMPDIR,
Environment.getExternalStorageDirectory() + "/");
AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_RECORD_WIDTH, 240);
AnyChatCoreSDK
.SetSDKOptionInt(AnyChatDefine.BRAC_SO_RECORD_HEIGHT, 320);
AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_RECORD_VIDEOBR,
90000);
AnyChatCoreSDK.SetSDKOptionInt(
AnyChatDefine.BRAC_SO_RECORD_FILENAMERULE, 0);
然后调用
anychat.StreamRecordCtrlEx(-1,1,
AnyChatDefine.ANYCHAT_RECORD_FLAGS_VIDEO, 0, "");
启动录制
然后调用
anychat.StreamRecordCtrlEx(-1, 0,
AnyChatDefine.ANYCHAT_RECORD_FLAGS_VIDEO, 0, "");
停止录制。然后程序闪退了。是哪里出问题了? |
|