Skip to content

Periodic A/V resync between the two WebRTC connections #24

Description

@vitorfranklin

Video and audio are intentionally delivered over two independent WHEP connections (ARCHITECTURE.md §2.1), which cut video jitter buffer from ~289-459ms to ~16ms on a Pi 3. The trade-off: the browser no longer synchronizes them. The current ~70ms gap is below the perceptibility threshold, but there is no hard guarantee against drift over a long play session.

Suggested approach (from ARCHITECTURE.md): periodically compare HTMLMediaElement.currentTime between the video and audio elements in frontend/app.js and nudge the audio element when the gap exceeds a threshold (~100ms).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions