opentok-android-sdk-samples icon indicating copy to clipboard operation
opentok-android-sdk-samples copied to clipboard

Is it possible to disable Audio ?

Open GuillaumeBourge opened this issue 3 years ago • 1 comments

Hi,

I am using the SDK to stream the video only, i removed audio/bluetooth permission that are intrusive/useless in our case. The streaming works nice but, i have still some error in Log for Audio : E/IAudioFlinger: createRecord returned error -22 And a stacktrace for Bluetooth : E/BluetoothAdapter: Application does not have bluetooth permission, registering is failed E/BluetoothAdapter: java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10365 nor current process has android.permission.BLUETOOTH.

How can i add setting to the Session object to avoid these ?

Thanks

GuillaumeBourge avatar May 04 '21 13:05 GuillaumeBourge

For the audio error that was my fault, i miss to add setAudioTrack(false) but that not fix the bluetooth issue...

The BluetoothAdapter seems to be called even if audiotrack set to false..

GuillaumeBourge avatar May 27 '21 08:05 GuillaumeBourge