Closed nuomi1 closed 5 years ago
PLShortVideoKit 1.16.1,Swift 4.2,iOS 12.1.4。
文档中 PLSComposeMediaItem.imageDuration 默认值为 3,但是 Swift 调用时不设置会报错。
let medias = NSMutableArray() photos.forEach { photo in let imageItem = PLSComposeMediaItem() imageItem.mediaType = .image imageItem.image = photo // imageItem.imageDuration = 3 medias.add(imageItem) } imageVideoComposer?.mediaArrays = medias
[W] Pili-ShortVideo-ImageVideoComposer Error Domain=PLSImageVideoComposer Code=-1 "can find video track" UserInfo={NSLocalizedDescription=can find video track} -[PLSImageVideoComposer cancelComposing:] PLSImageVideoComposer.m:665
已经找到问题所在并解决,多谢 @nuomi1 将在下个版本更新中发布更新
PLShortVideoKit 1.16.1,Swift 4.2,iOS 12.1.4。
文档中 PLSComposeMediaItem.imageDuration 默认值为 3,但是 Swift 调用时不设置会报错。