jjzjj

iphone - UIVideoEditorController canEditVideoAtPath 对库中的 Assets 返回 false

coder 2024-01-15 原文

来自图书馆的 Assets ,即:assets-library://asset/asset.mov?id=0399CB6D-D3D9-4F4C-82B9-AC93CCE2FB16&ext=mov

[UIVideoEditorController canEditVideoAtPath:videoPath]总是返回 NO

我在控制台中看到这个错误: <Warning>: Video assets-library://asset/asset.mov?id=0399CB6D-D3D9-4F4C-82B9-AC93CCE2FB16&ext=mov cannot be saved to the saved photos album: Error Domain=NSOSStatusErrorDomain Code=2 "This movie could not be played." UserInfo=0x6f7b90 {NSLocalizedDescription=This movie could not be played.}

帮助?

最佳答案

显然无法使用 UIVideoEditController 编辑库资源。 我最终使用 AVAssetWriter 将文件复制到应用程序沙箱,然后我能够使用 UIVideoEditController

关于iphone - UIVideoEditorController canEditVideoAtPath 对库中的 Assets 返回 false,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11414512/

有关iphone - UIVideoEditorController canEditVideoAtPath 对库中的 Assets 返回 false的更多相关文章

随机推荐