下载电影文件并将其放在视频目录中...这可能吗
我想以编程方式将电影文件拉入 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设是 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.