Skip to content
matoude1234567 edited this page Dec 2, 2016 · 2 revisions

接口定义

播放器静音

setPlayerMute(int mute) 设置播放器是否禁音,1和0分别指播放禁音和不禁音

if(ksyMediaPlayer!=null){
    if(mmute == false){
        //播放器静音
        ksyMediaPlayer.setPlayerMute(1);
        mmute = true;
    }else{
        ksyMediaPlayer.setPlayerMute(0);
        mmute = false;
    }
}
Clone this wiki locally