diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index e545cce93..605fa542c 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -24,11 +24,12 @@ #include #import +#import #import -#import #import -#import #import +#import +#import #import "LinphoneManager.h" #import "LinphoneCoreSettingsStore.h" @@ -2313,9 +2314,12 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { /*IOS specific*/ linphone_core_start_dtmf_stream(theLinphoneCore); + [AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo + completionHandler:^(BOOL granted){ + }]; /*start the video preview in case we are in the main view*/ - if (linphone_core_video_display_enabled(theLinphoneCore)) { //&& [self lpConfigBoolForKey:@"preview_preference"]) { + if (linphone_core_video_display_enabled(theLinphoneCore) && [self lpConfigBoolForKey:@"preview_preference"]) { linphone_core_enable_video_preview(theLinphoneCore, TRUE); } /*check last keepalive handler date*/