下载电影文件并将其放在视频目录中...这可能吗

发布于 2024-09-11 16:23:48 字数 194 浏览 3 评论 0原文

我想以编程方式将电影文件拉入 NSData 对象并将其写入 iPhone 磁盘的电影目录中,以便用户可以打开他们的 iPhone iPod 部分并从那里观看电影...这可能吗?

或者我是否需要在我的应用程序中创建一个“查看”区域,将文件下载到 NSHomeDirectory 在文档中添加一个文件夹并将数据存储在那里?

感谢您的任何答复...

I want to programattically pull a movie file down into a NSData object and write it to iPhone disk in the movies directory so that the user can open up their iPhone iPod section and watch the movies from there... Is that possible?

Or do I need within my app to create a 'viewing' area, download the files to NSHomeDirectory add a folder in Documents and store the data there?

Thanks for any answers...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

洋洋洒洒 2024-09-18 16:23:48

假设是 iPhone Store 应用程序,这是不可能的,因为沙盒应用程序无法访问 Movie 目录。

当然,您可以随意将电影下载到应用程序可访问的位置,并在应用程序中播放电影。

Assuming an iPhone Store application, this is not do-able, as the Movie directory is not accessible to the sandboxed application.

Of course, you're free to download the movie to a location accessible to your application, and playing the movie inside your application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文