Explorar o código

1.保存最后一帧 在退出时做

huangxiaodong hai 1 ano
pai
achega
2734401480

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

@@ -320,9 +320,13 @@ ComontAlretViewControllerDelegate>
 }
 
 - (void)viewWillDisappear:(BOOL)animated {
+    
+    //保存最后一帧
+    [self saveLastImageFun];
+    
     // 退出控制器 回收资源
     [self recyclResource];
-    AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;
+    //AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;
 //    app.allowAutoRotate = NO;
     
     [super viewWillDisappear:animated];
@@ -2872,9 +2876,6 @@ static int  couneeee = 0;
             NSString *commondStr  = @"{\"type\":\"forwardMsg\",\"data\":\"offline_notification\"}";
             [self send_data:commondStr];
             _offlineNotTime = 0;
-            
-            //保存最后一帧
-            [self saveLastImageFun];
         }
     }