我想修剪视频,所以我使用UIVideoEditorController,但当我检查可以编辑文件,然后它返回所有文件的假,mp4,mov,m4v。所以任何一个人都会告诉我问题出在哪里。
请给我UIVIdeoEditorcontroller教程的链接
发布于 2013-05-08 09:50:58
UIVideoEditorController在模拟器上不工作,所以它总是返回false,它在设备上会工作得很好。
发布于 2015-06-13 09:54:15
您可以通过UIVideoEditorController按路径找到视频编辑。
UIVideoEditorController* videoEditor = [[UIVideoEditorController alloc] init];
videoEditor.delegate=self;
NSString* videoPath = [[NSBundle mainBundle] pathForResource:@"video" ofType:@"MOV"];
if ( [UIVideoEditorController canEditVideoAtPath:videoPath] )
{
videoEditor.videoPath = videoPath;
videoEditor.videoMaximumDuration = 10.0;
//[self.customAvPlayerView addSubview:videoEditor.view];
[self presentViewController:videoEditor animated:YES completion:nil];
}
else
{
NSLog( @"can't edit video at %@", videoPath );
}http://www.raywenderlich.com/forums/viewtopic.php?t=11571&p=60182
https://stackoverflow.com/questions/6649948
复制相似问题