diff --git a/LFLiveKit/objects/LFLiveDebug.m b/LFLiveKit/objects/LFLiveDebug.m index 15210b30..bb506620 100644 --- a/LFLiveKit/objects/LFLiveDebug.m +++ b/LFLiveKit/objects/LFLiveDebug.m @@ -10,9 +10,21 @@ @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; +// } - (NSString *)description { return [NSString stringWithFormat:@"丢掉的帧数:%ld 总帧数:%ld 上次的音频捕获个数:%d 上次的视频捕获个数:%d 未发送个数:%ld 总流量:%0.f",_dropFrame,_totalFrame,_currentCapturedAudioCount,_currentCapturedVideoCount,_unSendCount,_dataFlow]; } - @end 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);