Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6512e30

Browse files
author
noahcheng
committedJan 25, 2022
[iOS] update version to relesse-9.5.0.0
1 parent 228c11d commit 6512e30

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed
 

‎iOS/TRTC-API-Example-OC/Advanced/PushCDN/PushCDNAudienceViewController.m

+16-15
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626

2727
#import "PushCDNAudienceViewController.h"
2828

29-
@interface PushCDNAudienceViewController ()<TXLivePlayListener>
29+
@interface PushCDNAudienceViewController ()<V2TXLivePlayerObserver>
3030

3131
@property (weak, nonatomic) IBOutlet UILabel *streamIDLabel;
3232
@property (weak, nonatomic) IBOutlet UITextField *streamIDTextField;
3333
@property (weak, nonatomic) IBOutlet UIView *playerView;
3434
@property (weak, nonatomic) IBOutlet UIButton *startPlayButton;
3535

36-
@property (strong, nonatomic) TXLivePlayer *livePlayer;
36+
@property (strong, nonatomic) V2TXLivePlayer *livePlayer;
3737

3838
@end
3939

4040
@implementation PushCDNAudienceViewController
4141

42-
- (TXLivePlayer *)livePlayer {
42+
- (V2TXLivePlayer *)livePlayer {
4343
if (!_livePlayer) {
44-
_livePlayer = [[TXLivePlayer alloc] init];
44+
_livePlayer = [[V2TXLivePlayer alloc] init];
4545
}
4646
return _livePlayer;
4747
}
@@ -62,17 +62,17 @@ - (void)setupDefaultUIConfig {
6262

6363
- (void)startPlay {
6464
NSString *streamUrl = [NSString stringWithFormat:@"%@/%@.flv",kCDN_URL,self.streamIDTextField.text];
65-
[self.livePlayer setDelegate:self];
66-
[self.livePlayer setupVideoWidget:CGRectZero containView:self.playerView insertIndex:0];
67-
int ret = [self.livePlayer startPlay:streamUrl type:PLAY_TYPE_LIVE_FLV];
65+
[self.livePlayer setObserver:self];
66+
[self.livePlayer setRenderView:self.playerView];
67+
V2TXLiveCode ret = [self.livePlayer startPlay:streamUrl];
6868
if (ret != 0) {
69-
NSLog(@"play error. code: %d", ret);
69+
NSLog(@"play error. code: %ld", ret);
7070
}
7171
}
7272

7373
- (void)stopPlay {
74-
[self.livePlayer setDelegate:nil];
75-
[self.livePlayer removeVideoWidget];
74+
[self.livePlayer setObserver:nil];
75+
[self.livePlayer setRenderView:nil];
7676
[self.livePlayer stopPlay];
7777
}
7878

@@ -93,15 +93,16 @@ - (IBAction)onPlayClick:(UIButton *)sender {
9393
}
9494
}
9595

96-
#pragma mark - TXLivePlayListener
97-
- (void)onPlayEvent:(int)EvtID withParam:(NSDictionary *)param {
98-
NSLog(@"event: %d", EvtID);
96+
#pragma mark - V2TXLivePlayerObserver
97+
- (void)onVideoPlaying:(id<V2TXLivePlayer>)player firstPlay:(BOOL)firstPlay extraInfo:(NSDictionary *)extraInfo {
98+
NSLog(@"onVideoPlaying");
9999
}
100100

101-
- (void)onNetStatus:(NSDictionary *)param {
102-
101+
- (void)onError:(id<V2TXLivePlayer>)player code:(V2TXLiveCode)code message:(NSString *)msg extraInfo:(NSDictionary *)extraInfo {
102+
NSLog(@"onError: message: %@",msg);
103103
}
104104

105+
105106
- (void)dealloc {
106107
[self stopPlay];
107108
}

‎iOS/TRTC-API-Example-OC/Advanced/ThirdBeauty/ThirdBeautyBytedViewController.m

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020

2121
#import "ThirdBeautyBytedViewController.h"
22+
#import <OpenGLES/ES2/gl.h>
2223
//#import "BEEffectManager.h"
2324
//#import "BEEffectResourceHelper.h"
2425
//#import "BEEffectDataManager.h"

‎iOS/TRTC-API-Example-OC/App/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundleShortVersionString</key>
1818
<string>1.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>1410</string>
20+
<string>1453</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>NSAppTransportSecurity</key>

‎iOS/TRTC-API-Example-OC/TRTC-API-Example-OC.xcodeproj/project.pbxproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
0FB5D4D64CEC30830CF8F7AC /* TXLiteAVSDK_TRTC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C0EEEF96429D2F794B7401C /* TXLiteAVSDK_TRTC.framework */; };
1110
17A5BD8626CBABBC007E91B1 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 17A5BD8326CBABBC007E91B1 /* README.md */; };
1211
17A5BE0726CBCC21007E91B1 /* TRTC-API-Example-OC-PrefixHeader.pch in Sources */ = {isa = PBXBuildFile; fileRef = 477EC9F12626F77E007AAC4F /* TRTC-API-Example-OC-PrefixHeader.pch */; };
1312
17A5C13F26CCF723007E91B1 /* ThirdBeautyBytedViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 17A5C13926CCF722007E91B1 /* ThirdBeautyBytedViewController.m */; };
@@ -94,7 +93,7 @@
9493
47E073302636A6C80027D05E /* SetBGMViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 47E072F12636A6C80027D05E /* SetBGMViewController.m */; };
9594
47ECB98C2626868400201FCB /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47ECB98B2626868400201FCB /* Accelerate.framework */; };
9695
47ECB98E2626868E00201FCB /* libresolv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 47ECB98D2626868E00201FCB /* libresolv.tbd */; };
97-
84E684382A035D1ED76108D9 /* TXLiteAVSDK_TRTC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C0EEEF96429D2F794B7401C /* TXLiteAVSDK_TRTC.framework */; };
96+
8027F53B5D7CDD2A2A920EA7 /* TXLiteAVSDK_TRTC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3CBE450CE65CC63580FAB753 /* TXLiteAVSDK_TRTC.framework */; };
9897
880B3C4A2624411B002683FB /* GenerateTestUserSig.m in Sources */ = {isa = PBXBuildFile; fileRef = 880B3C482624411B002683FB /* GenerateTestUserSig.m */; };
9998
8821F2632626EB1C00F5852F /* VideoCallingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8821F2562626EB1B00F5852F /* VideoCallingViewController.m */; };
10099
8821F2642626EB1C00F5852F /* VideoCallingEnterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8821F2572626EB1B00F5852F /* VideoCallingEnterViewController.xib */; };
@@ -117,6 +116,7 @@
117116
889445E8262866DC00193FAD /* ScreenAudienceViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 889445E6262866DC00193FAD /* ScreenAudienceViewController.xib */; };
118117
88A2C846267062FF006FC026 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47ECB98B2626868400201FCB /* Accelerate.framework */; };
119118
88A2C84726706305006FC026 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 47ECB9882626867C00201FCB /* libc++.tbd */; };
119+
B8AF09434DA3B3186DA2027E /* TXLiteAVSDK_TRTC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3CBE450CE65CC63580FAB753 /* TXLiteAVSDK_TRTC.framework */; };
120120
/* End PBXBuildFile section */
121121

122122
/* Begin PBXContainerItemProxy section */
@@ -163,6 +163,7 @@
163163
17A5C13C26CCF723007E91B1 /* ThirdBeautyEntranceViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ThirdBeautyEntranceViewController.m; sourceTree = "<group>"; };
164164
17A5C13D26CCF723007E91B1 /* ThirdBeautyBytedViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThirdBeautyBytedViewController.h; sourceTree = "<group>"; };
165165
17A5C13E26CCF723007E91B1 /* ThirdBeautyEntranceViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ThirdBeautyEntranceViewController.xib; sourceTree = "<group>"; };
166+
3CBE450CE65CC63580FAB753 /* TXLiteAVSDK_TRTC.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = TXLiteAVSDK_TRTC.framework; path = ../SDK/TXLiteAVSDK_TRTC.framework; sourceTree = "<group>"; };
166167
40D550ED26A6AED600FE9F13 /* libsqlite3.0.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.0.tbd; path = usr/lib/libsqlite3.0.tbd; sourceTree = SDKROOT; };
167168
40D550EF26A6AEFA00FE9F13 /* AssetsLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AssetsLibrary.framework; path = System/Library/Frameworks/AssetsLibrary.framework; sourceTree = SDKROOT; };
168169
4723A7BE26315F920094AC81 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
@@ -319,7 +320,6 @@
319320
889445E4262866DC00193FAD /* ScreenAudienceViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ScreenAudienceViewController.h; sourceTree = "<group>"; };
320321
889445E5262866DC00193FAD /* ScreenAudienceViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ScreenAudienceViewController.m; sourceTree = "<group>"; };
321322
889445E6262866DC00193FAD /* ScreenAudienceViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ScreenAudienceViewController.xib; sourceTree = "<group>"; };
322-
8C0EEEF96429D2F794B7401C /* TXLiteAVSDK_TRTC.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = TXLiteAVSDK_TRTC.framework; path = ../SDK/TXLiteAVSDK_TRTC.framework; sourceTree = "<group>"; };
323323
C99BF07371D8A29601F2FC64 /* Pods_TXReplayKit_Screen.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TXReplayKit_Screen.framework; sourceTree = BUILT_PRODUCTS_DIR; };
324324
C9B2CC51BDD884255109D5F7 /* Pods_TRTC_API_Example_OC.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TRTC_API_Example_OC.framework; sourceTree = BUILT_PRODUCTS_DIR; };
325325
/* End PBXFileReference section */
@@ -338,7 +338,7 @@
338338
47ECB98E2626868E00201FCB /* libresolv.tbd in Frameworks */,
339339
4723A7C526315FB10094AC81 /* libc++.tbd in Frameworks */,
340340
4723A7C226315FA30094AC81 /* CoreMedia.framework in Frameworks */,
341-
84E684382A035D1ED76108D9 /* TXLiteAVSDK_TRTC.framework in Frameworks */,
341+
B8AF09434DA3B3186DA2027E /* TXLiteAVSDK_TRTC.framework in Frameworks */,
342342
);
343343
runOnlyForDeploymentPostprocessing = 0;
344344
};
@@ -350,7 +350,7 @@
350350
88A2C846267062FF006FC026 /* Accelerate.framework in Frameworks */,
351351
8894458D26282AF800193FAD /* TXLiteAVSDK_ReplayKitExt.framework in Frameworks */,
352352
8894456B26282A3200193FAD /* ReplayKit.framework in Frameworks */,
353-
0FB5D4D64CEC30830CF8F7AC /* TXLiteAVSDK_TRTC.framework in Frameworks */,
353+
8027F53B5D7CDD2A2A920EA7 /* TXLiteAVSDK_TRTC.framework in Frameworks */,
354354
);
355355
runOnlyForDeploymentPostprocessing = 0;
356356
};
@@ -468,7 +468,7 @@
468468
isa = PBXGroup;
469469
children = (
470470
889444FD262824EA00193FAD /* TXLiteAVSDK_ReplayKitExt.framework */,
471-
8C0EEEF96429D2F794B7401C /* TXLiteAVSDK_TRTC.framework */,
471+
3CBE450CE65CC63580FAB753 /* TXLiteAVSDK_TRTC.framework */,
472472
);
473473
name = SDK;
474474
path = ../SDK;

0 commit comments

Comments
 (0)
Please sign in to comment.