Skip to content

Commit 86f66e2

Browse files
committed
添加video日志开关
Change-Id: Iebf5a059bb2adb39543fbbc2ae0b261d2280f62c
1 parent efed56e commit 86f66e2

File tree

8 files changed

+39
-27
lines changed

8 files changed

+39
-27
lines changed

Podfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ target 'LinkApp' do
3030
pod 'Tencent-MapSDK', '4.3.9'
3131
pod 'lottie-ios', '3.1.8'
3232
pod 'CocoaAsyncSocket', '7.6.5'
33-
pod 'TIoTLinkThirdPartyKit/TPNS-iOS', '2.2.1'
34-
pod 'TIoTLinkThirdPartyKit/WechatOpenSDK_NoPay', '2.2.1'
33+
pod 'TIoTLinkKit_TPNS', '1.0.1'
34+
pod 'TIoTLinkKit_WechatOpenSDK', '1.0.1'
3535
end
3636

3737

@@ -42,5 +42,5 @@ target 'LinkSDKDemo' do
4242
pod 'TIoTLinkKit/LinkRTC', :path => './'
4343

4444
pod 'TIoTLinkVideo', :path => './'
45-
pod 'TIoTLinkKit_IJKPlayer', '2.0.5'
45+
pod 'TIoTLinkKit_IJKPlayer', '1.0.2'
4646
end

Podfile.lock

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ PODS:
9999
- GoogleUtilities/Logger
100100
- GoogleUtilities/UserDefaults (6.7.2):
101101
- GoogleUtilities/Logger
102-
- GTMSessionFetcher/Core (1.6.1)
102+
- GTMSessionFetcher/Core (1.7.0)
103103
- IQKeyboardManager (6.1.1)
104104
- KeychainAccess (4.2.0)
105105
- lottie-ios (3.1.8)
@@ -132,14 +132,14 @@ PODS:
132132
- TIoTLinkKit/LinkCore
133133
- TXLiteAVSDK_TRTC (= 8.0.9644)
134134
- YYModel (= 1.0.4)
135-
- TIoTLinkKit_IJKPlayer (2.0.5)
136-
- TIoTLinkThirdPartyKit/Faac-iOS (2.2.1)
137-
- TIoTLinkThirdPartyKit/TPNS-iOS (2.2.1)
138-
- TIoTLinkThirdPartyKit/WechatOpenSDK_NoPay (2.2.1)
135+
- TIoTLinkKit_Faac (2.0.5)
136+
- TIoTLinkKit_IJKPlayer (1.0.2)
137+
- TIoTLinkKit_TPNS (1.0.1)
138+
- TIoTLinkKit_WechatOpenSDK (1.0.1)
139139
- TIoTLinkThirdPartyKit/XP2P-iOS (2.2.1)
140140
- TIoTLinkVideo (1.0.0):
141141
- CocoaLumberjack (= 3.7.2)
142-
- TIoTLinkThirdPartyKit/Faac-iOS (= 2.2.1)
142+
- TIoTLinkKit_Faac (= 2.0.5)
143143
- TIoTLinkThirdPartyKit/XP2P-iOS (= 2.2.1)
144144
- TrueTime (5.0.3)
145145
- TXLiteAVSDK_TRTC (8.0.9644)
@@ -166,9 +166,9 @@ DEPENDENCIES:
166166
- Tencent-MapSDK (= 4.3.9)
167167
- TIoTLinkKit (from `./`)
168168
- TIoTLinkKit/LinkRTC (from `./`)
169-
- TIoTLinkKit_IJKPlayer
170-
- TIoTLinkThirdPartyKit/TPNS-iOS (= 2.2.1)
171-
- TIoTLinkThirdPartyKit/WechatOpenSDK_NoPay (= 2.2.1)
169+
- TIoTLinkKit_IJKPlayer (= 1.0.2)
170+
- TIoTLinkKit_TPNS (= 1.0.1)
171+
- TIoTLinkKit_WechatOpenSDK (= 1.0.1)
172172
- TIoTLinkVideo (from `./`)
173173
- TrueTime (= 5.0.3)
174174
- TZImagePickerController (= 3.2.1)
@@ -208,7 +208,10 @@ SPEC REPOS:
208208
- SDWebImage
209209
- SocketRocket
210210
- Tencent-MapSDK
211+
- TIoTLinkKit_Faac
211212
- TIoTLinkKit_IJKPlayer
213+
- TIoTLinkKit_TPNS
214+
- TIoTLinkKit_WechatOpenSDK
212215
- TIoTLinkThirdPartyKit
213216
- TrueTime
214217
- TXLiteAVSDK_TRTC
@@ -238,7 +241,7 @@ SPEC CHECKSUMS:
238241
GoogleDataTransport: f56af7caa4ed338dc8e138a5d7c5973e66440833
239242
GoogleToolboxForMac: 8bef7c7c5cf7291c687cf5354f39f9db6399ad34
240243
GoogleUtilities: 7f2f5a07f888cdb145101d6042bc4422f57e70b3
241-
GTMSessionFetcher: 36689134877faeb055b27dfa4ccc9ceaa42e029e
244+
GTMSessionFetcher: 43748f93435c2aa068b1cbe39655aaf600652e91
242245
IQKeyboardManager: 79c57795f5c2408d259d37b9da2ed07efcbb5225
243246
KeychainAccess: 3f760109aa99b05d0f231e28b22642da7153e38a
244247
lottie-ios: 48fac6be217c76937e36e340e2d09cf7b10b7f5f
@@ -255,14 +258,17 @@ SPEC CHECKSUMS:
255258
SocketRocket: d57c7159b83c3c6655745cd15302aa24b6bae531
256259
Tencent-MapSDK: 6dfbee53b46131deb4c4bb02b3edc5ce7fb630dc
257260
TIoTLinkKit: 0386fb583c61765a02ad5cca810c7661d5a0bc53
258-
TIoTLinkKit_IJKPlayer: 59e845b7129204684747b3c36c89b1fdccad388a
261+
TIoTLinkKit_Faac: 9295b2ff5e8d978cbcaf9ff062db2728a333f4cb
262+
TIoTLinkKit_IJKPlayer: e47c3fed6b204e7544f84a24310cab7a372854d1
263+
TIoTLinkKit_TPNS: 7cea4fc1d20ef6c4c11c4f0b66bbb10ecf4ed968
264+
TIoTLinkKit_WechatOpenSDK: 7822d68cc5c46edf3f6020422202e7b65ea87614
259265
TIoTLinkThirdPartyKit: 097ce7631d6bb13bcb90a0319d4ac5ca360ee012
260-
TIoTLinkVideo: 2dd2842755d0bf1112e42cf16b63687292df9a9b
266+
TIoTLinkVideo: e17a950ec65815269b5695f239e7f245fb27b375
261267
TrueTime: b49551ffafb28a9dee04e51b226f42a416010842
262268
TXLiteAVSDK_TRTC: e3383a81565e8bb2aaaaab4bd099ad5239cd5b2d
263269
TZImagePickerController: bf4c57b98d8707fce41ea6be872414a71c7a8c9d
264270
YYModel: 2a7fdd96aaa4b86a824e26d0c517de8928c04b30
265271

266-
PODFILE CHECKSUM: 8b67744ace0642e89260bb9d643f6a5c98ee3d9c
272+
PODFILE CHECKSUM: 7c89461b8ea2f9c9c6711a04e6c39be4e141b7c9
267273

268274
COCOAPODS: 1.9.3

Source/LinkSDKDemo/Video/P2P/Controller/TIoTDemoPreviewDeviceVC.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ - (void)viewDidLoad {
8585
[super viewDidLoad];
8686
// Do any additional setup after loading the view.
8787

88-
// [[TIoTCoreXP2PBridge sharedInstance] startAppWith:[TIoTCoreAppEnvironment shareEnvironment].cloudSecretId
89-
// sec_key:[TIoTCoreAppEnvironment shareEnvironment].cloudSecretKey
90-
// pro_id:[TIoTCoreAppEnvironment shareEnvironment].cloudProductId
91-
// dev_name:self.deviceNameNVR?:@""];
88+
//关闭日志
89+
// [TIoTCoreXP2PBridge sharedInstance].logEnable = NO;
9290

93-
self.qualityString = quality_super;
91+
92+
self.qualityString = quality_standard;
9493
self.screenRect = [UIApplication sharedApplication].delegate.window.frame;
9594

9695
if (self.isNVR == NO) {
@@ -1162,6 +1161,7 @@ - (void)configVideo {
11621161

11631162
self.view.autoresizesSubviews = YES;
11641163
[self.imageView addSubview:self.player.view];
1164+
[self.player resetHubFrame:self.player.view.frame];
11651165

11661166
// [self.player setOptionIntValue:10 * 1000 forKey:@"analyzeduration" ofCategory:kIJKFFOptionCategoryFormat];
11671167
[self.player setOptionIntValue:25 * 1024 forKey:@"probesize" ofCategory:kIJKFFOptionCategoryFormat];

Source/LinkSDKDemo/Video/PlayBack/CloudStorage/Controller/TIoTCloudStorageVC.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ - (void)configVideo {
13171317

13181318
self.view.autoresizesSubviews = YES;
13191319
[self.imageView addSubview:self.player.view];
1320-
1320+
[self.player resetHubFrame:self.player.view.frame];
13211321
// [self.player setOptionIntValue:10 * 1000 forKey:@"analyzeduration" ofCategory:kIJKFFOptionCategoryFormat];
13221322
}
13231323

Source/LinkSDKDemo/Video/PlayBack/LocalPlayBack/Controller/TIoTDemoLocalRecordVC.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,8 @@ - (void)configVideo {
13641364

13651365
self.view.autoresizesSubviews = YES;
13661366
[self.imageView addSubview:self.player.view];
1367-
1367+
[self.player resetHubFrame:self.player.view.frame];
1368+
13681369
[self.player setOptionIntValue:10 * 1000 forKey:@"analyzeduration" ofCategory:kIJKFFOptionCategoryFormat];
13691370
[self.player setOptionIntValue:10 * 1024 forKey:@"probesize" ofCategory:kIJKFFOptionCategoryFormat];
13701371
[self.player setOptionIntValue:0 forKey:@"packet-buffering" ofCategory:kIJKFFOptionCategoryPlayer];

Source/SDK/LinkVideo/TIoTCoreXP2PBridge.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
1616
@interface TIoTCoreXP2PBridge : NSObject
1717
@property (nonatomic, weak)id<TIoTCoreXP2PBridgeDelegate> delegate;
1818
@property (nonatomic, assign)BOOL writeFile; //是否将数据帧写入文档
19+
@property (nonatomic, assign)BOOL logEnable; //log 开关,默认打开
1920

2021
+ (NSString *)getSDKVersion;
2122
+ (instancetype)sharedInstance ;

Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
}
2323

2424
if (type == XP2PTypeLog) {
25-
26-
NSString *nsFormat = [NSString stringWithUTF8String:msg];
27-
DDLogInfo(@"%@", nsFormat);
25+
BOOL logEnable = [TIoTCoreXP2PBridge sharedInstance].logEnable;
26+
if (logEnable) {
27+
NSString *nsFormat = [NSString stringWithUTF8String:msg];
28+
DDLogInfo(@"%@", nsFormat);
29+
}
2830
}else if (type == XP2PTypeSaveFileOn) {
2931

3032
BOOL isWriteFile = [TIoTCoreXP2PBridge sharedInstance].writeFile;
@@ -95,6 +97,8 @@ - (instancetype)init {
9597
#ifndef DEBUG
9698
[TIoTCoreXP2PBridge redirectNSLog];
9799
#endif
100+
//默认打开log开关
101+
_logEnable = YES;
98102
}
99103
return self;
100104
}

TIoTLinkVideo.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
1818

1919
s.source_files = 'Source/SDK/LinkVideo/**/*.{h,m,c,mm}'
2020
s.dependency 'TIoTLinkThirdPartyKit/XP2P-iOS', '2.2.1'
21-
s.dependency 'TIoTLinkThirdPartyKit/Faac-iOS', '2.2.1'
21+
s.dependency 'TIoTLinkKit_Faac', '2.0.5'
2222
s.dependency 'CocoaLumberjack', '3.7.2'
2323
s.pod_target_xcconfig = {
2424
'VALID_ARCHS' => 'arm64'

0 commit comments

Comments
 (0)