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 @ 2023-06-19 10:03  simadi  阅读(22)  评论(0编辑  收藏  举报