Skip to content

Commit

Permalink
1、Upgrade demo to adapt to new features
Browse files Browse the repository at this point in the history
ianyanzhang committed Oct 31, 2022
1 parent 7262041 commit eb263f4
Showing 16 changed files with 110 additions and 549 deletions.
Original file line number Diff line number Diff line change
@@ -133,9 +133,11 @@ - (void)loadTestDataWithsuccess:(void(^)(NSMutableArray *list))success {
fileId:obj.fileId
psign:obj.pSign
completion:^(NSMutableDictionary * _Nonnull dic, NSError * _Nonnull error) {
obj.videoURL = [dic objectForKey:@"videoUrl"];
obj.multiVideoURLs = [dic objectForKey:@"multiVideoURLs"];
dispatch_group_leave(downloadVideoGroup);
if (!error) {
obj.videoURL = [dic objectForKey:@"videoUrl"];
obj.multiVideoURLs = [dic objectForKey:@"multiVideoURLs"];
dispatch_group_leave(downloadVideoGroup);
}
}];
}];

Original file line number Diff line number Diff line change
@@ -256,8 +256,10 @@ - (void)clickHelp {

- (void)clickScan {
self.scanVC = [[ScanQRController alloc] init];
self.scanVC.modalPresentationStyle = UIModalPresentationFullScreen;
self.scanVC.delegate = self;
[self addSubview:self.scanVC.view];
UIViewController *currentVC = [self currentViewController];
[currentVC presentViewController:self.scanVC animated:NO completion:nil];
}

- (void)longPress:(UILongPressGestureRecognizer *)longPress {
@@ -423,6 +425,7 @@ - (void)onScanResult:(NSString *)result {
}

- (void)cancelScanQR {
[self.scanVC dismissViewControllerAnimated:NO completion:nil];
self.scanVC = nil;
}

17 changes: 16 additions & 1 deletion Demo/TXLiteAVDemo/SuperPlayerKit/SuperPlayer.podspec
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ Pod::Spec.new do |spec|

spec.dependency 'SDWebImage'
spec.dependency 'Masonry'
spec.dependency 'AFNetworking'
#spec.dependency 'MMLayout'

spec.static_framework = true
@@ -42,6 +41,22 @@ Pod::Spec.new do |spec|
'SuperPlayerKitBundle' => ['SuperPlayer/SuperPlayerLocalized/**/*.strings',]
}
end
spec.subspec "Player_Premium" do |s|
s.exclude_files = 'SuperPlayer/SDKHeaders/**'
s.source_files = 'SuperPlayer/**/*.{h,m}'
s.private_header_files = 'SuperPlayer/Utils/TXBitrateItemHelper.h', 'SuperPlayer/Views/SuperPlayerView+Private.h'
# s.resource = 'SuperPlayer/Resource/*'
#如果要使用cocopods管理的TXLiteAVSDK_Player,就不注释这一行
# s.dependency 'TXLiteAVSDK_Player', '= 5.3.6001'
#如果要使用最新的TXLiteAVSDK_Player,就不注释这一行
framework_path="../../../SDK/TXLiteAVSDK_Player_Premium.framework"
s.pod_target_xcconfig={
'HEADER_SEARCH_PATHS'=>["$(PODS_TARGET_SRCROOT)/#{framework_path}/Headers"]
}
s.resource_bundles = {
'SuperPlayerKitBundle' => ['SuperPlayer/SuperPlayerLocalized/**/*.strings',]
}
end
spec.subspec "Professional" do |s|
s.exclude_files = 'SuperPlayer/SDKHeaders/**'
s.source_files = 'SuperPlayer/**/*.{h,m}'

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit eb263f4

Please sign in to comment.