我正在制作一个Android应用程序来与webRTC进行视频通话 . 当我停止视频通话时,我出错,音频仍然有效 . 它没有被摧毁 .

我能做什么? . 请帮我!谢谢!我指的是这个链接:webRTC-sample

这是我的代码:

public void stop() {
    if (audioConstraints != null) {
        audioConstraints = null;
    }
    if (audioSource != null) {
        audioSource.dispose();
    }
    if (videoCapturerAndroid != null) {
        try {
            videoCapturerAndroid.stopCapture();
            videoCapturerAndroid.dispose();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    if (mLocalVideoView != null) {
        mLocalVideoView.release();
    }
    if (mRemoteVideoView != null) {
        mRemoteVideoView.release();
    }
    if (localPeer != null) {
        localPeer.close();
    }
    finish();
}