You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d35b165
Browse filesBrowse the repository at this point in the historyBrowse files
Improve Telecom and Bluetooth Headset connectivity (#1841)
* temp
* Here’s a cleaner commit message:
Bump AudioSwitch and fix dropped Telecom actions
1. Bump AudioSwitch to 1.1.0, which includes Twilio 1.2.5 with BLE listener support.
2. Fix dropped Telecom actions by buffering the channel. Previously, the Bluetooth request could take up to 2 seconds, causing the call accept action to be dropped when both events arrived simultaneously.
* private val
* add ut
* remove ut
Copy file name to clipboardExpand all lines: stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/telecom/TelecomCallController.kt
Copy file name to clipboardExpand all lines: stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/telecom/jetpack/JetpackTelecomRepository.kt
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,9 @@ internal class JetpackTelecomRepository(
108
108
)
109
109
110
110
// Creates a channel to send actions to the call scope.
111
-
val actionSource =Channel<TelecomCallAction>()
111
+
val actionSource =Channel<TelecomCallAction>(
112
+
capacity =Channel.BUFFERED,
113
+
)
112
114
// Register the call and handle actions in the scope
113
115
try {
114
116
logger.d { "[registerCall] addCall" }
@@ -269,7 +271,14 @@ internal class JetpackTelecomRepository(
Copy file name to clipboardExpand all lines: stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/telecom/jetpack/TelecomCall.kt
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,14 @@ import android.os.ParcelUuid
20
20
importandroid.telecom.DisconnectCause
21
21
importandroidx.core.telecom.CallAttributesCompat
22
22
importandroidx.core.telecom.CallEndpointCompat
23
+
importio.getstream.log.taggedLogger
23
24
importkotlinx.coroutines.channels.Channel
24
25
25
26
/**
26
27
* Custom representation of a call state.
27
28
*/
28
29
internalsealedclassTelecomCall {
30
+
val logger by taggedLogger("TelecomCall")
29
31
30
32
/**
31
33
* There is no current or past calls in the stack
@@ -59,7 +61,9 @@ internal sealed class TelecomCall {
59
61
* @return true if the action was sent, false otherwise
Copy file name to clipboardExpand all lines: stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/notifications/internal/telecom/jetpack/JetpackTelecomRepositoryTest.kt
0 commit comments