解决了语音上传到问题,接下来要解决下载播放问题

This commit is contained in:
joywayer
2025-06-15 12:36:47 +08:00
parent bba3ed1cb4
commit c11fc62bf1
513 changed files with 31197 additions and 2969 deletions

View File

@@ -0,0 +1,42 @@
//
// QNReportConfig.m
// QiniuSDK
//
// Created by on 2020/7/14.
// Copyright © 2020 Qiniu. All rights reserved.
//
#import "QNReportConfig.h"
#import "QNConfig.h"
#import "QNUtils.h"
@implementation QNReportConfig
+ (instancetype)sharedInstance {
static QNReportConfig *sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [[self alloc] init];
});
return sharedInstance;
}
- (instancetype)init {
self = [super init];
if (self) {
_reportEnable = YES;
_interval = 0.5;
_serverHost = kQNUpLogHost;
_recordDirectory = [NSString stringWithFormat:@"%@/report", [QNUtils sdkCacheDirectory]];
_maxRecordFileSize = 20 * 1024 * 1024;
_uploadThreshold = 16 * 1024;
_timeoutInterval = 10;
}
return self;
}
- (NSString *)serverURL {
return [NSString stringWithFormat:@"https://%@/log/4?compressed=gzip", _serverHost];
}
@end