Uiimagepickercontroller,音量叠加不起作用

发布于 2024-10-08 19:25:26 字数 410 浏览 0 评论 0原文

我正在开发一个使用 uiimagepickercontroller 的应用程序。该应用程序首先启动源类型设置为“相机”的 uiimagepickercontroller,然后用户可以按选项卡栏项目启动源类型为“PhotoSavedAlbums”的 imagepickercontroller。所有它都有效,但不是默认音量(我们可以通过iPhone的硬件按钮设置的音量),使用SourceType“Camera”,音量被禁用(并且没有带有铃声的覆盖),但使用SourceType“SavedPhotosAlbum” " 音量开始工作,并出现带有铃声的叠加层。我注意到相机应用程序的默认行为与我的应用程序相同,但同时我看到许多其他应用程序允许在源类型为“相机”的 imagepickercontroller 中设置音量。我已经尝试了很多小时,找不到解决方案。有什么想法吗?我找不到任何可以执行此操作的音频属性!

i'm developing an app that use uiimagepickercontroller. The app launches first the uiimagepickercontroller with source type setted to "Camera" and then the user can press a tabbar item to launch the imagepickercontroller with source type on "PhotoSavedAlbums". All it works but not the default volume (the volume that we can set by the hardware buttons of the iphone),with SourceType "Camera" the volume is disabled (and there isn't the overlay with the bell) but with SourceType "SavedPhotosAlbum" the volume works and the overlay with the bell appears. I have noticed that the default behavior of the camera app is the same of my application,but at the same time i've seen many others apps that permits to set volume in imagepickercontroller with sourcetype "Camera". I have tried for many hours,i can't found a solution. Any Ideas? I can't find any audio property that do this work!

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

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

发布评论

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

评论(1

你的笑 2024-10-15 19:25:26

使覆盖音量控制可见的唯一解决方案是使用 AVFoundation 框架而不是经典的 uiimagepickercontroller。

The only solution to make visible the overlay volume control is use AVFoundation framework instead of the classic uiimagepickercontroller.

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