-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconnect v2 #1219
base: develop
Are you sure you want to change the base?
Reconnect v2 #1219
Conversation
# Conflicts: # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoImpl.kt # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/socket/PersistentSocket.kt
# Conflicts: # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/socket/CoordinatorSocket.kt
# Conflicts: # stream-video-android-core/api/stream-video-android-core.api # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/socket/PersistentSocket.kt # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/socket/SfuSocket.kt
# Conflicts: # stream-video-android-core/api/stream-video-android-core.api # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/internal/network/NetworkStateProvider.kt # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/utils/AndroidUtils.kt
# Conflicts: # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/socket/PersistentSocket.kt
# Conflicts: # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoImpl.kt # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/utils/DebugInfo.kt
# Conflicts: # stream-video-android-ui-core/src/main/kotlin/io/getstream/video/android/ui/common/StreamCallActivity.kt
# Conflicts: # gradle/libs.versions.toml # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/ClientState.kt # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/service/CallService.kt
# Conflicts: # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/RtcSession.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments, we also need to add tests.
demo-app/src/main/kotlin/io/getstream/video/android/ui/call/CallScreen.kt
Outdated
Show resolved
Hide resolved
demo-app/src/main/kotlin/io/getstream/video/android/ui/menu/base/DynamicMenu.kt
Show resolved
Hide resolved
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt
Outdated
Show resolved
Hide resolved
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt
Outdated
Show resolved
Hide resolved
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt
Outdated
Show resolved
Hide resolved
* If the connection is not alive anymore, an action to reconnect is postponed. | ||
* In another case the healthCheck is postponed. | ||
*/ | ||
private fun postponeHealthMonitor() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what triggers the execution of the action, after it being postponed?
fun nextInterval(consecutiveFailures: Int): Long | ||
} | ||
|
||
object ExponencialRetryInterval : RetryInterval { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*Exponential
internal open class CustomObjectDtoAdapter<Value : Any>(private val kClass: KClass<Value>) { | ||
|
||
private companion object { | ||
private const val EXTRA_DATA = "extraData" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be "custom"?
} | ||
} | ||
} | ||
// callListeners { listener -> listener.onDisconnected(cause = state.cause) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove this?
@@ -71,7 +71,7 @@ func (x VideoLayerSetting_Priority) Number() protoreflect.EnumNumber { | |||
|
|||
// Deprecated: Use VideoLayerSetting_Priority.Descriptor instead. | |||
func (VideoLayerSetting_Priority) EnumDescriptor() ([]byte, []int) { | |||
return file_video_sfu_event_events_proto_rawDescGZIP(), []int{26, 0} | |||
return file_video_sfu_event_events_proto_rawDescGZIP(), []int{29, 0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you keep this in the repo?
🎯 Goal
Implement a reconnect v2 handling on Android.
🛠 Implementation details
New coordinator and sfu socket implementation.
Refactoring on the
RTCSession
andCall
to better manage the connection state.