0

私のコード:

mediaURL.path は UIImagePickerControllerDelegate から取得されます

guard UIVideoEditorController.canEditVideo(atPath: mediaURL.path) else { return }

let editor = UIVideoEditorController()

editor.delegate = self

editor.videoPath = mediaURL.path

editor.videoMaximumDuration = 10

editor.videoQuality = .typeMedium

self.parentViewController.present(editor, animated: true)

以下のようにコンソールに表示されるエラーの説明。

アセット <AVURLAsset: 0x283c71940、URL = file:///private/var/mobile/Containers/Data/PluginKitPlugin/7F7889C8-20DB-4429-9A67-3304C39A0725/tmp/trim.EECE5B69-0EF5-470C-B371 のビデオ エクスポートに失敗しました-141CE1008F00.MOV>: エラー ドメイン=AVFoundationErrorドメイン コード=-11800

鳴らない

func videoEditorController(_ editor: UIVideoEditorController, didFailWithError error: Error)

コンソールにエラーを表示した後、UIVideoEditorController は自動的に閉じます。

私は何か間違ったことをしていますか?それともSwiftのバグですか?

前もって感謝します。

4

0 に答える 0