linphone 录音

复制代码
MakeCall()  
CallParams callParams = core.CreateCallParams(null);

string path = WriteLog.GetCurDir() + "\\record\\" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss", DateTimeFormatInfo.InvariantInfo) + "-out" + txtdial.Text.Trim() + ".wav";
callParams.RecordFile = path;
call = core.InviteAddressWithParams(addnew, callParams);


CallStateChangedDelegate(Linphone.Core core, Linphone.Call call, Linphone.CallState state, string message) 
  if (state == CallState.End)
{ 
call.StopRecording();
}  
if (state == CallState.Connected)
{
call.StartRecording();
}  
PickCall()
CallParams callParams = core.CreateCallParams(null);

string path = WriteLog.GetCurDir() + "\\record\\" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss", DateTimeFormatInfo.InvariantInfo) + "-in1005.wav";
callParams.RecordFile = path;
 call.AcceptWithParams(callParams);

call.StartRecording();
 
复制代码

 

posted @   simadi  阅读(25)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2017-06-19 React Native专题-江清清
2017-06-19 React Native入门-刘望舒
2017-06-19 大神相关网址
2013-06-19 一个简单免费的程序,可以代替360路由器,免费!
2013-06-19 Visual Studio 2012中使用Zen Coding,写html的神器!
2013-06-19 Zen Coding in Visual Studio 2012
2013-06-19 Zen Coding css,html缩写替换大观 快速写出html,css
点击右上角即可分享
微信分享提示