Skip to content

Commit

Permalink
iOS 更新9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
abyyxwang committed Sep 1, 2021
1 parent 1bd6c63 commit 0496a90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ - (void)startPush {
return;
}
[self.livePusher setRenderMirror:V2TXLiveMirrorTypeAuto];
[self.livePusher setVideoQuality:V2TXLiveVideoResolution960x540 resolutionMode:V2TXLiveVideoResolutionModePortrait];
V2TXLiveVideoEncoderParam *videoEncoderParam = [[V2TXLiveVideoEncoderParam alloc] initWith:V2TXLiveVideoResolution960x540];
videoEncoderParam.videoResolutionMode = V2TXLiveVideoResolutionModePortrait;
[self.livePusher setVideoQuality:videoEncoderParam];
[self.livePusher setRenderView:self.view];
[self.livePusher setAudioQuality:self.audioQulity];

Expand Down Expand Up @@ -162,7 +164,9 @@ - (IBAction)onResolutionButtonClick:(UIButton*)sender {

[self showAlertListWithArray:resolutionArr handler:^(int index) {
V2TXLiveVideoResolution resolution = [resolutionDic[resolutionArr[index]] intValue];
[self.livePusher setVideoQuality:resolution resolutionMode:V2TXLiveVideoResolutionModePortrait];
V2TXLiveVideoEncoderParam *videoEncoderParam = [[V2TXLiveVideoEncoderParam alloc] initWith:resolution];
videoEncoderParam.videoResolutionMode = V2TXLiveVideoResolutionModePortrait;
[self.livePusher setVideoQuality:videoEncoderParam];
[self.resolutonButton setTitle:resolutionArr[index] forState:UIControlStateNormal];
}];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
47ECB9892626867C00201FCB /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 47ECB9882626867C00201FCB /* libc++.tbd */; };
47ECB98C2626868400201FCB /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47ECB98B2626868400201FCB /* Accelerate.framework */; };
47ECB98E2626868E00201FCB /* libresolv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 47ECB98D2626868E00201FCB /* libresolv.tbd */; };
83044685029D8E0DB56FB692 /* TXLiteAVSDK_Smart.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E10AC77FF7B22422D1877181 /* TXLiteAVSDK_Smart.framework */; };
5C223D1CB9A832375270A251 /* TXLiteAVSDK_Smart.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F1D2BEA8B7162A074B582E3C /* TXLiteAVSDK_Smart.framework */; };
880B3C4A2624411B002683FB /* GenerateTestUserSig.m in Sources */ = {isa = PBXBuildFile; fileRef = 880B3C482624411B002683FB /* GenerateTestUserSig.m */; };
88167CB3268488C2001D99DC /* LivePushCameraEnterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 88167CB1268488C2001D99DC /* LivePushCameraEnterViewController.m */; };
88167CB4268488C2001D99DC /* LivePushCameraEnterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 88167CB2268488C2001D99DC /* LivePushCameraEnterViewController.xib */; };
Expand Down Expand Up @@ -82,7 +82,7 @@
88FC7854268C8C2D00768C53 /* RTCPushAndPlayAnchorViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 88FC7852268C8C2D00768C53 /* RTCPushAndPlayAnchorViewController.xib */; };
88FC7859268C8F6E00768C53 /* RTCPushAndPlayAudienceViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 88FC7857268C8F6E00768C53 /* RTCPushAndPlayAudienceViewController.m */; };
88FC785A268C8F6E00768C53 /* RTCPushAndPlayAudienceViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 88FC7858268C8F6E00768C53 /* RTCPushAndPlayAudienceViewController.xib */; };
A548A622FB2A2C47C72BAE1C /* TXLiteAVSDK_Smart.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E10AC77FF7B22422D1877181 /* TXLiteAVSDK_Smart.framework */; };
DE99019F25C95104C6A43F21 /* TXLiteAVSDK_Smart.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F1D2BEA8B7162A074B582E3C /* TXLiteAVSDK_Smart.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -224,7 +224,7 @@
88FC7856268C8F6E00768C53 /* RTCPushAndPlayAudienceViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RTCPushAndPlayAudienceViewController.h; sourceTree = "<group>"; };
88FC7857268C8F6E00768C53 /* RTCPushAndPlayAudienceViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RTCPushAndPlayAudienceViewController.m; sourceTree = "<group>"; };
88FC7858268C8F6E00768C53 /* RTCPushAndPlayAudienceViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = RTCPushAndPlayAudienceViewController.xib; sourceTree = "<group>"; };
E10AC77FF7B22422D1877181 /* TXLiteAVSDK_Smart.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = TXLiteAVSDK_Smart.framework; path = ../SDK/TXLiteAVSDK_Smart.framework; sourceTree = "<group>"; };
F1D2BEA8B7162A074B582E3C /* TXLiteAVSDK_Smart.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = TXLiteAVSDK_Smart.framework; path = ../SDK/TXLiteAVSDK_Smart.framework; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -245,7 +245,7 @@
4723A7C526315FB10094AC81 /* libc++.tbd in Frameworks */,
47ECB9892626867C00201FCB /* libc++.tbd in Frameworks */,
4723A7C226315FA30094AC81 /* CoreMedia.framework in Frameworks */,
A548A622FB2A2C47C72BAE1C /* TXLiteAVSDK_Smart.framework in Frameworks */,
5C223D1CB9A832375270A251 /* TXLiteAVSDK_Smart.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -257,7 +257,7 @@
88A2C846267062FF006FC026 /* Accelerate.framework in Frameworks */,
8894458D26282AF800193FAD /* TXLiteAVSDK_ReplayKitExt.framework in Frameworks */,
8894456B26282A3200193FAD /* ReplayKit.framework in Frameworks */,
83044685029D8E0DB56FB692 /* TXLiteAVSDK_Smart.framework in Frameworks */,
DE99019F25C95104C6A43F21 /* TXLiteAVSDK_Smart.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -342,7 +342,7 @@
isa = PBXGroup;
children = (
889444FD262824EA00193FAD /* TXLiteAVSDK_ReplayKitExt.framework */,
E10AC77FF7B22422D1877181 /* TXLiteAVSDK_Smart.framework */,
F1D2BEA8B7162A074B582E3C /* TXLiteAVSDK_Smart.framework */,
);
name = SDK;
path = ../SDK;
Expand Down

0 comments on commit 0496a90

Please sign in to comment.