We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f43476 commit 2880782Copy full SHA for 2880782
features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenView.kt
@@ -191,6 +191,12 @@ private fun CallWebView(
191
update = { webView ->
192
if (url is AsyncData.Success && webView.url != url.data) {
193
webView.loadUrl(url.data)
194
+
195
+ val audioManager = webView.context.getSystemService<AudioManager>()!!
196
+ val devices = audioManager.loadCommunicationAudioDevices()
197
+ webView.evaluateJavascript("""
198
+ controls.setOutputDevices([${devices.joinToString(",") { "{ 'id': '${it.id}', 'name': '${it.description()}' }" } }])
199
+ """.trimIndent(), null)
200
}
201
},
202
onRelease = { webView ->
0 commit comments