Skip to content

audio doesn't survive audio-output/routing changes on android tv — stream dies silently, or playback freezes if started while ARC is active #386

Description

@abdelaziz-mahdy

TCL google tv (realtek RTD2875P, android 12), same device as #374/#384. found while testing #384's OpenSL setup (which works great btw — audible + frame-perfect on this tv)

repro 1 — routing switch mid-playback: play anything, then switch the tv audio output (internal speaker → HDMI ARC, or back) while playing → audio dies permanently. video keeps going, mdk keeps feeding the dead stream (position clock keeps advancing), no error surfaces. only recreating the player brings audio back

repro 2 — start while ARC is active (no receiver attached): playback freezes ~1.5s in — video decode stops after ~58 frames, the AAudio stream gets paused right after start, and the whole pipeline wedges:

12:42:38.668 AAudio: AAudioStream_requestStart(s#1) returned 0
12:42:39.112 AAudio: AAudioStream_requestPause(s#1) called
12:42:39.116 AAudioStream: setState from 4 to 5   <- and nothing ever again

restart the app on internal speakers → everything is instantly fine again

expected: reopen/reroute the audio device on disconnect like other players do — mpv on the same tv survives both cases seamlessly, which is how we noticed. happy to test fixes on this device

(investigated with an AI assistant (Fable), verified on device)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions