将音频文件从应用程序保存到 iPad/iPhone 库
一整天的大部分时间我一直在试图弄清楚如何做到这一点,但我没有找到太多帮助。我们有这个多媒体应用程序,允许用户查看有关特定主题的图片、视频和音乐/铃声。我知道您可以使用 UIImageWriteToSavedPhotosAlbum
保存图像,并且可以使用 UISaveVideoAtPathToSavedPhotosAlbum
保存视频文件。但我不知道如何允许用户保存音频文件。所有文件都存储在应用程序中,因此我不像尝试从互联网上流式传输或下载它们。有人对如何执行此操作有任何指示吗?
I have been trying to figure out how to do this for most of the day, but I haven't been able to find much help. We have this multimedia app that allows users to view pictures, videos, and music/ringtones about the particular subject. I know you can save images using UIImageWriteToSavedPhotosAlbum
and you can save a video file using UISaveVideoAtPathToSavedPhotosAlbum
. But I can't figure out how to allow the user to save an audio file. All the files are stored within the app, so its not like I'm trying to stream or download them from the internet. Does anyone have any pointers on how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
官方 SDK 只允许您使用
MPMediaLibrary
检索信息,没有写入权限。The official SDK only allows you to retrieve information with
MPMediaLibrary
, no write access.