opentok / opentok-android-sdk-samples

Sample applications illustrating best practices using OpenTok Android SDK.
https://tokbox.com/developer/sdks/android/
MIT License
211 stars 169 forks source link

Is it possible to disable Audio ? #383

Closed GuillaumeBourge closed 1 year ago

GuillaumeBourge commented 3 years ago

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 commented 3 years ago

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..