以编程方式更改音量时 MPMoviePlayerController 的奇怪行为

发布于 2024-08-06 03:36:47 字数 147 浏览 2 评论 0原文

在我的应用程序中,我使用 MPMoviePlayerController 音量属性更改音量(用于淡入淡出效果和静音,同时保持播放状态)。

有时,在更改音量时,音量显示(使用 iPhone 侧面的音量按钮时看到的内容)会闪烁并消失。有什么办法可以防止这种情况发生吗?

In my application I am changing volume using the MPMoviePlayerController volume property (for fade effects and muting while leaving it still playing).

Sometimes, sporadically, when changing the volume, the volume display (what you see when you use the volume buttons on the side of the iphone) will flash and disappear. Is there anyway to prevent this from happening?

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

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

发布评论

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

评论(1

征棹 2024-08-13 03:36:47

我有类似的问题。
我在一个视图中使用 MPVolumeView,在另一个视图中使用 MPMoviePlayerController。
当我分配 MPMoviePlayerController 播放视频然后使用 MPVolumeView 返回到我的音频播放器时,会显示音量,但在使用 MPMoviePlayerController 之前不会显示。

蒂埃里

I have a similar problem.
I am using MPVolumeView in a view and a MPMoviePlayerController in another view.
When I allocate MPMoviePlayerController an play a video then return to my audio player using MPVolumeView the volume is displayed but not before using MPMoviePlayerController.

Thierry

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