- 开始发布到会话,注意Android操作系统现在报告应用程序正在使用摄像头和麦克风,这很好.
- 电话会议.onPause()后跟publisher.publishAudio=false.
- (可选)按Home按钮将应用程序移到后台.
- Android操作系统表明摄像头不再被使用,但应用程序仍在使用麦克风.
虽然它不会影响应用程序的可用性,但从用户隐私Angular 来看,它是不好的——用户可能认为应用程序在后台仍在录制音频,这很可怕.
有没有其他方法可以让我像摄像头一样完全关闭麦克风?
虽然它不会影响应用程序的可用性,但从用户隐私Angular 来看,它是不好的——用户可能认为应用程序在后台仍在录制音频,这很可怕.
有没有其他方法可以让我像摄像头一样完全关闭麦克风?
得到了Tokbox支持部门的回复,他们提供了一个可以正常工作的调整!
For your use case, where you don't want to retain the audio access when
the app goes into the background, you can try to call
AudioDeviceManager.getAudioDevice().stopCapturer() to stop the capturer
and it will remove the microphone access. If you do this, please make
sure to call AudioDeviceManager.getAudioDevice().startCapturer() when
the app comes in the foreground.