将音频文件从应用程序保存到 iPad/iPhone 库

发布于 2024-10-07 07:47:33 字数 274 浏览 0 评论 0原文

一整天的大部分时间我一直在试图弄清楚如何做到这一点,但我没有找到太多帮助。我们有这个多媒体应用程序,允许用户查看有关特定主题的图片、视频和音乐/铃声。我知道您可以使用 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 技术交流群。

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

发布评论

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

评论(1

一花一树开 2024-10-14 07:47:33

官方 SDK 只允许您使用 MPMediaLibrary 检索信息,没有写入权限。

The official SDK only allows you to retrieve information with MPMediaLibrary, no write access.

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