PLShortVideoUploader初始化报错

新手上路,请多包涵

报错信息:-[QNConfigurationBuilder setDns:]: unrecognized selector sent to instance 0x1c0298bf0
(lldb)
相关代码:
DLOG(@"self.uploadToken%@", self.uploadToken);

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

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


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

}

token是从服务器请求道德,filePath也有数据初始化后一调用就出错。

阅读 2.1k
1 个回答

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

logo
七牛云问答
子站问答
访问
宣传栏