|
@@ -12,8 +12,7 @@
|
|
|
|
|
|
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
|
//如果不在通话
|
|
|
- JCCallItem *activeCall = [[VideoManager shared] getActiveCall];
|
|
|
- if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
|
+ if (![[VideoManager shared] isVideoTalking])
|
|
|
return;
|
|
|
|
|
|
UITouch *touch = [touches anyObject];
|
|
@@ -32,8 +31,7 @@
|
|
|
|
|
|
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
|
//如果不在通话
|
|
|
- JCCallItem *activeCall = [[VideoManager shared] getActiveCall];
|
|
|
- if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
|
+ if (![[VideoManager shared] isVideoTalking])
|
|
|
return;
|
|
|
|
|
|
if (!self.isTouchInSmallCanvas)
|
|
@@ -71,10 +69,8 @@
|
|
|
|
|
|
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
|
//如果不在通话
|
|
|
- JCCallItem *activeCall = [[VideoManager shared] getActiveCall];
|
|
|
- if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
|
+ if (![[VideoManager shared] isVideoTalking])
|
|
|
return;
|
|
|
-
|
|
|
self.isTouchInSmallCanvas = NO;
|
|
|
self.isMoveInSmallCanvas = NO;
|
|
|
self.mStartPoint = CGPointMake(0, 0);
|
|
@@ -82,10 +78,8 @@
|
|
|
|
|
|
- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
|
//如果不在通话
|
|
|
- JCCallItem *activeCall = [[VideoManager shared] getActiveCall];
|
|
|
- if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
|
+ if (![[VideoManager shared] isVideoTalking])
|
|
|
return;
|
|
|
-
|
|
|
self.isTouchInSmallCanvas = NO;
|
|
|
self.isMoveInSmallCanvas = NO;
|
|
|
self.mStartPoint = CGPointMake(0, 0);
|