Explorar o código

1.优化预链接相关

huangxiaodong hai 4 días
pai
achega
96b312c92f
Modificáronse 1 ficheiros con 6 adicións e 4 borrados
  1. 6 4
      创维盒子/code/webRtc/webRtcPlayerViewController.m

+ 6 - 4
创维盒子/code/webRtc/webRtcPlayerViewController.m

@@ -190,9 +190,9 @@
     [self initBaseUIFun];
     [self initBaseUIFun];
     [self setTimerCountDown];
     [self setTimerCountDown];
     
     
-    
-    [self showNewIndicatorWithCanBack:YES canTouch:NO];
-    
+    if(didPrelinkPlay){
+        [self showNewIndicatorWithCanBack:YES canTouch:NO];
+    }
 }
 }
 
 
 #pragma mark 链接webrtc
 #pragma mark 链接webrtc
@@ -298,7 +298,9 @@
     [cachesFileManager writeLogsWithMsg:@"webRtcPlayer relinkWebRtcFun"];
     [cachesFileManager writeLogsWithMsg:@"webRtcPlayer relinkWebRtcFun"];
     KWeakSelf
     KWeakSelf
     mainBlock(^{
     mainBlock(^{
-        [weakSelf showNewIndicatorWithCanBack:YES canTouch:NO];
+        if(self->didPrelinkPlay){
+            [weakSelf showNewIndicatorWithCanBack:YES canTouch:NO];
+        }
         
         
         NSInteger curResolution = [HWDataManager getIntegerWithKey:Const_cloudPhone_cur_resolution];
         NSInteger curResolution = [HWDataManager getIntegerWithKey:Const_cloudPhone_cur_resolution];
         CGFloat curWidth = 720.0;
         CGFloat curWidth = 720.0;