UIImagePickerController流类型用于附加.mov



在iOS7中AVCaptureMovieFileOutput在UIImagePickerController中用于将视频帧从相机附加到它的临时。mov文件?

. mov文件被创建在一个临时的位置,然后进一步附加到底层AVCaptureMovieFileOutput对象,当用户在iOS7中通过UIImagePickerController录制视频时。


我尝试使用符号断点和方法混合来精确定位以下问题之一(但没有成功)。有可能我错过了实际使用的流类型或类(或者我的断点设置不正确):

  • NSWriteStream
  • CFWriteStream
  • 从它派生出子类)NSStream
  • fstream
  • ofstream
  • 上ostream
  • iostream
  • NSFileHandle
  • posix文件描述符
  • AVAssetWriter
  • AVAssertExportSession
  • ALAssetClass
  • ALAssetLibrary

这是我用来呈现UIImagePickerViewController来录制视频的:

    #import <MobileCoreServices/MobileCoreServices.h>
    -(void)startPicker{
        UIImagePickerController *picker = [[UIImagePickerController alloc] init];
        [picker setSourceType:UIImagePickerControllerSourceTypeCamera];
        [picker setAllowsEditing:NO];
        [picker setDelegate:self];
        [picker setMediaTypes:@[(NSString*)kUTTypeMovie]];
        [self presentViewController:picker animated:YES completion:nil];
    }
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
        [picker dismissViewControllerAnimated:YES completion:nil];
        if (info)
        {
           NSURL* fileURL = [info objectForKey:UIImagePickerControllerMediaURL];
           NSLog(@"%@", fileURL.path);
        }
    }
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
        [picker dismissViewControllerAnimated:YES completion:nil];
    }

我真的需要特定的流类型和一种方法,我可以证明它正在被iOS7使用。很多谢谢!

你可以证明的方法?我不确定,但苹果更喜欢m3u8流媒体

https://developer.apple.com/library/ios/documentation/networkinginternet/conceptual/streamingmediaguide/DeployingHTTPLiveStreaming/DeployingHTTPLiveStreaming.html

相关内容

  • 没有找到相关文章

最新更新