Skip to content

Video stream session closes after ~30 seconds regardless of configuration #61

@oytunakman

Description

@oytunakman

Video stream session closes after ~30 seconds regardless of configuration

Environment

  • Device: Android (API 29+)
  • SDK version: 0.4.0
  • Glasses: Meta Ray-Ban Smart Glasses

Description

Video stream sessions initiated via startStreamSession consistently close after approximately 30 seconds of streaming, regardless of
StreamConfiguration settings.

The session goes through the expected state transitions (STOPPED → STARTING → STARTED → STREAMING) and delivers frames successfully, but then
abruptly transitions to STOPPED → CLOSED after ~30 seconds. The device briefly disconnects (activeDevice becomes null) then immediately
reconnects.

Observed behavior

17:54:07.140 Stream state changed: STREAMING
17:54:26.435 Received video frame: 360x640
17:54:27.406 Received video frame: 360x640
...frames arriving normally at ~2fps...
17:54:32.936 Received video frame: 360x640
17:54:49.669 Stream state changed: STOPPED
17:54:49.678 Active device: null
17:54:49.685 Stream state changed: CLOSED
17:54:50.420 Active device: 2f4c18db2c729d4d2f68364e4e951078

What I've tested

  • VideoQuality.MEDIUM at 24fps → disconnects after ~30s
  • VideoQuality.LOW at 5fps → disconnects after ~30s
  • The stream is being consumed via a Kotlin Flow (session.videoStream.collect)
  • The device reconnects immediately after each disconnect, suggesting the Bluetooth connection itself is fine
  • There is also a notable ~19 second gap between STREAMING state and the first frame arriving

Expected behavior

The stream session should remain open as long as the app is actively collecting frames and the glasses are connected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions