frosty/lib
Tommy Chow 2a203aa0d1 fix(video): re-run player init on every webview page load
`_needsInit` replaced the JS-side `window._injected` guard in 9cec89a, but
the two have different lifetimes. `window._injected` died with the page, so
any page load re-ran `initVideo()`. `_needsInit` lives on the store and was
only re-armed by `handleRefresh()`.

The store outlives the Video widget, which loads `videoUrl` on every mount.
Those reloads hit `onPageFinished` with `_needsInit` already false and
returned early, so the player came back with no play/pause listeners, no
cached `_videoEl`, no autoplay call and no overlay CSS — visibly stuck
paused with a play button that did nothing, unrecoverable without an app
restart.

Re-arm on `onPageStarted` so every navigation re-initializes, restoring the
page-scoped lifetime while keeping the Dart-side control that fixed the
original race.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-08 11:47:42 -07:00
..
apis fix(chat): paginate moderated channels and refresh mod status on entry 2026-07-02 18:51:04 -04:00
models feat(chat): add bubbles for shared chat participant channels (#581) 2026-07-03 00:16:49 -04:00
screens fix(video): re-run player init on every webview page load 2026-08-08 11:47:42 -07:00
services feat(video,chat): native player, ad-break awareness, chat send/delay reliability, and tab redesign (#567) 2026-06-13 17:06:24 -04:00
stores improve Firebase integration across Crashlytics, Analytics, and Performance 2026-03-08 00:18:21 -08:00
utils feat(video,chat): native player, ad-break awareness, chat send/delay reliability, and tab redesign (#567) 2026-06-13 17:06:24 -04:00
widgets feat(chat): moderator actions (delete / timeout / ban / unban) (#576) 2026-07-02 17:43:37 -04:00
cache_manager.dart Fix large cache size (#437) 2025-04-06 19:58:37 -07:00
constants.dart feat(video,chat): native player, ad-break awareness, chat send/delay reliability, and tab redesign (#567) 2026-06-13 17:06:24 -04:00
firebase_options.dart Update to Material 3/You and other changes/fixes (#280) 2023-10-22 18:38:32 -04:00
main.dart fix: reclassify transient errors as non-fatal and fix top crashes 2026-06-21 15:04:11 -04:00
theme.dart feat(video,chat): native player, ad-break awareness, chat send/delay reliability, and tab redesign (#567) 2026-06-13 17:06:24 -04:00
utils.dart v5 (#463) 2026-01-01 22:28:17 -05:00