适配iOS17

This commit is contained in:
liyuhua
2023-10-28 19:59:30 +08:00
parent 32db5f877c
commit fbdc95a39c
7 changed files with 551 additions and 10 deletions

View File

@@ -79,6 +79,10 @@ post_install do |installer|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
end
end
end

View File

@@ -14,7 +14,35 @@ PODS:
- AFNetworking/Serialization (4.0.1)
- AFNetworking/UIKit (4.0.1):
- AFNetworking/NSURLSession
- AgoraRtcEngine_iOS (3.0.1.1)
- AgoraRtcEngine_iOS (4.2.2):
- AgoraRtcEngine_iOS/AIAEC (= 4.2.2)
- AgoraRtcEngine_iOS/AINS (= 4.2.2)
- AgoraRtcEngine_iOS/AudioBeauty (= 4.2.2)
- AgoraRtcEngine_iOS/ClearVision (= 4.2.2)
- AgoraRtcEngine_iOS/ContentInspect (= 4.2.2)
- AgoraRtcEngine_iOS/DRM (= 4.2.2)
- AgoraRtcEngine_iOS/FaceDetection (= 4.2.2)
- AgoraRtcEngine_iOS/ReplayKit (= 4.2.2)
- AgoraRtcEngine_iOS/RtcBasic (= 4.2.2)
- AgoraRtcEngine_iOS/SpatialAudio (= 4.2.2)
- AgoraRtcEngine_iOS/VideoCodecDec (= 4.2.2)
- AgoraRtcEngine_iOS/VideoCodecEnc (= 4.2.2)
- AgoraRtcEngine_iOS/VirtualBackground (= 4.2.2)
- AgoraRtcEngine_iOS/VQA (= 4.2.2)
- AgoraRtcEngine_iOS/AIAEC (4.2.2)
- AgoraRtcEngine_iOS/AINS (4.2.2)
- AgoraRtcEngine_iOS/AudioBeauty (4.2.2)
- AgoraRtcEngine_iOS/ClearVision (4.2.2)
- AgoraRtcEngine_iOS/ContentInspect (4.2.2)
- AgoraRtcEngine_iOS/DRM (4.2.2)
- AgoraRtcEngine_iOS/FaceDetection (4.2.2)
- AgoraRtcEngine_iOS/ReplayKit (4.2.2)
- AgoraRtcEngine_iOS/RtcBasic (4.2.2)
- AgoraRtcEngine_iOS/SpatialAudio (4.2.2)
- AgoraRtcEngine_iOS/VideoCodecDec (4.2.2)
- AgoraRtcEngine_iOS/VideoCodecEnc (4.2.2)
- AgoraRtcEngine_iOS/VirtualBackground (4.2.2)
- AgoraRtcEngine_iOS/VQA (4.2.2)
- AlipaySDK-iOS (15.8.11)
- Base64 (1.1.2)
- Bugly (2.5.93)
@@ -100,7 +128,7 @@ PODS:
DEPENDENCIES:
- AFNetworking
- AgoraRtcEngine_iOS (~> 3.0.1)
- AgoraRtcEngine_iOS (~> 4.2.2)
- AlipaySDK-iOS
- Base64
- Bugly
@@ -196,7 +224,7 @@ SPEC REPOS:
SPEC CHECKSUMS:
AFNetworking: 3bd23d814e976cd148d7d44c3ab78017b744cd58
AgoraRtcEngine_iOS: 8ccceaaecff2e80ab28fcd33f3dfd2b417eb5365
AgoraRtcEngine_iOS: c510de329cd905daff3f01fa4c872ea6d5eaee23
AlipaySDK-iOS: a07b6eafa847a5b29acb6c150ea16d9792d5d167
Base64: cecfb41a004124895a7bcee567a89bae5a89d49b
Bugly: b8715e6ec4004b7f7fbffab0643ba80545aee3da
@@ -243,6 +271,6 @@ SPEC CHECKSUMS:
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849
YYWebImage: 5f7f36aee2ae293f016d418c7d6ba05c4863e928
PODFILE CHECKSUM: 10dc54bd2806dc12b35318f86874b0d5a0ac5246
PODFILE CHECKSUM: c144002942fe3a211ba24687e5c9987f7072dabd
COCOAPODS: 1.12.1

View File

@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
@@ -176,6 +176,7 @@
237B8A162A973B7E005DB380 /* XPMineGameOrderItemPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B8A152A973B7E005DB380 /* XPMineGameOrderItemPresenter.m */; };
237B8A1A2A973C54005DB380 /* Api+GameOrder.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B8A192A973C54005DB380 /* Api+GameOrder.m */; };
237B94C32A98B46E007853E3 /* XPSessionMessageGameInfoView.m in Sources */ = {isa = PBXBuildFile; fileRef = 237B94C22A98B46E007853E3 /* XPSessionMessageGameInfoView.m */; };
23E1708C2AED2E080039DE62 /* YYTextAsyncLayer+XPTextAsyncLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 23E1708B2AED2E080039DE62 /* YYTextAsyncLayer+XPTextAsyncLayer.m */; };
23F8BFF82A7A392000A36763 /* XPRoomMessagePrivilegeCardCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 23F8BFF72A7A392000A36763 /* XPRoomMessagePrivilegeCardCell.m */; };
73FFADDC93E195344047A2EC /* Pods_xplan_ios.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACF623970097D653132D69A /* Pods_xplan_ios.framework */; };
9B0086C627BA392B0032BD2B /* AnchorStageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B0086C527BA392B0032BD2B /* AnchorStageView.m */; };
@@ -1693,6 +1694,8 @@
237B8A192A973C54005DB380 /* Api+GameOrder.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "Api+GameOrder.m"; sourceTree = "<group>"; };
237B94C12A98B46E007853E3 /* XPSessionMessageGameInfoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPSessionMessageGameInfoView.h; sourceTree = "<group>"; };
237B94C22A98B46E007853E3 /* XPSessionMessageGameInfoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPSessionMessageGameInfoView.m; sourceTree = "<group>"; };
23E1708A2AED2E080039DE62 /* YYTextAsyncLayer+XPTextAsyncLayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "YYTextAsyncLayer+XPTextAsyncLayer.h"; path = "xplan-ios/Appdelegate/YYTextAsyncLayer+XPTextAsyncLayer.h"; sourceTree = SOURCE_ROOT; };
23E1708B2AED2E080039DE62 /* YYTextAsyncLayer+XPTextAsyncLayer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "YYTextAsyncLayer+XPTextAsyncLayer.m"; path = "xplan-ios/Appdelegate/YYTextAsyncLayer+XPTextAsyncLayer.m"; sourceTree = SOURCE_ROOT; };
23F8BFF62A7A392000A36763 /* XPRoomMessagePrivilegeCardCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomMessagePrivilegeCardCell.h; sourceTree = "<group>"; };
23F8BFF72A7A392000A36763 /* XPRoomMessagePrivilegeCardCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomMessagePrivilegeCardCell.m; sourceTree = "<group>"; };
7DB00EC07F1D0ADFF900B38D /* Pods-xplan-ios.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-xplan-ios.debug.xcconfig"; path = "Target Support Files/Pods-xplan-ios/Pods-xplan-ios.debug.xcconfig"; sourceTree = "<group>"; };
@@ -6461,6 +6464,8 @@
189DD52D26DE255300AB55B1 /* AppDelegate.m */,
E81C27AC26EF39AB0031E639 /* AppDelegate+ThirdConfig.h */,
E81C27AD26EF39AB0031E639 /* AppDelegate+ThirdConfig.m */,
23E1708A2AED2E080039DE62 /* YYTextAsyncLayer+XPTextAsyncLayer.h */,
23E1708B2AED2E080039DE62 /* YYTextAsyncLayer+XPTextAsyncLayer.m */,
);
path = AppDelegate;
sourceTree = "<group>";
@@ -10614,6 +10619,7 @@
E8AC721026F43955007D6E91 /* UIImageConstant.m in Sources */,
E81C27A026EEF83D0031E639 /* XPHtmlUrl.m in Sources */,
E8F1558D28124D5200EE8C06 /* MessageConentAudioView.m in Sources */,
23E1708C2AED2E080039DE62 /* YYTextAsyncLayer+XPTextAsyncLayer.m in Sources */,
E8E20BDB281645300033B688 /* SessionInfoViewController.m in Sources */,
E8AB631C28ADE30E0023B0D2 /* XPMonentsTopicLatestPresenter.m in Sources */,
E8E859CA28264C2300EE4857 /* WebSocket.m in Sources */,
@@ -11358,6 +11364,236 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-l\"WechatOpenSDK\"",
"-l\"c++\"",
"-l\"c++.1\"",
"-l\"iconv\"",
"-l\"resolv\"",
"-l\"sqlite3\"",
"-l\"sqlite3.0\"",
"-l\"xml2\"",
"-l\"z\"",
"-framework",
"\"AFNetworking\"",
"-framework",
"\"AVFoundation\"",
"-framework",
"\"Accelerate\"",
"-framework",
"\"AdSupport\"",
"-framework",
"\"AgoraAiEchoCancellationExtension\"",
"-framework",
"\"AgoraAiNoiseSuppressionExtension\"",
"-framework",
"\"AgoraAudioBeautyExtension\"",
"-framework",
"\"AgoraClearVisionExtension\"",
"-framework",
"\"AgoraContentInspectExtension\"",
"-framework",
"\"AgoraCore\"",
"-framework",
"\"AgoraDrmLoaderExtension\"",
"-framework",
"\"AgoraFaceDetectionExtension\"",
"-framework",
"\"AgoraReplayKitExtension\"",
"-framework",
"\"AgoraRtcKit\"",
"-framework",
"\"AgoraSoundTouch\"",
"-framework",
"\"AgoraSpatialAudioExtension\"",
"-framework",
"\"AgoraVideoDecoderExtension\"",
"-framework",
"\"AgoraVideoEncoderExtension\"",
"-framework",
"\"AgoraVideoQualityAnalyzerExtension\"",
"-framework",
"\"AgoraVideoSegmentationExtension\"",
"-framework",
"\"Agorafdkaac\"",
"-framework",
"\"Agoraffmpeg\"",
"-framework",
"\"AlipaySDK\"",
"-framework",
"\"AppleAccountConnector\"",
"-framework",
"\"AssetsLibrary\"",
"-framework",
"\"AudioToolbox\"",
"-framework",
"\"Base64\"",
"-framework",
"\"Bugly\"",
"-framework",
"\"CFNetwork\"",
"-framework",
"\"CocoaAsyncSocket\"",
"-framework",
"\"CoreFoundation\"",
"-framework",
"\"CoreGraphics\"",
"-framework",
"\"CoreLocation\"",
"-framework",
"\"CoreMedia\"",
"-framework",
"\"CoreMotion\"",
"-framework",
"\"CoreServices\"",
"-framework",
"\"CoreSpotlight\"",
"-framework",
"\"CoreTelephony\"",
"-framework",
"\"CoreText\"",
"-framework",
"\"FFPopup\"",
"-framework",
"\"FLAnimatedImage\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"HappyDNS\"",
"-framework",
"\"IAPHelper\"",
"-framework",
"\"IQKeyboardManager\"",
"-framework",
"\"ImageIO\"",
"-framework",
"\"JXCategoryView\"",
"-framework",
"\"JXPagingView\"",
"-framework",
"\"JavaScriptCore\"",
"-framework",
"\"LinkedME_iOS\"",
"-framework",
"\"LookinServer\"",
"-framework",
"\"MBProgressHUD\"",
"-framework",
"\"MJExtension\"",
"-framework",
"\"MJRefresh\"",
"-framework",
"\"MOBFoundation\"",
"-framework",
"\"MarqueeLabel_ObjC\"",
"-framework",
"\"Masonry\"",
"-framework",
"\"MetalKit\"",
"-framework",
"\"MobileCoreServices\"",
"-framework",
"\"NIMSDK\"",
"-framework",
"\"NIMSDK2\"",
"-framework",
"\"NTESBaseComponent\"",
"-framework",
"\"NTESQuickPass\"",
"-framework",
"\"Photos\"",
"-framework",
"\"PhotosUI\"",
"-framework",
"\"Protobuf\"",
"-framework",
"\"QGVAPlayer\"",
"-framework",
"\"QQConnector\"",
"-framework",
"\"QYSDK_NIM\"",
"-framework",
"\"Qiniu\"",
"-framework",
"\"QuartzCore\"",
"-framework",
"\"ReactiveObjC\"",
"-framework",
"\"ReplayKit\"",
"-framework",
"\"SDCycleScrollView\"",
"-framework",
"\"SDWebImage\"",
"-framework",
"\"SDWebImageFLPlugin\"",
"-framework",
"\"SSKeychain\"",
"-framework",
"\"SSZipArchive\"",
"-framework",
"\"SVGAPlayer\"",
"-framework",
"\"SZTextView\"",
"-framework",
"\"Security\"",
"-framework",
"\"ShareSDK\"",
"-framework",
"\"ShareSDKConnector\"",
"-framework",
"\"ShareSDKExtension\"",
"-framework",
"\"StoreKit\"",
"-framework",
"\"SystemConfiguration\"",
"-framework",
"\"TXFFmpeg\"",
"-framework",
"\"TXLiteAVSDK_TRTC\"",
"-framework",
"\"TXSoundTouch\"",
"-framework",
"\"TZImagePickerController\"",
"-framework",
"\"TencentOpenAPI\"",
"-framework",
"\"UIKit\"",
"-framework",
"\"UMCommon\"",
"-framework",
"\"UMDevice\"",
"-framework",
"\"VideoToolbox\"",
"-framework",
"\"WYEAccountApiSDK\"",
"-framework",
"\"WYOAuth\"",
"-framework",
"\"WYTYRZUISDK\"",
"-framework",
"\"WebKit\"",
"-framework",
"\"WechatConnector\"",
"-framework",
"\"YYCache\"",
"-framework",
"\"YYImage\"",
"-framework",
"\"YYText\"",
"-framework",
"\"YYWebImage\"",
"-framework",
"\"pop\"",
"-framework",
"\"video_dec\"",
"-framework",
"\"video_enc\"",
"-weak_framework",
"\"AuthenticationServices\"",
"-ld64",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.nnbc123.voice;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -11391,6 +11627,234 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-l\"WechatOpenSDK\"",
"-l\"c++\"",
"-l\"c++.1\"",
"-l\"iconv\"",
"-l\"resolv\"",
"-l\"sqlite3\"",
"-l\"sqlite3.0\"",
"-l\"xml2\"",
"-l\"z\"",
"-framework",
"\"AFNetworking\"",
"-framework",
"\"AVFoundation\"",
"-framework",
"\"Accelerate\"",
"-framework",
"\"AdSupport\"",
"-framework",
"\"AgoraAiEchoCancellationExtension\"",
"-framework",
"\"AgoraAiNoiseSuppressionExtension\"",
"-framework",
"\"AgoraAudioBeautyExtension\"",
"-framework",
"\"AgoraClearVisionExtension\"",
"-framework",
"\"AgoraContentInspectExtension\"",
"-framework",
"\"AgoraCore\"",
"-framework",
"\"AgoraDrmLoaderExtension\"",
"-framework",
"\"AgoraFaceDetectionExtension\"",
"-framework",
"\"AgoraReplayKitExtension\"",
"-framework",
"\"AgoraRtcKit\"",
"-framework",
"\"AgoraSoundTouch\"",
"-framework",
"\"AgoraSpatialAudioExtension\"",
"-framework",
"\"AgoraVideoDecoderExtension\"",
"-framework",
"\"AgoraVideoEncoderExtension\"",
"-framework",
"\"AgoraVideoQualityAnalyzerExtension\"",
"-framework",
"\"AgoraVideoSegmentationExtension\"",
"-framework",
"\"Agorafdkaac\"",
"-framework",
"\"Agoraffmpeg\"",
"-framework",
"\"AlipaySDK\"",
"-framework",
"\"AppleAccountConnector\"",
"-framework",
"\"AssetsLibrary\"",
"-framework",
"\"AudioToolbox\"",
"-framework",
"\"Base64\"",
"-framework",
"\"Bugly\"",
"-framework",
"\"CFNetwork\"",
"-framework",
"\"CocoaAsyncSocket\"",
"-framework",
"\"CoreFoundation\"",
"-framework",
"\"CoreGraphics\"",
"-framework",
"\"CoreLocation\"",
"-framework",
"\"CoreMedia\"",
"-framework",
"\"CoreMotion\"",
"-framework",
"\"CoreServices\"",
"-framework",
"\"CoreSpotlight\"",
"-framework",
"\"CoreTelephony\"",
"-framework",
"\"CoreText\"",
"-framework",
"\"FFPopup\"",
"-framework",
"\"FLAnimatedImage\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"HappyDNS\"",
"-framework",
"\"IAPHelper\"",
"-framework",
"\"IQKeyboardManager\"",
"-framework",
"\"ImageIO\"",
"-framework",
"\"JXCategoryView\"",
"-framework",
"\"JXPagingView\"",
"-framework",
"\"JavaScriptCore\"",
"-framework",
"\"LinkedME_iOS\"",
"-framework",
"\"MBProgressHUD\"",
"-framework",
"\"MJExtension\"",
"-framework",
"\"MJRefresh\"",
"-framework",
"\"MOBFoundation\"",
"-framework",
"\"MarqueeLabel_ObjC\"",
"-framework",
"\"Masonry\"",
"-framework",
"\"MetalKit\"",
"-framework",
"\"MobileCoreServices\"",
"-framework",
"\"NIMSDK\"",
"-framework",
"\"NIMSDK2\"",
"-framework",
"\"NTESBaseComponent\"",
"-framework",
"\"NTESQuickPass\"",
"-framework",
"\"Photos\"",
"-framework",
"\"PhotosUI\"",
"-framework",
"\"Protobuf\"",
"-framework",
"\"QGVAPlayer\"",
"-framework",
"\"QQConnector\"",
"-framework",
"\"QYSDK_NIM\"",
"-framework",
"\"Qiniu\"",
"-framework",
"\"QuartzCore\"",
"-framework",
"\"ReactiveObjC\"",
"-framework",
"\"ReplayKit\"",
"-framework",
"\"SDCycleScrollView\"",
"-framework",
"\"SDWebImage\"",
"-framework",
"\"SDWebImageFLPlugin\"",
"-framework",
"\"SSKeychain\"",
"-framework",
"\"SSZipArchive\"",
"-framework",
"\"SVGAPlayer\"",
"-framework",
"\"SZTextView\"",
"-framework",
"\"Security\"",
"-framework",
"\"ShareSDK\"",
"-framework",
"\"ShareSDKConnector\"",
"-framework",
"\"ShareSDKExtension\"",
"-framework",
"\"StoreKit\"",
"-framework",
"\"SystemConfiguration\"",
"-framework",
"\"TXFFmpeg\"",
"-framework",
"\"TXLiteAVSDK_TRTC\"",
"-framework",
"\"TXSoundTouch\"",
"-framework",
"\"TZImagePickerController\"",
"-framework",
"\"TencentOpenAPI\"",
"-framework",
"\"UIKit\"",
"-framework",
"\"UMCommon\"",
"-framework",
"\"UMDevice\"",
"-framework",
"\"VideoToolbox\"",
"-framework",
"\"WYEAccountApiSDK\"",
"-framework",
"\"WYOAuth\"",
"-framework",
"\"WYTYRZUISDK\"",
"-framework",
"\"WebKit\"",
"-framework",
"\"WechatConnector\"",
"-framework",
"\"YYCache\"",
"-framework",
"\"YYImage\"",
"-framework",
"\"YYText\"",
"-framework",
"\"YYWebImage\"",
"-framework",
"\"pop\"",
"-framework",
"\"video_dec\"",
"-framework",
"\"video_enc\"",
"-weak_framework",
"\"AuthenticationServices\"",
"-ld64",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.nnbc123.voice;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";

View File

@@ -31,7 +31,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"

View File

@@ -0,0 +1,16 @@
//
// YYTextAsyncLayer+XPTextAsyncLayer.h
// xplan-ios
//
// Created by duoban on 2023/10/28.
//
#import <YYText/YYTextAsyncLayer.h>
NS_ASSUME_NONNULL_BEGIN
@interface YYTextAsyncLayer (XPTextAsyncLayer)
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,26 @@
//
// YYTextAsyncLayer+XPTextAsyncLayer.m
// xplan-ios
//
// Created by duoban on 2023/10/28.
//
#import "YYTextAsyncLayer+XPTextAsyncLayer.h"
@implementation YYTextAsyncLayer (XPTextAsyncLayer)
///iOS17bug退
+(void)load {
Method xp_displayMethod = class_getInstanceMethod(self, @selector(display));
Method xp_swizzingMethod = class_getInstanceMethod(self, @selector(xp_swizzing_display));
method_exchangeImplementations(xp_displayMethod, xp_swizzingMethod);
}
-(void)xp_swizzing_display{
//
if (self.bounds.size.width <= 0 || self.bounds.size.height <= 0) {
self.contents = nil;
return;
} else {
[self xp_swizzing_display];
}
}
@end

View File

@@ -26,12 +26,14 @@
if (self) {
_engine = [AgoraRtcEngineKit sharedEngineWithAppId:KeyWithType(KeyType_Agora) delegate:self];
[_engine setChannelProfile:AgoraChannelProfileLiveBroadcasting];
[_engine enableLastmileTest];
// [_engine enableLastmileTest];
[_engine startLastmileProbeTest:nil];
[_engine setParameters:@"{\"che.audio.keep.audiosession\":true}"];
[_engine enableAudio];
[_engine disableVideo];
[_engine enableAudioVolumeIndication:900 smooth:3 report_vad:YES];
[_engine setAudioProfile:AgoraAudioProfileMusicStandard scenario:AgoraAudioScenarioChatRoomEntertainment];
[_engine enableAudioVolumeIndication:900 smooth:3 reportVad:YES];
[_engine setAudioProfile:AgoraAudioProfileMusicStandard];
[_engine setAudioScenario:AgoraAudioScenarioGameStreaming];
#ifdef DEBUG
[_engine setLogFilter:AgoraLogFilterInfo];
#else
@@ -83,7 +85,8 @@
if (filePath) {
self.MusicCompletion = completion;
[self changePlayState:BackMusicPlayState_Stop];//need stop
[self.engine startAudioMixing:filePath loopback:NO replace:NO cycle:1];
// [self.engine startAudioMixing:filePath loopback:NO replace:NO cycle:1];
[self.engine startAudioMixing:filePath loopback:NO cycle:1];
return YES;
} else {
return NO;