Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linphone record. #7

Open
ERaawr opened this issue Jul 5, 2017 · 1 comment
Open

Linphone record. #7

ERaawr opened this issue Jul 5, 2017 · 1 comment

Comments

@ERaawr
Copy link

ERaawr commented Jul 5, 2017

I'm trying to make record a call, only the file is not saved. I do not even know if I'm recording.

My code looks something like this:


//////////////
let currentCall = linphone_core_get_current_call(lc)
let currentCallParameters = linphone_call_get_current_params(currentCall)

let path = Bundle.main.path(forResource: "call", ofType: "wav")
linphone_call_params_set_record_file(currentCallParameters, path)

/////When the call begins
let currentCall = linphone_core_get_current_call(lc)

linphone_call_start_recording(currentCall)
/*
--This message appears--
ortp-error-linphone_call_start_recording(): no output file specified. Use linphone_call_params_set_record_file().
*/

/////When the call ends
let currentCall = linphone_core_get_current_call(lc)
linphone_call_stop_recording(currentCall)

let currentcallparameters = linphone_call_get_current_params(currentCall)
let file = linphone_call_params_get_record_file(currentcallparameters)
let fileStr: String? = String(validatingUTF8: file!)
/*
It's the same path I added.
*/

I've tried other ways, but none of them work. I hope someone can help me.
Thank you.

@AdonLuo
Copy link

AdonLuo commented Aug 3, 2018

This function must be used before the call parameters are assigned to the call.

and then call ' linphone_core_update_call() '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants