场景如下.......
奇怪的是,它适用于带有音频的视频......
答案 0 :(得分:2)
- (void)mute { //it only work device,not work in simulator
//check condition
if(condition){
//volume mute
[[MPMusicPlayerController applicationMusicPlayer] setVolume:0];
} else {
//volume unmute
[[MPMusicPlayerController applicationMusicPlayer] setVolume:your value];
}
}