瀏覽代碼

1.尝试修复链接闪一下 ---未解决

huangxiaodong 1 年之前
父節點
當前提交
1cc6f4b8c5
共有 1 個文件被更改,包括 19 次插入1 次删除
  1. 19 1
      创维盒子/双子星云手机/CloudPlayer/PlayerViewController.mm

+ 19 - 1
创维盒子/双子星云手机/CloudPlayer/PlayerViewController.mm

@@ -121,6 +121,8 @@ ComontAlretViewControllerDelegate>
     ComontAlretViewController *linkFailAlretVC;
     
     NSTimer *forceStartTimer;//请知重启timer
+    
+    int preIFrameNum;
 }
 @property (nonatomic, strong, nullable) RCVideoRecoderManager *recoderManager;
 @property (nonatomic, strong, nullable) RCAudioRecoderMamager *audioRecoderMamager;
@@ -203,6 +205,7 @@ ComontAlretViewControllerDelegate>
     
     rbdNotification = 0;
     _offlineNotTime = 0;
+    preIFrameNum = 0;
     
     // 初始化
     self.isNeedRecyclResource = YES;
@@ -1052,8 +1055,23 @@ ComontAlretViewControllerDelegate>
             }
             mySelf->saveCIImage = ciImage;
             
+            //尝试修复闪一下 没解决
+//            if(ciImage){
+//
+//                mainBlock(^{
+//                    if(mySelf->preIFrameNum == 0){
+//                        mySelf->mPlayerView.glkshowImageView.hidden = YES;
+//                    }
+//                    else if(mySelf->preIFrameNum == 30){
+//                        mySelf->mPlayerView.glkshowImageView.hidden = NO;
+//                    }
+//                });
+//                preIFrameNum ++;
+//
+//            }
+            
             if (!mySelf->videoContext) mySelf->videoContext = [CIContext contextWithOptions:nil];
-                            
+                        
             if (USEOPENGL)
             {
                 if (ciImage)