瀏覽代碼

1,重启后重连

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

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

@@ -1458,6 +1458,10 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
     nextVC.needToReboot = ^{
         NSString *commondStr  = @"{\"type\":\"reboot\"}";
         [self send_data:commondStr];
+        
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(30 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+            [self reconnectDevice];
+        });
     };
 }