Skip to content

feat: reconnect the Android stream after a Wi-Fi drop - #46

Merged
kvm404 merged 2 commits into
mainfrom
feat/android-auto-reconnect
Aug 18, 2026
Merged

kvm404 merged 2 commits into
mainfrom
feat/android-auto-reconnect

Conversation

@kvm404

@kvm404 kvm404 commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reconnect after a Wi-Fi drop inside StreamingService (survives screen off).
  • TRANSPORT_WIFI callback + 2s /status watchdog; single-flight; 60s give-up only while Wi-Fi is up.
  • New RTP identity each attempt; SPS/PPS cache kept; send errors do not kill the meeting.
  • Live shows “Reconnecting…”; user stays in session until Leave or a real give-up.

Why

v0.2 PR 5. Mid-meeting Wi-Fi recovery on the phone, using the resume_token from #45.

Testing

  • Unit tests
  • Manual Android verification

Evidence: ./gradlew testDebugUnitTest (114+ tests). Review loop closed 5 issues (Wi-Fi set tracking, no extra reconnect after recover, Failed is terminal, recreate socket every attempt, give-up copy).

Compatibility Impact

  • Android camera/encoder behavior

Needs a phone on the same LAN to verify a real roam. ACCESS_NETWORK_STATE added.

Privacy/Security Impact

  • Pairing/authentication
  • Local network transport
  • Device permissions

Every /reconnect sends held resume_token and pairing_secret. No new trust store.

Notes

Draft on current main (#41–#45 and #43). No Home Reconnect button (PR 6).

@kvm404
kvm404 marked this pull request as ready for review August 18, 2026 02:40
@kvm404
kvm404 merged commit d5b9ebe into main Aug 18, 2026
1 check passed
@kvm404
kvm404 deleted the feat/android-auto-reconnect branch August 18, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant