suchen

Heim  >  Fragen und Antworten  >  Hauptteil

javascript - 微信的音频接口,音频播放时离开当前页面也不会停止

$(window).bind('beforeunload', function(){
    if(localId)
    {
        wx.stopVoice({
        localId:localId
        });
    }
});

离开当前页面调用不了wx.stopVoice接口?要怎么办才能离开页面时音频也停止播放

阿神阿神2903 Tage vor683

Antworte allen(0)Ich werde antworten

Keine Antwort
  • StornierenAntwort