|
@@ -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];
|
|
});
|
|
});
|
|
};
|
|
};
|