2011-07-11 9 views
1

私はUIVideoEditorControllerを使用しているのでビデオをトリミングしたいが、私がチェックするとファイルを編集できるので、すべてのファイル、mp4、mov、m4vに対してfalseを返す。だから、どんな人でも私は何が問題なのか教えてくれるでしょう。 UIVideoEditorControllerを使用してビデオを編集する

  1. は、あなたは私に、それはデバイス上で正常に動作します、それは常にfalseを返しますので、シミュレータ上では動作しませんUIVIdeoEditorcontroller

答えて

2

UIVideoEditorControllerを使用して、任意のチュートリアルのリンクをお願いします。

1

ビデオの編集は、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

関連する問題