如何在 Iphone sdk 中调节 MpMoviePlayerController 的音量? [英] How to adjust the volume of MpMoviePlayerController in Iphone sdk?

查看:67
本文介绍了如何在 Iphone sdk 中调节 MpMoviePlayerController 的音量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要你的帮助.我正在使用 MPMoviePlayerController,我需要永远静音电影播放器​​的音量.是否有任何属性可以做到这一点.你能发布一些关于此的代码吗.

I need a help fro your side.I am using the MPMoviePlayerController and I need to mute the volume of the movieplayer forever.Is there any property to do this.Can you please post some code regarding to this.

任何人的帮助将不胜感激.

Anyone's help will be much appreciated.

谢谢,斯里拉克希米.

推荐答案

[[MPMusicPlayerController applicationMusicPlayer] setVolume:(use a value between 0.0 and 1.0)]

如果您的 MPMoviePlayerController 使用应用程序音频会话,这应该可以工作.

If your MPMoviePlayerController uses the application audio session, this should work.

这篇关于如何在 Iphone sdk 中调节 MpMoviePlayerController 的音量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆