From 2dfeb1174d3b61dc21fa9b97ca3d5da55ac20622 Mon Sep 17 00:00:00 2001 From: LinBq Date: Wed, 2 Nov 2016 10:58:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAudioComponentInstance?= =?UTF-8?q?=E9=94=80=E6=AF=81=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LFLiveKit/capture/LFAudioCapture.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LFLiveKit/capture/LFAudioCapture.m b/LFLiveKit/capture/LFAudioCapture.m index a60f095c..b0ff44c3 100755 --- a/LFLiveKit/capture/LFAudioCapture.m +++ b/LFLiveKit/capture/LFAudioCapture.m @@ -98,7 +98,7 @@ - (instancetype)initWithAudioConfiguration:(LFLiveAudioConfiguration *)configura - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; - dispatch_async(self.taskQueue, ^{ + dispatch_sync(self.taskQueue, ^{ if (self.componetInstance) { self.isRunning = NO; AudioOutputUnitStop(self.componetInstance); From 140a81243698c6f3cb9ebcccf269f58748c26a85 Mon Sep 17 00:00:00 2001 From: LinBq Date: Tue, 15 Nov 2016 10:21:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0LFLiveDebug=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E7=9A=84description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LFLiveKit/objects/LFLiveDebug.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/LFLiveKit/objects/LFLiveDebug.m b/LFLiveKit/objects/LFLiveDebug.m index cae6195e..7b525039 100644 --- a/LFLiveKit/objects/LFLiveDebug.m +++ b/LFLiveKit/objects/LFLiveDebug.m @@ -10,5 +10,18 @@ @implementation LFLiveDebug +- (NSString *)description{ + NSString *desc = [NSString stringWithFormat:@"\nstreamId = %@, uploadUrl = %@, videoSize = %@, isRtmp = %@;\n\ + elapsedMilli = %.02f, timeStamp = %.02f, dataFlow = %.02f, bandwidth = %.02f, currentBandwidth = %.02f;\n\ + dropFrame = %ld, totalFrame = %ld;\n\ + capturedAudioCount = %ld, capturedVideoCount = %ld, currentCapturedAudioCount = %ld, currentCapturedVideoCount = %ld;\n\ + unSendCount = %ld\n", + _streamId, _uploadUrl, NSStringFromCGSize(_videoSize), @(_isRtmp), + _elapsedMilli, _timeStamp, _dataFlow, _bandwidth, _currentBandwidth, + _dropFrame, _totalFrame, + _capturedAudioCount, _capturedVideoCount, _currentCapturedAudioCount, _currentCapturedVideoCount, + _unSendCount]; + return desc; +} @end From fb7482c6886fa049844a65db75960294a8034857 Mon Sep 17 00:00:00 2001 From: LinBq Date: Tue, 28 Feb 2017 11:38:16 +0800 Subject: [PATCH 3/3] =?UTF-8?q?#=20=E4=BF=AE=E6=AD=A3=20-=20av=5FSDKVersio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LFLiveKit/publish/LFStreamRtmpSocket.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LFLiveKit/publish/LFStreamRtmpSocket.m b/LFLiveKit/publish/LFStreamRtmpSocket.m index 89118046..ec3ca680 100644 --- a/LFLiveKit/publish/LFStreamRtmpSocket.m +++ b/LFLiveKit/publish/LFStreamRtmpSocket.m @@ -26,7 +26,7 @@ #define SAVC(x) static const AVal av_ ## x = AVC(#x) static const AVal av_setDataFrame = AVC("@setDataFrame"); -static const AVal av_SDKVersion = AVC("LFLiveKit 2.4.0"); +static const AVal av_SDKVersion = AVC("PLVLiveKit 1.0"); SAVC(onMetaData); SAVC(duration); SAVC(width);