0

错误信息:-[QNConfigurationBuilder setDns:]: unrecognized selector sent to instance 0x1c04915d0 (lldb)
代码:

NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyyMMddHHmmss";
NSString *key;
//视频
if (self.actionType == PLSActionTypePlayer) {
    key = [NSString stringWithFormat:@"short_video_%@.mp4", [formatter stringFromDate:[NSDate date]]];
}
//多图

// if (self.actionType == PLSActionTypeGroupPic) {
// key = [NSString stringWithFormat:@"short_video_%@.gif", [formatter stringFromDate:[NSDate date]]];
// }
// 配置上传参数

PLSUploaderConfiguration * uploadConfig = [[PLSUploaderConfiguration alloc] initWithToken:self.uploadToken videoKey:key https:YES recorder:nil];

// 创建上传对象

self.shortVideoUploader = [[PLShortVideoUploader alloc] initWithConfiguration:uploadConfig];
self.shortVideoUploader.delegate = self;

NSString *filePath = _url.path;
[self.shortVideoUploader uploadVideoFile:filePath];

调用方法uploadVideoFile:时显示错误信息如上,数据都有
拂溪 3
2018-08-29 提问
1 个回答
0

Qiniu的sdk在7.2.4版本,移除了QNConfigutation的dns属性,导致短视频上传crash,报找不到这个方法。如果是1.13.1及之前的版本,您需要指定下QiniuSDK的版本号为7.2.3。

撰写答案

你可能感兴趣的

推广链接