Browse Source

1.修复重启云机问题

huangxiaodong 1 year ago
parent
commit
b626d68fb4

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

@@ -1503,10 +1503,14 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
 #pragma mark 重启盒子
 #pragma mark 重启盒子
     //{"type":"reboot"}
     //{"type":"reboot"}
     nextVC.needToReboot = ^{
     nextVC.needToReboot = ^{
+        
         NSString *commondStr  = @"{\"type\":\"reboot\"}";
         NSString *commondStr  = @"{\"type\":\"reboot\"}";
         [self send_data:commondStr];
         [self send_data:commondStr];
         
         
-        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(20 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+        //最后一帧 没显示正在重启问题
+        self->_canShowImgAndVoiceType = YES;
+        
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(30 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
             [self reconnectDevice];
             [self reconnectDevice];
         });
         });
     };
     };