开发者

Accessing a video file outside sandbox

开发者 https://www.devze.com 2023-03-30 07:31 出处:网络
What is the process for accessing a video file on an iPhone so I can transfer it via Bluetooth? NSBundle *bundle = [NSBundle mainBundle];

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 a开发者_Go百科ccess 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.

0

精彩评论

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