opentok / opentok-network-test

Sample app to test network connectivity and statistics (bps, packet-lost)
MIT License
111 stars 56 forks source link

Network test is accessing microphone even though publishAudio is set to false (user Privacy issue) #56

Open iori57 opened 1 year ago

iori57 commented 1 year ago

I am using latest Opentok Android SDK v2.25.3, with device Google Pixel 6 Pro

Steps to reproduce: 1) Following the network test sample code provided, perform bandwidth test while setting publishAudio=false for the Publisher, as I am only interested in the video bandwidth

2) When the bandwidth test starts, the microphone access indicator led on the top right corner of the device lights up

image

3) Tapping on the microphone indicator, it says Mic access - being used by Lifestream (our app)

image

4) If I start a Whatsapp call before hand, then open our app and start bandwidth test, it takes over the microphone and the other side of the Whatsapp call could not hear me anymore.

PS: On a Huawei device that I have, when no.4 above happens, it shows this warning below, which is a huge concern for the users as they will thought we are recording them secretly while we are just running bandwidth test.

image
vona-ben commented 1 year ago

Hi iori57,

I believe our video support team has already assisted you. If that's not the case, please let me know

iori57 commented 1 year ago

Yup it has been resolved thanks!

The solution is to set audioTrack(false) when first creating the Publisher Object used for the bandwidth test, instead of using publishAudio=false after that.