react-native-sinch-calling 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,12 +197,14 @@ class SinchCallManager(private val context: Context) {
|
|
|
197
197
|
return
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
sinchClient.audioController.enableAutomaticAudioRouting(
|
|
201
|
-
AudioController.AudioRoutingConfig(AudioController.UseSpeakerphone.SPEAKERPHONE_AUTO, true)
|
|
202
|
-
)
|
|
203
|
-
|
|
204
200
|
sinchClient.addSinchClientListener(object : SinchClientListener {
|
|
205
201
|
override fun onClientStarted(client: SinchClient) {
|
|
202
|
+
// `audioController` throws `IllegalStateException: SinchClient not
|
|
203
|
+
// started` if touched before this callback — it's only valid once
|
|
204
|
+
// the client has actually started, not right after `build()`.
|
|
205
|
+
client.audioController.enableAutomaticAudioRouting(
|
|
206
|
+
AudioController.AudioRoutingConfig(AudioController.UseSpeakerphone.SPEAKERPHONE_AUTO, true)
|
|
207
|
+
)
|
|
206
208
|
listener?.onClientStarted()
|
|
207
209
|
}
|
|
208
210
|
|
package/package.json
CHANGED