Skip to content

v1.3.2

Choose a tag to compare

@mormegil6 mormegil6 released this 31 Aug 07:21
· 40 commits to main since this release
v1.3.2
c4fc8d8

A bug in last release's own audio fix: closing the AudioContext on pagehide did not check whether the page was actually unloading. WebKit fires that event with persisted: true when it is caching a page for a likely back or forward restore, not destroying it, and the whole JavaScript state survives that including the context object itself. Switching tabs and back, or a back-arrow navigation and back, both left a page that had never truly unloaded with a context closed for the rest of its life. No reload recovered it; only quitting Safari did.

The fix checks event.persisted and skips the close when the page is being cached rather than destroyed. Verified in both directions: a persisted pagehide now leaves a running context running, and a genuine one still closes it as before.

While reproducing that bug, live captures also confirmed a separate dash.js defect independent of it: a healthy session can silently tear down mid-playback, with no ERROR event ever firing on the public event bus, on both MediaSource and ManagedMediaSource. That is not fixed here. It has been reported upstream, and this player's existing recovery watchdog still catches the resulting stall and reloads within about 30 seconds.