diff --git a/LFLiveKit/coder/LFHardwareAudioEncoder.m b/LFLiveKit/coder/LFHardwareAudioEncoder.m index f3128391..e2761ec1 100755 --- a/LFLiveKit/coder/LFHardwareAudioEncoder.m +++ b/LFLiveKit/coder/LFHardwareAudioEncoder.m @@ -48,6 +48,7 @@ - (instancetype)initWithAudioStreamConfiguration:(nullable LFLiveAudioConfigurat - (void)dealloc { if (aacBuf) free(aacBuf); if (leftBuf) free(leftBuf); + if(m_converter) AudioConverterDispose(m_converter); } #pragma mark -- LFAudioEncoder diff --git a/LFLiveKit/publish/LFStreamingBuffer.m b/LFLiveKit/publish/LFStreamingBuffer.m index 9a422e7d..df49b811 100755 --- a/LFLiveKit/publish/LFStreamingBuffer.m +++ b/LFLiveKit/publish/LFStreamingBuffer.m @@ -9,7 +9,7 @@ #import "LFStreamingBuffer.h" #import "NSMutableArray+LFAdd.h" -static const NSUInteger defaultSortBufferMaxCount = 1;///< 排序10个内 +static const NSUInteger defaultSortBufferMaxCount = 5;///< 排序10个内 static const NSUInteger defaultUpdateInterval = 1;///< 更新频率为1s static const NSUInteger defaultCallBackInterval = 5;///< 5s计时一次 static const NSUInteger defaultSendBufferMaxCount = 600;///< 最大缓冲区为600 diff --git a/LFLiveKitDemo/LFLiveKitDemo.xcodeproj/project.pbxproj b/LFLiveKitDemo/LFLiveKitDemo.xcodeproj/project.pbxproj index 549f0d9b..825531c7 100644 --- a/LFLiveKitDemo/LFLiveKitDemo.xcodeproj/project.pbxproj +++ b/LFLiveKitDemo/LFLiveKitDemo.xcodeproj/project.pbxproj @@ -210,6 +210,7 @@ TargetAttributes = { 84D8B4251D75778B00752B56 = { CreatedOnToolsVersion = 7.3.1; + DevelopmentTeam = G497YX6CBT; }; }; }; @@ -399,6 +400,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = G497YX6CBT; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/../Vendor\"/**", @@ -409,7 +411,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ""; OTHER_LDFLAGS = "-all_load"; - PRODUCT_BUNDLE_IDENTIFIER = com.youku.LFLiveKitDemo; + PRODUCT_BUNDLE_IDENTIFIER = com.youku.LaiFeng; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; @@ -418,6 +420,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = G497YX6CBT; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/../Vendor\"/**", @@ -428,7 +431,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ""; OTHER_LDFLAGS = "-all_load"; - PRODUCT_BUNDLE_IDENTIFIER = com.youku.LFLiveKitDemo; + PRODUCT_BUNDLE_IDENTIFIER = com.youku.LaiFeng; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; diff --git a/LFLiveKitDemo/LFLiveKitDemo/Info.plist b/LFLiveKitDemo/LFLiveKitDemo/Info.plist index 91b8fbc9..a44da8ce 100644 --- a/LFLiveKitDemo/LFLiveKitDemo/Info.plist +++ b/LFLiveKitDemo/LFLiveKitDemo/Info.plist @@ -26,6 +26,10 @@ LaunchScreen UIMainStoryboardFile Main + NSCameraUsageDescription + cameraDesciption + NSMicrophoneUsageDescription + microphoneDesciption UIRequiredDeviceCapabilities armv7