mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
Ability to drag the video preview
This commit is contained in:
parent
85a0d9bf00
commit
b4fe93840f
2 changed files with 14 additions and 0 deletions
|
|
@ -35,6 +35,9 @@
|
|||
<rect key="frame" x="0.0" y="0.0" width="320" height="460"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<accessibility key="accessibilityConfiguration">
|
||||
<accessibilityTraits key="traits" none="YES" notEnabled="YES"/>
|
||||
</accessibility>
|
||||
</view>
|
||||
<view contentMode="scaleAspectFit" id="127" userLabel="preview">
|
||||
<rect key="frame" x="216.00000029802322" y="323.99999984561953" width="96" height="128"/>
|
||||
|
|
|
|||
|
|
@ -165,6 +165,11 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
[callTableController.tableView setBackgroundColor:[UIColor clearColor]]; // Can't do it in Xib: issue with ios4
|
||||
[callTableController.tableView setBackgroundView:nil]; // Can't do it in Xib: issue with ios4
|
||||
|
||||
UIPanGestureRecognizer *dragndrop =
|
||||
[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(moveVideoPreview:)];
|
||||
dragndrop.minimumNumberOfTouches = 1;
|
||||
[self.videoPreview addGestureRecognizer:dragndrop];
|
||||
}
|
||||
|
||||
- (void)viewDidUnload {
|
||||
|
|
@ -490,4 +495,10 @@ static void hideSpinner(LinphoneCall *call, void *user_data) {
|
|||
[sheet dismissWithClickedButtonIndex:sheet.destructiveButtonIndex animated:TRUE];
|
||||
}
|
||||
|
||||
#pragma mark VideoPreviewMoving
|
||||
|
||||
- (void)moveVideoPreview:(UIPanGestureRecognizer *)dragndrop {
|
||||
self.videoPreview.center = [dragndrop locationInView:videoPreview.superview];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue