|
@@ -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\"}";
|