开发者

MPMusicPlayerController volume increase and decreasing dynamically

开发者 https://www.devze.com 2023-02-20 21:32 出处:网络
I am implementing a musci application in that I need to support playing of 2开发者_StackOverflow audio files at a time. I did it one with MPMusciplayer controller and another one with AVAudioPlayer as

I am implementing a musci application in that I need to support playing of 2开发者_StackOverflow audio files at a time. I did it one with MPMusciplayer controller and another one with AVAudioPlayer as per my requirements I need to support 2 different volume levels for both players at a time when they both playing. Is this possible?

Can you guys please help one this?

Thanks in advance Chandra


Use Slider View and Give that slider value to this code will help you.

[[MPMusicPlayerController applicationMusicPlayer] setVolume:slider.value];
0

精彩评论

暂无评论...
验证码 换一张
取 消