diff --git a/Classes/InCallViewController.m b/Classes/InCallViewController.m index fe54143e8..e23e914ed 100644 --- a/Classes/InCallViewController.m +++ b/Classes/InCallViewController.m @@ -202,24 +202,7 @@ static UICompositeViewDescription *compositeDescription = nil; - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { [super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration]; - CGRect frame = [videoPreview frame]; - switch (toInterfaceOrientation) { - case UIInterfaceOrientationPortrait: - [videoPreview setTransform: CGAffineTransformMakeRotation(0)]; - break; - case UIInterfaceOrientationPortraitUpsideDown: - [videoPreview setTransform: CGAffineTransformMakeRotation(M_PI)]; - break; - case UIInterfaceOrientationLandscapeLeft: - [videoPreview setTransform: CGAffineTransformMakeRotation(M_PI / 2)]; - break; - case UIInterfaceOrientationLandscapeRight: - [videoPreview setTransform: CGAffineTransformMakeRotation(-M_PI / 2)]; - break; - default: - break; - } - [videoPreview setFrame:frame]; +// in mode display_filter_auto_rotate=0, no need to rotate the preview } diff --git a/Resources/linphonerc b/Resources/linphonerc index 040abc310..560a9780a 100644 --- a/Resources/linphonerc +++ b/Resources/linphonerc @@ -14,7 +14,6 @@ capture=1 show_local=0 enabled=1 size=qvga -display_filter_auto_rotate=1 automatically_initiate=0 automatically_accept=0 diff --git a/Resources/linphonerc-factory b/Resources/linphonerc-factory index e16499cd6..fb48ebbdf 100644 --- a/Resources/linphonerc-factory +++ b/Resources/linphonerc-factory @@ -45,3 +45,5 @@ sharing_server=https://www.linphone.org:444/upload.php ice=1 stun=stun.linphone.org +[video] +display_filter_auto_rotate=0 diff --git a/Resources/linphonerc-factory~ipad b/Resources/linphonerc-factory~ipad index e9e636be0..80aa4e891 100644 --- a/Resources/linphonerc-factory~ipad +++ b/Resources/linphonerc-factory~ipad @@ -44,3 +44,6 @@ transport=tls sharing_server=https://www.linphone.org:444/upload.php ice=1 stun=stun.linphone.org + +[video] +display_filter_auto_rotate=0 diff --git a/Resources/linphonerc~ipad b/Resources/linphonerc~ipad index 9458f6e74..4efe5a33e 100644 --- a/Resources/linphonerc~ipad +++ b/Resources/linphonerc~ipad @@ -14,7 +14,6 @@ capture=1 show_local=1 enabled=1 size=vga -display_filter_auto_rotate=1 automatically_initiate=0 automatically_accept=0 @@ -27,4 +26,5 @@ animations_preference=1 edge_opt_preference=0 [default_values] -reg_expires=600 \ No newline at end of file +reg_expires=600 +