Skip to content

Commit

Permalink
接口更新后,app更新调用
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleychen committed Dec 18, 2024
1 parent fa84925 commit a4f03b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,8 @@ - (void)starP2PServer {
}
}
NSLog(@"_sys_xp2p_info xp2pValue : %@",xp2pValue);
int errorcode = [[TIoTCoreXP2PBridge sharedInstance] startAppWith:@"" sec_key:@"" pro_id:self.productId?:@"" dev_name:self.deviceName?:@"" xp2pinfo:xp2pValue];
int errorcode = [[TIoTCoreXP2PBridge sharedInstance] startAppWith:self.productId?:@"" dev_name:self.deviceName?:@""];
[[TIoTCoreXP2PBridge sharedInstance] setXp2pInfo:self.deviceName xp2pinfo:xp2pValue];

if (errorcode == XP2P_ERR_VERSION) {
UIAlertController *alertC = [UIAlertController alertControllerWithTitle:@"APP SDK 版本与设备端 SDK 版本号不匹配,版本号需前两位保持一致" message:nil preferredStyle:(UIAlertControllerStyleAlert)];
Expand Down Expand Up @@ -4089,7 +4090,7 @@ - (void)refushXP2Pinfo {
}
NSLog(@"refushXP2Pinfo_sys_xp2p_info : %@",xp2pValue);

int errorcode = [[TIoTCoreXP2PBridge sharedInstance] setXp2pInfo:self.deviceName?:@"" sec_id:nil sec_key:nil xp2pinfo:xp2pValue];
int errorcode = [[TIoTCoreXP2PBridge sharedInstance] setXp2pInfo:self.deviceName?:@"" xp2pinfo:xp2pValue];

//重新拉流/推流
// [self refreshP2PPlayerAndStartCapture];
Expand Down

0 comments on commit a4f03b2

Please sign in to comment.