| | |
| | | //开始反呼 |
| | | [self StartReverseCall]; |
| | | [self ShowCalltimeBtn:callingStr]; |
| | | // //暂时不支持开锁功能 |
| | | // [self setUnlock:NO]; |
| | | |
| | | //注册开锁成功监听 |
| | | [self addOpenSuccessAction]; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | - (void)initTopBarView { |
| | | UIView *TopView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, APP_TOP_BAR_HEIGHT)]; |
| | | TopView.backgroundColor = HEXCOLORA(0xF7F7F7,1.0); |
| | |
| | | TopView.layer.shadowOffset = CGSizeMake(0,0.5); |
| | | TopView.layer.shadowOpacity = 1; |
| | | TopView.layer.shadowRadius = 0; |
| | | |
| | | } |
| | | |
| | | - (UIButton *)backButton{ |
| | |
| | | |
| | | } |
| | | |
| | | - (int *)getTextWidth:(UIButton*) btn |
| | | { |
| | | int textWidth = 0; |
| | | // CGSize size = [btn.titleLabel.textsizeWithFont:[UIFontboldSystemFontOfSize:15]constrainedToSize:contentMaxSizes lineBreakMode:UILineBreakModeCharacterWrap]; |
| | | // textWidth = (int)fontSize.Width; |
| | | return textWidth; |
| | | } |
| | | //- (int *)getTextWidth:(UIButton*) btn |
| | | //{ |
| | | // int textWidth = 0; |
| | | // // CGSize size = [btn.titleLabel.textsizeWithFont:[UIFontboldSystemFontOfSize:15]constrainedToSize:contentMaxSizes lineBreakMode:UILineBreakModeCharacterWrap]; |
| | | // // textWidth = (int)fontSize.Width; |
| | | // return textWidth; |
| | | //} |
| | | |
| | | |
| | | |
| | |
| | | param.psk = [[LCApiKit sharedInstance] currentPsk]; |
| | | /** 7. 设置播放密钥,非必传,传了会提升拉流速度 */ |
| | | param.playToken = [[LCApiKit sharedInstance] currentDevicePlayToken];; |
| | | |
| | | /** 8. 对讲请求类型,call呼叫,如果不传,默认为talk */ |
| | | param.talkType = @"call";//2021-10-28 新增 |
| | | NSInteger result = [self.talker playTalk:param]; |
| | | if (result != 0) { |
| | | //错误处理 |
| | |
| | | |
| | | } |
| | | |
| | | [[NSNotificationCenter defaultCenter] removeObserver:self]; |
| | | } |
| | | |
| | | -(void)dealloc{ |
| | | NSLog(@"==============dealloc 1"); |
| | | |
| | | [[NSNotificationCenter defaultCenter] removeObserver:self]; |
| | | } |
| | | |
| | | //#pragma mark ESVideoPhoneDelegate |
| | |
| | | - (void)stopPlaySystemSound{ |
| | | // return; |
| | | NSLog(@"stop PlaySystemSound"); |
| | | stopRingAndVibration(); |
| | | LCStopRingAndVibration(); |
| | | } |
| | | |
| | | //停止响铃和震动,移除回调并处理掉铃声和震动 |
| | | void stopRingAndVibration() { |
| | | void LCStopRingAndVibration() { |
| | | AudioServicesRemoveSystemSoundCompletion(kSystemSoundID_Vibrate); |
| | | // AudioServicesRemoveSystemSoundCompletion(sound); |
| | | AudioServicesDisposeSystemSoundID(kSystemSoundID_Vibrate); |