| | |
| | | @property (nonatomic,strong) dispatch_source_t openDoorTimer; |
| | | @property (nonatomic, assign) int openDoorTimeout; |
| | | @property (nonatomic, assign) int callTimeout; |
| | | |
| | | @property (nonatomic, assign) BOOL isHangUpByRemote;//æ¯å¦å¯¹æ¹è¿ç¨ææ |
| | | |
| | | @end |
| | | |
| | | @implementation HDLLinphoneIntercomVC{ |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | - (void)linphoneCallUpdate:(NSNotification *)notif { |
| | | int state = [[notif.userInfo objectForKey:@"state"] intValue]; |
| | | if ((state == LinphoneCallEnd || state == LinphoneCallError)) {//ææäº |
| | | if ((state == LinphoneCallEnd || state == LinphoneCallError)) {//ææäº(è½ç¶èªå·±ææä¹ä¼èµ°LinphoneCallUpdateéç¥ï¼ä½èªå·±ææçè¯é¡µé¢å·²éæ¯ï¼ä¸ä¼è§¦åè¯¥æ¹æ³) |
| | | NSLog(@"æææåºéäº"); |
| | | [self stopPlaySystemSound]; |
| | | self.isHangUpByRemote=YES; |
| | | [self showUIAlertViewWithBack:@"éè¯ç»æ"]; |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | } |
| | | return _hangUpTextBtn; |
| | | } |
| | | |
| | | //æ¥å¬ 徿 æé® |
| | | - (UIButton *)answerImgBtn{ |
| | | if (_answerImgBtn == nil) { |
| | |
| | | [self stopPlaySystemSound]; |
| | | //鲿¢ç¨æ·ä¸æææï¼æè
ä¸çæ¶å°å¯¹æ¹çææï¼ç¹å»è¿åæé®ã |
| | | //1.æåSDKç¸å
³ææ¾ |
| | | [self stopPlay]; |
| | | if (!self.isHangUpByRemote) { |
| | | [self stopPlay]; |
| | | } |
| | | //2.Delegateéæ¾ |
| | | self.hdlLinphoneCallDelegate = nil; |
| | | //3.宿¶å¨éæ¾ |
| | |
| | | } |
| | | |
| | | -(void)dealloc{ |
| | | NSLog(@"==============dealloc 1"); |
| | | [[NSNotificationCenter defaultCenter] removeObserver:self]; |
| | | NSLog(@"==============dealloc å¯¹è±¡éæ¯äº"); |
| | | // [[NSNotificationCenter defaultCenter] removeObserver:self]; |
| | | } |
| | | - (void)willEnterForeground:(NSNotification*)notification{ |
| | | NSLog(@"willEnterForeground"); |