huangxiaodong 1 年間 前
コミット
d4c2815df2
共有1 個のファイルを変更した8 個の追加4 個の削除を含む
  1. 8 4
      创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

+ 8 - 4
创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

@@ -72,6 +72,8 @@
     ksharedAppDelegate.supportScreenRotateType = NO;
     
     [self removeNewIndicator];
+    [_playerSecondTimer invalidate];
+    _webRtcMsgMod = nil;
 }
 
 - (void)setWebRtcMsgMod:(webRtcMsgModel *)webRtcMsgMod
@@ -107,7 +109,7 @@
     [self setTimerCountDown];
     
     //CGFloat curRate = 1080.0/1920.0;
-    CGFloat curRate = phoneSize.width/phoneSize.height;
+    //CGFloat curRate = phoneSize.width/phoneSize.height;
     
     [self showNewIndicatorWithCanBack:YES canTouch:NO];
     
@@ -160,8 +162,10 @@
     }
     
     HLog(@"发起重连 ......")
+    
+    KWeakSelf
     mainBlock(^{
-        [self showNewIndicatorWithCanBack:YES canTouch:NO];
+        [weakSelf showNewIndicatorWithCanBack:YES canTouch:NO];
         
         //判断是否是全屏
         BOOL fullscreenType = [HWDataManager getBoolWithKey:Consn_player_full_screen_show];
@@ -170,7 +174,7 @@
             phoneSize = [RCCommandHelp commondToSetFullScreenPhoneSizeBySize];
         }
         
-        [self linkWebRtcFunWithSize:phoneSize];
+        [weakSelf linkWebRtcFunWithSize:phoneSize];
     });
 }
 
@@ -293,7 +297,7 @@
                 break;
             case 101:
                 {
-                    self.controlBtn.userInteractionEnabled = NO;
+                    weakSelf.controlBtn.userInteractionEnabled = NO;
                     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                         self->controlBtn.userInteractionEnabled = YES;
                     });