mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix and clean of call view recording button
This commit is contained in:
parent
f0cfb5db97
commit
d5c9088893
1 changed files with 7 additions and 3 deletions
|
|
@ -726,11 +726,15 @@ static void hideSpinner(LinphoneCall *call, void *user_data) {
|
|||
LinphoneCall *call = linphone_core_get_current_call(LC);
|
||||
linphone_call_stop_recording(call);
|
||||
|
||||
callRecording = FALSE;
|
||||
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
|
||||
NSString *writablePath = [paths objectAtIndex:0];
|
||||
writablePath = [writablePath stringByAppendingString:@""];
|
||||
|
||||
callRecording = FALSE;
|
||||
writablePath = [writablePath stringByAppendingString:@"/"];
|
||||
NSArray *directoryContent = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:writablePath error:NULL];
|
||||
if (directoryContent) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
LOGD(@"Recording Starts");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue