开发者

pause a video in AVExportSession

开发者 https://www.devze.com 2023-04-11 13:54 出处:网络
I have a video which has to be paused at various points in time and then made into a new video. I use insertEmptyTimeRange in AVMutableCom开发者_C百科position to pause the video and then use AVExpor

I have a video which has to be paused at various points in time and then made into a new video.

I use insertEmptyTimeRange in AVMutableCom开发者_C百科position to pause the video and then use AVExportSession, exportAsynchronousWithCompletionHandler to export it.

But in the completionHandler I keep getting status AVAssestExportSessionStatusFailed, error code -1800 The operation could not be completed, OS due to unknown reason, & operation could not be completed.

Any help would be great, either in the way I am pausing the video or exporting it.

thanks,


videoComposition element was being set even when it was not required, removed it to recover from the error.
Hope this can help someone. thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号