Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复AudioComponentInstance销毁错误问题 #130

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion LFLiveKit/objects/LFLiveDebug.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion LFLiveKit/publish/LFStreamRtmpSocket.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down