mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
ios: auto-enable speaker when doing a video call
This commit is contained in:
parent
a738e3a6f6
commit
32cb035988
1 changed files with 8 additions and 1 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#import "VideoViewController.h"
|
||||
#import "LinphoneManager.h"
|
||||
#import <AudioToolbox/AudioToolbox.h>
|
||||
|
||||
@implementation VideoViewController
|
||||
@synthesize mDisplay;
|
||||
|
|
@ -68,7 +69,13 @@
|
|||
-(void) viewWillAppear:(BOOL)animated {
|
||||
[super viewWillAppear:animated];
|
||||
linphone_core_set_native_video_window_id([LinphoneManager getLc],(unsigned long)mDisplay);
|
||||
linphone_core_set_native_preview_window_id([LinphoneManager getLc],(unsigned long)mPreview);
|
||||
linphone_core_set_native_preview_window_id([LinphoneManager getLc],(unsigned long)mPreview);
|
||||
|
||||
//redirect audio to speaker
|
||||
UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;
|
||||
AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute
|
||||
, sizeof (audioRouteOverride)
|
||||
, &audioRouteOverride);
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue