|
@@ -7,7 +7,7 @@
|
|
//
|
|
//
|
|
|
|
|
|
#import "SKInCallViewController.h"
|
|
#import "SKInCallViewController.h"
|
|
-#import "JuphoonManager+ringtone.h"
|
|
|
|
|
|
+#import "VideoManager+ringtone.h"
|
|
|
|
|
|
#define kDoodleVersionChecker 1
|
|
#define kDoodleVersionChecker 1
|
|
#define AUDIO_RECORD_DIR @"audio_record"
|
|
#define AUDIO_RECORD_DIR @"audio_record"
|
|
@@ -64,7 +64,7 @@
|
|
[EUtil setViewShadow:self.mWaitNameLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mWaitNameLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mWaitOutHintLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mWaitOutHintLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mWaitInHintLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mWaitInHintLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
- [JuphoonManager shared].mJuphoonMediaDevice.videoAngle = JCMediaDeviceVideoAngel0;
|
|
|
|
|
|
+ [VideoManager shared].mJuphoonMediaDevice.videoAngle = JCMediaDeviceVideoAngel0;
|
|
|
|
|
|
[EUtil setViewShadow:self.mIngNameLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mIngNameLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mIngTimeLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
[EUtil setViewShadow:self.mIngTimeLabel color:[UIColor colorWithRed:0/255.0f green:1/255.0f blue:75/255.0f alpha:0.2] offset:CGSizeMake(0, 2) opacity:1 radius:4];
|
|
@@ -76,7 +76,7 @@
|
|
isMoveInSmallCanvas = NO;
|
|
isMoveInSmallCanvas = NO;
|
|
[self initView];
|
|
[self initView];
|
|
[self updateUI:nil];
|
|
[self updateUI:nil];
|
|
- [[JuphoonManager shared] playVideoWaitingRingtone];
|
|
|
|
|
|
+ [[VideoManager shared] playVideoWaitingRingtone];
|
|
}
|
|
}
|
|
|
|
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
@@ -85,7 +85,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
- (void)viewDidAppear:(BOOL)animated {
|
|
- (void)viewDidAppear:(BOOL)animated {
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice enableSpeaker:YES];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice enableSpeaker:YES];
|
|
}
|
|
}
|
|
|
|
|
|
- (void)viewWillDisappear:(BOOL)animated {
|
|
- (void)viewWillDisappear:(BOOL)animated {
|
|
@@ -103,7 +103,7 @@
|
|
- (void)dealloc {
|
|
- (void)dealloc {
|
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
[[UIApplication sharedApplication] setIdleTimerDisabled:NO];
|
|
[[UIApplication sharedApplication] setIdleTimerDisabled:NO];
|
|
- [[JuphoonManager shared] playVideoFinishRingtone];
|
|
|
|
|
|
+ [[VideoManager shared] playVideoFinishRingtone];
|
|
}
|
|
}
|
|
|
|
|
|
- (NSObject*)getRemoteCanvas {
|
|
- (NSObject*)getRemoteCanvas {
|
|
@@ -111,12 +111,12 @@
|
|
}
|
|
}
|
|
|
|
|
|
- (void)initView {
|
|
- (void)initView {
|
|
- [EUtil setURLImage:self.mWaitHeadImage placeHolderName:@"avatar" imageURL:[[JuphoonManager shared] getTalkHeadImageURL] cornerRadius:self.mWaitHeadImage.frame.size.width/2];
|
|
|
|
|
|
+ [EUtil setURLImage:self.mWaitHeadImage placeHolderName:@"avatar" imageURL:[[VideoManager shared] getTalkHeadImageURL] cornerRadius:self.mWaitHeadImage.frame.size.width/2];
|
|
}
|
|
}
|
|
|
|
|
|
- (void)updateUI:(NSNotification *)noti {
|
|
- (void)updateUI:(NSNotification *)noti {
|
|
- NSInteger count = [JuphoonManager shared].mJuphoonCall.callItems.count;
|
|
|
|
- JCCallItem *activeCall = [JuphoonManager shared].mJuphoonCall.callItems.firstObject;
|
|
|
|
|
|
+ NSInteger count = [VideoManager shared].mJuphoonCall.callItems.count;
|
|
|
|
+ JCCallItem *activeCall = [VideoManager shared].mJuphoonCall.callItems.firstObject;
|
|
HDNormalLog(([NSString stringWithFormat:@"SKJuphoon: updateUI count:%ld updateUI: %ld", count, activeCall.state]));
|
|
HDNormalLog(([NSString stringWithFormat:@"SKJuphoon: updateUI count:%ld updateUI: %ld", count, activeCall.state]));
|
|
|
|
|
|
if (activeCall.state == JCCallStateInit || activeCall.state == JCCallStatePending) {
|
|
if (activeCall.state == JCCallStateInit || activeCall.state == JCCallStatePending) {
|
|
@@ -128,18 +128,18 @@
|
|
self.mIngView.hidden = YES;
|
|
self.mIngView.hidden = YES;
|
|
|
|
|
|
self.mIngNameLabel.text = @"";
|
|
self.mIngNameLabel.text = @"";
|
|
- self.mWaitNameLabel.text = [[JuphoonManager shared] getTalkName];
|
|
|
|
|
|
+ self.mWaitNameLabel.text = [[VideoManager shared] getTalkName];
|
|
self.mWaitInHintLabel.hidden = activeCall.direction != JCCallDirectionIn;
|
|
self.mWaitInHintLabel.hidden = activeCall.direction != JCCallDirectionIn;
|
|
self.mWaitOutHintLabel.hidden = activeCall.direction != JCCallDirectionOut;
|
|
self.mWaitOutHintLabel.hidden = activeCall.direction != JCCallDirectionOut;
|
|
|
|
|
|
if (activeCall.video) {
|
|
if (activeCall.video) {
|
|
if (_localCanvas == nil && activeCall.uploadVideoStreamSelf) {
|
|
if (_localCanvas == nil && activeCall.uploadVideoStreamSelf) {
|
|
- _localCanvas = [[JuphoonManager shared].mJuphoonMediaDevice startCameraVideo:JCMediaDeviceRenderFullScreen];
|
|
|
|
|
|
+ _localCanvas = [[VideoManager shared].mJuphoonMediaDevice startCameraVideo:JCMediaDeviceRenderFullScreen];
|
|
//_localCanvas.videoView.frame = CGRectMake(SCREEN_WIDTH - 150, SCREEN_HEIGHT - 150 - 160, 120, 160);
|
|
//_localCanvas.videoView.frame = CGRectMake(SCREEN_WIDTH - 150, SCREEN_HEIGHT - 150 - 160, 120, 160);
|
|
_localCanvas.videoView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
|
_localCanvas.videoView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
|
[self.view insertSubview:_localCanvas.videoView aboveSubview:self.backgroudView];
|
|
[self.view insertSubview:_localCanvas.videoView aboveSubview:self.backgroudView];
|
|
} else if (_localCanvas != nil && !activeCall.uploadVideoStreamSelf) {
|
|
} else if (_localCanvas != nil && !activeCall.uploadVideoStreamSelf) {
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice stopVideo:_localCanvas];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice stopVideo:_localCanvas];
|
|
[_localCanvas.videoView removeFromSuperview];
|
|
[_localCanvas.videoView removeFromSuperview];
|
|
_localCanvas = nil;
|
|
_localCanvas = nil;
|
|
}
|
|
}
|
|
@@ -150,23 +150,23 @@
|
|
self.mWaitHeaderView.hidden = YES;
|
|
self.mWaitHeaderView.hidden = YES;
|
|
self.mIngHeaderView.hidden = NO;
|
|
self.mIngHeaderView.hidden = NO;
|
|
self.mIngView.hidden = NO;
|
|
self.mIngView.hidden = NO;
|
|
- self.mIngNameLabel.text = [[JuphoonManager shared] getTalkName];
|
|
|
|
|
|
+ self.mIngNameLabel.text = [[VideoManager shared] getTalkName];
|
|
|
|
|
|
self.switchCameraBtn.enabled = activeCall.video;
|
|
self.switchCameraBtn.enabled = activeCall.video;
|
|
self.holdBtn.enabled = !activeCall.held;
|
|
self.holdBtn.enabled = !activeCall.held;
|
|
self.holdBtn.selected = activeCall.hold;
|
|
self.holdBtn.selected = activeCall.hold;
|
|
self.muteBtn.selected = activeCall.mute;
|
|
self.muteBtn.selected = activeCall.mute;
|
|
- self.speakerBtn.selected = [JuphoonManager shared].mJuphoonMediaDevice.isSpeakerOn;
|
|
|
|
|
|
+ self.speakerBtn.selected = [VideoManager shared].mJuphoonMediaDevice.isSpeakerOn;
|
|
|
|
|
|
if (activeCall != nil && activeCall.audioRecord && (activeCall.hold || activeCall.held)) {
|
|
if (activeCall != nil && activeCall.audioRecord && (activeCall.hold || activeCall.held)) {
|
|
- [[JuphoonManager shared].mJuphoonCall audioRecord:activeCall enable:false filePath:@""];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonCall audioRecord:activeCall enable:false filePath:@""];
|
|
}
|
|
}
|
|
if (activeCall != nil && activeCall.localVideoRecord && !activeCall.uploadVideoStreamSelf) {
|
|
if (activeCall != nil && activeCall.localVideoRecord && !activeCall.uploadVideoStreamSelf) {
|
|
- //[[JuphoonManager shared].mJuphoonCall videoRecord:activeCall enable:false remote:false width:0 height:0 filePath:@""];
|
|
|
|
- [[JuphoonManager shared].mJuphoonCall videoRecord:activeCall enable:false remote:false width:0 height:0 filePath:@"" bothAudio:false keyFrame:10];
|
|
|
|
|
|
+ //[[VideoManager shared].mJuphoonCall videoRecord:activeCall enable:false remote:false width:0 height:0 filePath:@""];
|
|
|
|
+ [[VideoManager shared].mJuphoonCall videoRecord:activeCall enable:false remote:false width:0 height:0 filePath:@"" bothAudio:false keyFrame:10];
|
|
}
|
|
}
|
|
if (activeCall != nil && activeCall.remoteVideoRecord && !activeCall.uploadVideoStreamOther) {
|
|
if (activeCall != nil && activeCall.remoteVideoRecord && !activeCall.uploadVideoStreamOther) {
|
|
- [[JuphoonManager shared].mJuphoonCall videoRecord:activeCall enable:false remote:true width:0 height:0 filePath:@"" bothAudio:false keyFrame:10];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonCall videoRecord:activeCall enable:false remote:true width:0 height:0 filePath:@"" bothAudio:false keyFrame:10];
|
|
}
|
|
}
|
|
if (activeCall.video) {
|
|
if (activeCall.video) {
|
|
if (_localCanvas != nil && activeCall.uploadVideoStreamSelf) {
|
|
if (_localCanvas != nil && activeCall.uploadVideoStreamSelf) {
|
|
@@ -177,20 +177,20 @@
|
|
}
|
|
}
|
|
|
|
|
|
if (_remoteCanvas == nil && activeCall.uploadVideoStreamOther) {
|
|
if (_remoteCanvas == nil && activeCall.uploadVideoStreamOther) {
|
|
- _remoteCanvas = [[JuphoonManager shared].mJuphoonMediaDevice startVideo:activeCall.renderId renderType:JCMediaDeviceRenderFullContent];
|
|
|
|
|
|
+ _remoteCanvas = [[VideoManager shared].mJuphoonMediaDevice startVideo:activeCall.renderId renderType:JCMediaDeviceRenderFullContent];
|
|
_remoteCanvas.videoView.frame = self.view.frame;
|
|
_remoteCanvas.videoView.frame = self.view.frame;
|
|
_remoteCanvas.videoView.hidden = !activeCall.uploadVideoStreamSelf;
|
|
_remoteCanvas.videoView.hidden = !activeCall.uploadVideoStreamSelf;
|
|
[self.view insertSubview:_remoteCanvas.videoView aboveSubview:self.backgroudView];
|
|
[self.view insertSubview:_remoteCanvas.videoView aboveSubview:self.backgroudView];
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice enableSpeaker:YES];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice enableSpeaker:YES];
|
|
} else if (_remoteCanvas != nil && !activeCall.uploadVideoStreamOther) {
|
|
} else if (_remoteCanvas != nil && !activeCall.uploadVideoStreamOther) {
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice stopVideo:_remoteCanvas];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice stopVideo:_remoteCanvas];
|
|
[_remoteCanvas.videoView removeFromSuperview];
|
|
[_remoteCanvas.videoView removeFromSuperview];
|
|
_remoteCanvas = nil;
|
|
_remoteCanvas = nil;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
[self startTimer];
|
|
[self startTimer];
|
|
- [[JuphoonManager shared] stopVideoRingtone];
|
|
|
|
|
|
+ [[VideoManager shared] stopVideoRingtone];
|
|
} else {
|
|
} else {
|
|
self.mInVideoView.hidden = YES;
|
|
self.mInVideoView.hidden = YES;
|
|
}
|
|
}
|
|
@@ -202,41 +202,41 @@
|
|
#pragma mark - Incoming Actions
|
|
#pragma mark - Incoming Actions
|
|
- (IBAction)endCall:(id)sender {
|
|
- (IBAction)endCall:(id)sender {
|
|
//通话中挂断; 自己发起时,对方未接通,自己挂断//
|
|
//通话中挂断; 自己发起时,对方未接通,自己挂断//
|
|
- [[JuphoonManager shared] videoEnd:NO isSendMessage:YES];
|
|
|
|
|
|
+ [[VideoManager shared] videoEnd:NO isSendMessage:YES];
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)endCallWhenIncoming:(id)sender {
|
|
- (IBAction)endCallWhenIncoming:(id)sender {
|
|
//对方发起时,自己拒接//
|
|
//对方发起时,自己拒接//
|
|
- [[JuphoonManager shared] videoEnd:YES isSendMessage:YES];
|
|
|
|
|
|
+ [[VideoManager shared] videoEnd:YES isSendMessage:YES];
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)videoAnswer:(id)sender {
|
|
- (IBAction)videoAnswer:(id)sender {
|
|
- [[JuphoonManager shared].mJuphoonCall answer:[self getActiveCall] video:true];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonCall answer:[self getActiveCall] video:true];
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)voiceAnswer:(id)sender {
|
|
- (IBAction)voiceAnswer:(id)sender {
|
|
- [[JuphoonManager shared].mJuphoonCall answer:[self getActiveCall] video:false];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonCall answer:[self getActiveCall] video:false];
|
|
}
|
|
}
|
|
|
|
|
|
#pragma mark - In Calling Actions
|
|
#pragma mark - In Calling Actions
|
|
|
|
|
|
- (IBAction)setCameraState:(id)sender {
|
|
- (IBAction)setCameraState:(id)sender {
|
|
- [[JuphoonManager shared].mJuphoonCall enableUploadVideoStream:[self getActiveCall]];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonCall enableUploadVideoStream:[self getActiveCall]];
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)addNewCall:(id)sender {
|
|
- (IBAction)addNewCall:(id)sender {
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)switchCamera:(id)sender {
|
|
- (IBAction)switchCamera:(id)sender {
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice switchCamera];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice switchCamera];
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)hold:(id)sender {
|
|
- (IBAction)hold:(id)sender {
|
|
- [[JuphoonManager shared].mJuphoonCall hold:[self getActiveCall]];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonCall hold:[self getActiveCall]];
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)mute:(id)sender {
|
|
- (IBAction)mute:(id)sender {
|
|
- [[JuphoonManager shared].mJuphoonCall mute:[self getActiveCall]];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonCall mute:[self getActiveCall]];
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)audioRecord:(id)sender {
|
|
- (IBAction)audioRecord:(id)sender {
|
|
@@ -249,8 +249,8 @@
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)speaker:(id)sender {
|
|
- (IBAction)speaker:(id)sender {
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice enableSpeaker:![JuphoonManager shared].mJuphoonMediaDevice.isSpeakerOn];
|
|
|
|
- self.speakerBtn.selected = [JuphoonManager shared].mJuphoonMediaDevice.isSpeakerOn;
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice enableSpeaker:![VideoManager shared].mJuphoonMediaDevice.isSpeakerOn];
|
|
|
|
+ self.speakerBtn.selected = [VideoManager shared].mJuphoonMediaDevice.isSpeakerOn;
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)callStatistics:(id)sender {
|
|
- (IBAction)callStatistics:(id)sender {
|
|
@@ -258,7 +258,7 @@
|
|
|
|
|
|
#pragma mark - 工具函数
|
|
#pragma mark - 工具函数
|
|
-(JCCallItem*)getActiveCall {
|
|
-(JCCallItem*)getActiveCall {
|
|
- for (JCCallItem* item in [JuphoonManager shared].mJuphoonCall.callItems) {
|
|
|
|
|
|
+ for (JCCallItem* item in [VideoManager shared].mJuphoonCall.callItems) {
|
|
if (item.active) {
|
|
if (item.active) {
|
|
return item;
|
|
return item;
|
|
}
|
|
}
|
|
@@ -304,13 +304,13 @@
|
|
|
|
|
|
- (void)removeCanvas {
|
|
- (void)removeCanvas {
|
|
if (_localCanvas) {
|
|
if (_localCanvas) {
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice stopVideo:_localCanvas];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice stopVideo:_localCanvas];
|
|
[_localCanvas.videoView removeFromSuperview];
|
|
[_localCanvas.videoView removeFromSuperview];
|
|
_localCanvas = nil;
|
|
_localCanvas = nil;
|
|
_mSmallCanvas = nil;
|
|
_mSmallCanvas = nil;
|
|
}
|
|
}
|
|
if (_remoteCanvas) {
|
|
if (_remoteCanvas) {
|
|
- [[JuphoonManager shared].mJuphoonMediaDevice stopVideo:_remoteCanvas];
|
|
|
|
|
|
+ [[VideoManager shared].mJuphoonMediaDevice stopVideo:_remoteCanvas];
|
|
[_remoteCanvas.videoView removeFromSuperview];
|
|
[_remoteCanvas.videoView removeFromSuperview];
|
|
_remoteCanvas = nil;
|
|
_remoteCanvas = nil;
|
|
}
|
|
}
|
|
@@ -335,7 +335,7 @@
|
|
|
|
|
|
- (void)timerProc {
|
|
- (void)timerProc {
|
|
self.mIngHeaderView.hidden = NO;
|
|
self.mIngHeaderView.hidden = NO;
|
|
- JCCallItem *activeCall = [JuphoonManager shared].mJuphoonCall.callItems.firstObject;
|
|
|
|
|
|
+ JCCallItem *activeCall = [VideoManager shared].mJuphoonCall.callItems.firstObject;
|
|
self.mIngTimeLabel.text = [self genCallInfo:activeCall];
|
|
self.mIngTimeLabel.text = [self genCallInfo:activeCall];
|
|
self.mIngNetWorkLabel.text = [self genNetStatus:activeCall];
|
|
self.mIngNetWorkLabel.text = [self genNetStatus:activeCall];
|
|
if (activeCall.direction == JCCallDirectionOut) {
|
|
if (activeCall.direction == JCCallDirectionOut) {
|
|
@@ -344,7 +344,7 @@
|
|
|
|
|
|
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
//如果不在通话
|
|
//如果不在通话
|
|
- JCCallItem *activeCall = [JuphoonManager shared].mJuphoonCall.callItems.firstObject;
|
|
|
|
|
|
+ JCCallItem *activeCall = [VideoManager shared].mJuphoonCall.callItems.firstObject;
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
return;
|
|
return;
|
|
|
|
|
|
@@ -364,7 +364,7 @@
|
|
|
|
|
|
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
//如果不在通话
|
|
//如果不在通话
|
|
- JCCallItem *activeCall = [JuphoonManager shared].mJuphoonCall.callItems.firstObject;
|
|
|
|
|
|
+ JCCallItem *activeCall = [VideoManager shared].mJuphoonCall.callItems.firstObject;
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
return;
|
|
return;
|
|
|
|
|
|
@@ -403,7 +403,7 @@
|
|
|
|
|
|
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
//如果不在通话
|
|
//如果不在通话
|
|
- JCCallItem *activeCall = [JuphoonManager shared].mJuphoonCall.callItems.firstObject;
|
|
|
|
|
|
+ JCCallItem *activeCall = [VideoManager shared].mJuphoonCall.callItems.firstObject;
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
return;
|
|
return;
|
|
|
|
|
|
@@ -414,7 +414,7 @@
|
|
|
|
|
|
- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
//如果不在通话
|
|
//如果不在通话
|
|
- JCCallItem *activeCall = [JuphoonManager shared].mJuphoonCall.callItems.firstObject;
|
|
|
|
|
|
+ JCCallItem *activeCall = [VideoManager shared].mJuphoonCall.callItems.firstObject;
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
if (!activeCall.video && activeCall.state != JCCallStateTalking)
|
|
return;
|
|
return;
|
|
|
|
|