Repository navigation
Conversation
… is always removed Every other stage of the exact playback probe has a timeout, but play() did not. On LG webOS 11 the four probes (AC-3 and E-AC-3, 2 and 6 channels) ran side by side and stayed in the page afterwards: muted, hidden <audio> elements with blob: sources, readyState 1 and not paused, so the finally block that removes them never ran. They kept the TV's audio decoders, and every later playback in the page failed until the app was closed. A play() that hasn't settled within the probe timeout now counts as a timeout, and the teardown runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
runDefaultExactPlaybackProbe(src/capability/NativeMediaAudioCapabilities.ts) bounds each of its waits with the probe timeout exceptawait audioElement.play(). Ifplay()never settles, thefinallyblock that pauses and removes the hidden<audio>never runs. The cached probe promise never settles either.On an LG OLED (webOS 11.2.0, AIOStreams smart-tv 0.13.0), a WebGPU start where
requestAdapter()returnednullleft 4 such elements on the page: AC-3/E-AC-3 × 2/6 channels,blob:sources,readyState1, not paused. webOS's media service showed both of the TV's audio decoders still owned by the app, and every later play failed until the app was closed. The adapter failure doesn't cancel these probes, whichchooseRoutestarted. Pausing them or clearingsrcfrom DevTools didn't free the decoders.This change races
play()against the same probe timeout as the other steps, so a probe that can't start still reachesfinallyand removes its element.Why
play()hangs on webOS (no free decoder) is inferred from that state, not proven. I haven't run this build on the TV yet. Typecheck, eslint and the capability tests (34) pass. Context: Viren070/AIOStreams#1916.🤖 Generated with Claude Code