当前位置: 动力学知识库 > 问答 > 编程问答 >

objective c - Accessing a video file outside sandbox

问题描述:

What is the process for accessing a video file on an iPhone so I can transfer it via Bluetooth?

NSBundle *bundle = [NSBundle mainBundle];

NSString *moviePath = [bundle pathForResource:@"movie" ofType:@"m4v"];

How can I access the file system on the iPhone? By using NSFileManager I can only access the files in the application's sandbox.

网友答案:

Your application can't access any other content besides the controllers that provide files(like UIImagePickerViewController) and stuff on the internet.

网友答案:

You can access video content in the users Photos through AssetsLibrary and AVFoundation (using AVAssetReader), but you can only decode frames this way, you cannot transfer the video file as-is.

分享给朋友:
您可能感兴趣的文章:
随机阅读: