|
@@ -264,7 +264,7 @@ ComontAlretViewControllerDelegate>
|
|
|
|
|
|
//第一次进 先输入密码才能连接
|
|
|
if([connectDeviceManager shareInstance].isFirstInputPwdDone){
|
|
|
- if([connectDeviceManager shareInstance].DeviceThirdIdMod.data.isPingOk){
|
|
|
+ if([connectDeviceManager shareInstance].isPingOk){
|
|
|
ip = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.ip;
|
|
|
internetVideoPort = @"9100";
|
|
|
[self didCanConnectServerFun];
|
|
@@ -506,7 +506,7 @@ ComontAlretViewControllerDelegate>
|
|
|
self.commandChannelManager = [[RCCommandChannelManager alloc] init];
|
|
|
NSString *instructionsChannelUrl = [NSString stringWithFormat:@"ws://%@:%@/businessChannel",ip,internetVideoPort];
|
|
|
|
|
|
- if([connectDeviceManager shareInstance].DeviceThirdIdMod.data.isPingOk){
|
|
|
+ if([connectDeviceManager shareInstance].isPingOk){
|
|
|
instructionsChannelUrl = [NSString stringWithFormat:@"ws://%@:%@/businessChannel",ip,@"9300"];
|
|
|
}
|
|
|
|
|
@@ -1480,10 +1480,14 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
|
|
|
// 连接
|
|
|
- (void)connectVideoServer {
|
|
|
|
|
|
- if(![connectDeviceManager shareInstance].DeviceThirdIdMod.data.isPingOk){
|
|
|
+ if([connectDeviceManager shareInstance].isPingOk){
|
|
|
+ internetVideoPort = @"9100";
|
|
|
+ }
|
|
|
+ else{
|
|
|
internetVideoPort = [[connectDeviceManager shareInstance] tcpPortStr];
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if(self.didRecyclResource){
|
|
|
[cachesFileManager writeLogsWithMsg:@"connectVideoServer didRecyclResource return"];
|
|
|
return;
|
|
@@ -1513,7 +1517,7 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
|
|
|
//
|
|
|
RCCloudPhoneConnectType ConnectType = RCCloudPhoneConnectType_websocket;
|
|
|
RCCloudPhoneVideoQuality VideoQuality = RCCloudPhoneVideoQuality_Default;//RCCloudPhoneVideoQuality_High;
|
|
|
- if([connectDeviceManager shareInstance].DeviceThirdIdMod.data.isPingOk)
|
|
|
+ if([connectDeviceManager shareInstance].isPingOk)
|
|
|
{
|
|
|
ConnectType = RCCloudPhoneConnectType_udp;
|
|
|
VideoQuality = RCCloudPhoneVideoQuality_Default;
|