Skip to content

Commit f3e20d9

Browse files
author
eagleychen
committed
更新 p2p core sdk
1 parent f570216 commit f3e20d9

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ PODS:
3535
- TIoTLinkKit_SoundTouch (1.0.0)
3636
- TIoTLinkKit_TPNS (1.0.1)
3737
- TIoTLinkKit_WechatOpenSDK (1.0.1)
38-
- TIoTLinkKit_XP2P (2.4.45)
38+
- TIoTLinkKit_XP2P (2.4.46-beta.202402260751)
3939
- TIoTLinkVideo (1.0.0):
4040
- CocoaAsyncSocket (= 7.6.5)
4141
- TIoTLinkKit_FLV (= 2.2.3)
4242
- TIoTLinkKit_GVoiceSE (= 1.0.4)
4343
- TIoTLinkKit_SoundTouch (= 1.0.0)
44-
- TIoTLinkKit_XP2P (= 2.4.45)
44+
- TIoTLinkKit_XP2P (= 2.4.46-beta.202402260751)
4545
- TPCircularBuffer (= 1.6.1)
4646
- TPCircularBuffer (1.6.1)
4747
- TrueTime (5.0.3)
@@ -133,8 +133,8 @@ SPEC CHECKSUMS:
133133
TIoTLinkKit_SoundTouch: cf79ae182b6c2349ff65bac7a338974bc538fa77
134134
TIoTLinkKit_TPNS: 7cea4fc1d20ef6c4c11c4f0b66bbb10ecf4ed968
135135
TIoTLinkKit_WechatOpenSDK: 7822d68cc5c46edf3f6020422202e7b65ea87614
136-
TIoTLinkKit_XP2P: d9e422a3dbb19485e68206442e49f0e2c2fdb09d
137-
TIoTLinkVideo: 8d8aecccdaed68c2a9655b2413e3a7641d3e5894
136+
TIoTLinkKit_XP2P: a80b13ebad4a195c831db563718eb3b88b11ad83
137+
TIoTLinkVideo: 739c461db7f41ddfed8fd9255348a5c650be04ca
138138
TPCircularBuffer: c13243556527551c4d320709c7b14a6d20cdc30a
139139
TrueTime: b49551ffafb28a9dee04e51b226f42a416010842
140140
TXLiteAVSDK_TRTC: e3383a81565e8bb2aaaaab4bd099ad5239cd5b2d

Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,17 @@ - (void)cancelTimer;
2525
@end
2626

2727
const char* XP2PMsgHandle(const char *idd, XP2PType type, const char* msg) {
28-
if (idd == nullptr) {
29-
return nullptr;
30-
}
3128

3229
BOOL logEnable = [TIoTCoreXP2PBridge sharedInstance].logEnable;
3330
if (logEnable) {
34-
printf("XP2P log: %s\n", msg);
31+
printf("XP2P log: %s", msg);
3532
}
3633

3734
if (type == XP2PTypeLog) {
3835
if (logEnable) {
3936
fwrite(msg, 1, strlen(msg)>300?300:strlen(msg), p2pOutLogFile);
4037
}
38+
return nullptr;
4139
}else if (type == XP2PTypeSaveFileOn) {
4240

4341
BOOL isWriteFile = [TIoTCoreXP2PBridge sharedInstance].writeFile;
@@ -211,6 +209,8 @@ - (XP2PErrCode)startAppWith:(NSString *)sec_id sec_key:(NSString *)sec_key pro_i
211209
return [self startAppWith:sec_id sec_key:sec_key pro_id:pro_id dev_name:dev_name xp2pinfo:@""];
212210
}
213211
- (XP2PErrCode)startAppWith:(NSString *)sec_id sec_key:(NSString *)sec_key pro_id:(NSString *)pro_id dev_name:(NSString *)dev_name xp2pinfo:(NSString *)xp2pinfo {
212+
// setLogEnable(false, false);
213+
214214
NSString *fileName = @"stun.txt";
215215
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
216216
NSString *documentDirectory = paths.firstObject;
@@ -233,6 +233,8 @@ - (XP2PErrCode)startAppWith:(NSString *)pro_id dev_name:(NSString *)dev_name {
233233
}
234234
- (XP2PErrCode)startAppWith:(NSString *)pro_id dev_name:(NSString *)dev_name type:(XP2PProtocolType)type{
235235
// setStunServerToXp2p("11.11.11.11", 111);
236+
// setLogEnable(false, false);
237+
236238
NSString *fileName = @"stun.txt";
237239
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
238240
NSString *documentDirectory = paths.firstObject;

TIoTLinkVideo.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
1919
s.source_files = 'Source/SDK/LinkVideo/**/*.{h,m,c,mm}'
2020
s.resource = 'Source/SDK/LinkVideo/FLV/asset/GvoiceSE_v1_239-119-oneref-e.nn'
2121

22-
s.dependency 'TIoTLinkKit_XP2P', '2.4.45'
22+
s.dependency 'TIoTLinkKit_XP2P', '2.4.46-beta.202402260751'
2323
s.dependency 'TIoTLinkKit_FLV', '2.2.3'
2424
s.dependency 'CocoaAsyncSocket', '7.6.5'
2525
s.dependency 'TIoTLinkKit_SoundTouch', '1.0.0'

0 commit comments

Comments
 (0)