开发者

UIVideoEditorController know the start and end point

I am trying to use the UIVideoEditorController to be a UI so user can choose the place to split the video into 2 pieces. The problem with the UIVideoEditorController is that I ca开发者_如何学Pythonnnot know where user chooses the start position and end positions. Does anybody know how I can get these information from UIVideoEditorController? Or does it have any third party library that replicate the user interface of UIVideoEditorController?


No by using UIVideoEditorController you cannot get start position and end positions whatever the user had selected. And still now there is no third party library.


You can alternatively do this task with image picker controller after knowing the start and end point split the video or whatever you want

-(void) imagePickerController: (UIImagePickerController *) picker
    didFinishPickingMediaWithInfo: (NSDictionary *) info 
    {


            NSNumber *start = [info objectForKey:@"_UIImagePickerControllerVideoEditingStart"];
            NSNumber *end = [info objectForKey:@"_UIImagePickerControllerVideoEditingEnd"];
    }

Set allows editing yes and this will give the start and end point of user selected part for iOS 5

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜