|
@@ -149,6 +149,7 @@ ComontAlretViewControllerDelegate>
|
|
|
|
|
|
@property (nonatomic, copy) NSString*LogoutTimerStr;//单点登出时间
|
|
|
@property (nonatomic, assign) BOOL needShowLogoutDelayType;//是否是延时显示单点登出
|
|
|
+@property (nonatomic, assign) BOOL isRebootIngType;//是否为重启中
|
|
|
@end
|
|
|
|
|
|
@implementation PlayerViewController
|
|
@@ -1155,12 +1156,22 @@ ComontAlretViewControllerDelegate>
|
|
|
self.isFirstEnterPhone = NO;
|
|
|
}
|
|
|
|
|
|
+ //重启后重连 出来的
|
|
|
+ if(_isRebootIngType){
|
|
|
+ mainBlock(^{
|
|
|
+ [[iToast makeText:NSLocalizedString(@"player_link_reboot_suc_Tips",nil)] show];
|
|
|
+ });
|
|
|
+ _isRebootIngType = NO;
|
|
|
+ }
|
|
|
+
|
|
|
// 报链接失败 后面又连接上了
|
|
|
if(linkFailAlretVC){
|
|
|
- [linkFailAlretVC dismissViewControllerAnimated:YES completion:^{
|
|
|
-
|
|
|
- }];
|
|
|
- linkFailAlretVC = nil;
|
|
|
+ mainBlock(^{
|
|
|
+ [self->linkFailAlretVC dismissViewControllerAnimated:YES completion:^{
|
|
|
+
|
|
|
+ }];
|
|
|
+ self->linkFailAlretVC = nil;
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
@@ -1531,6 +1542,7 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
|
|
|
//最后一帧 没显示正在重启问题
|
|
|
self->_canShowImgAndVoiceType = YES;
|
|
|
|
|
|
+ self->_isRebootIngType = YES;
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(30 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
[self reconnectDevice];
|
|
|
});
|
|
@@ -1881,6 +1893,12 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ //重启后重连 出来的
|
|
|
+ if(_isRebootIngType){
|
|
|
+ [[iToast makeText:NSLocalizedString(@"player_link_rebooting_Tips",nil)] show];
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
NSString *linkErrTip = NSLocalizedString(@"player_link_fail_couldPhone_Tips",nil);
|
|
|
if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusNotReachable){
|
|
|
linkErrTip = NSLocalizedString(@"player_link_fail_phone_Tips",nil);
|
|
@@ -1924,9 +1942,11 @@ BOOL inReconnect = NO;
|
|
|
self.isFirstEnterPhone = NO;
|
|
|
}
|
|
|
|
|
|
- /*链接失败*/
|
|
|
-
|
|
|
- [[iToast makeText:NSLocalizedString(@"player_link_fail_tip",nil)] show];
|
|
|
+ //重启后重连 出来的 不显示
|
|
|
+ if(!self->_isRebootIngType){
|
|
|
+ /*链接失败*/
|
|
|
+ [[iToast makeText:NSLocalizedString(@"player_link_fail_tip",nil)] show];
|
|
|
+ }
|
|
|
|
|
|
HLog(@"yyyyyyyyyyyyy");
|
|
|
|