Browse Source

1.推流页重启云机二次确认

huangxiaodong 1 year ago
parent
commit
53f13da49c
1 changed files with 25 additions and 1 deletions
  1. 25 1
      创维盒子/双子星云手机/CloudPlayer/PlayerViewController.mm

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

@@ -1282,7 +1282,7 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
 #pragma mark 重启盒子
             case 11:
                 {
-                    [weakSelf needToRebootFun];
+                    [weakSelf didClickRestartFun];
                 }
                 break;
             case 12:
@@ -1442,6 +1442,30 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
 //    });
 }
 
+#pragma mark 点击了重启云机
+- (void)didClickRestartFun
+{
+    KWeakSelf
+    /*弹窗提示重启*/
+    ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:NSLocalizedString(@"my_set_no_restart_phone_tips",nil)
+                                                                                     msg:nil
+                                                                                imageStr:nil
+                                                                             cancelTitle:NSLocalizedString(@"other_cancel",nil)
+                                                                                 okTitle:NSLocalizedString(@"my_set_no_restart_phone_btn_ok",nil) isOkBtnHighlight:NO
+                                                                              didClickOk:^{
+        [weakSelf needToRebootFun];
+        //提示语
+        [[iToast makeText:NSLocalizedString(@"player_link_rebooting_Tips",nil)] show];
+    } didClickCancel:^{
+        
+    }];
+    nextVC.modalPresentationStyle = UIModalPresentationCustom;
+
+    [self presentViewController:nextVC animated:YES completion:^{
+        nextVC.view.superview.backgroundColor = [UIColor clearColor];
+    }];
+}
+
 - (void)needToResetFun
 {
     NSString *commondStr  = @"{\"type\":\"reset\"}";