Skip to content

v4.0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 05:55
c51b977

Release metadata: 4.0.2+14, Windows MSIX 4.0.2.0 (ads-free build).
Publisher: Devflier.

Compatibility

  • macOS: macOS 13+ on Apple Silicon (arm64) validated; Intel/universal builds are not qualified.
  • Windows: Windows x64 (4.0.2.0 MSIX generated for Microsoft Partner Center / Microsoft Store submission, where Microsoft signs the package after certification).
  • Linux: Linux x86_64 (AppImage, .deb, portable .tar.gz, and Snap). Flathub distribution is pending separate review.
  • Android: Android API 24+ (minSdk 24, ARM64 and x86_64).

Added & Improved

  • Hosted flutter_chromium_webview ^0.5.7 (platform_interface ^0.1.7): Upgraded to the published 0.5.7 release on pub.dev (with the verified historical snapshot retained under third_party/chromium).
  • Desktop Idle Memory & Startup Optimization: Implemented lazy desktop playback restoration so paused/restored sessions do not eagerly initialize Chromium/CEF or MediaKit video textures at startup (0 Chromium subprocesses at idle; measured reference baselines: ~284 MB on Windows 11 x64 and ~163–172 MB on macOS Apple Silicon arm64).
  • Rendering Throttling & Audio-Only Optimization: Throttles inactive desktop Chromium off-screen rendering via setRenderingActive(false/true) when playback is paused/resumed without suspending audio or JavaScript events, bounds desktop image cache allocations (80 MB / 300 entries, allocated lazily for Retina/HiDPI displays without scroll-back eviction thrashing), and defers MediaKit video controller/texture allocation for audio-only playback.
  • Smoother Home Scrolling & Artwork Caching: Eliminated repeated section shimmers, repeated card entry animations, and broad Home rebuilds during scrolling; added shared decode-width bucketing across PPImage and PlaylistCover, disabled redundant cached artwork fades (gaplessPlayback enabled), preserved Home vertical and horizontal scroll positions across scrolling and top-level navigation (Home ↔ Discover ↔ Library ↔ Playlist), improved offline stale-while-revalidate cached-content resilience and retry loading states, and hardened Spotify artwork URL parsing and missing-artwork fallbacks (validated on Apple Silicon macOS in profile mode across 30 vertical scroll cycles at Retina 2× with 100% warm image-cache hit rate, 0 evictions, 0 duplicate downloads, 0 scroll jank, and 0 repeated shimmers).
  • Persistent Chromium Sessions: Preserves the named ppplayer_youtube_session profile (HttpOnly cookies, document.cookie, and localStorage) across full application restarts on Windows, Linux, and macOS.
  • Windows Performance & Metadata: Adopts Chromium 0.5.7's event-driven CEF message pump (external_message_pump) and bounded pooled SIMD texture path; customized CEF bootstrap launcher version resources and icons so PPPlayer displays correctly as "PPPlayer" across Windows Task Manager, Explorer file properties, and process lists instead of "CEF Bootstrap Application".
  • Linux Lifecycle, Packaging & Release Channels: Adopts Chromium 0.5.7's multi-threaded message loop (MTML) shutdown hardening, ships a narrowly scoped .deb AppArmor userns profile (/etc/apparmor.d/ppplayer) preserving Chromium's native sandbox on Ubuntu 24.04+/26.04, bundles desktop/AppStream/icon metadata in portable .tar.gz archives, scopes Flatpak manifest SHA-256 updates without mutating unrelated manifests, fails non-zero when requested Flatpak builds lack required tooling, suppresses duplicate MPRIS sessions via CEF_SYSTEM_MEDIA_CONTROLS=0, and isolates independent publication channels (GitHub Release and Snap Store) behind explicit manual approval gates.
  • macOS Lifecycle & Persistence: Forwards cachePath into ChromiumWebViewHost for cross-restart session persistence, bounds Metal texture/IOSurface caches, retries host socket listen() races, removes legacy WebKit timer scanning, and preserves CEF_SYSTEM_MEDIA_CONTROLS=0.
  • Android Hardening & Compatibility: Aligns minSdk to 24 matching flutter_chromium_webview 0.5.7, adopts onRenderProcessGone → browserCrash event handling with duplicate-registration fixes, hardens R8 keep rules and edge-to-edge insets, and preserves verified Picture-in-Picture (PiP) behavior.

Changed

  • Advertising Temporarily Removed (Ads-Free Release): Removed the Google Mobile Ads SDK, UMP consent flow, banner placements, and Android AdMob App ID so v4.0.2 ships completely ads-free while AdMob app verification is pending.

Fixed

  • Desktop Mini-Video Rapid Hide/Show Black-Screen & Surface Recovery: Eliminated 160×90 ↔ 2×2 Chromium/CEF resize storms (ResizeBrowser / IOSurface reallocation cascades) during rapid Hide/Show toggling by keeping the playback surface at constant 160×90, parking hidden desktop surfaces off-screen ((-9999, -9999)) with zero-duration visibility transitions while preserving mobile 2×2 peek behavior, and excluding hidden surfaces from pointer hit-testing and screen-reader semantics (IgnorePointer + ExcludeSemantics). Natively verified on Apple Silicon macOS (real CEF + Metal/IOSurface playback and live YouTube frames across 1x/10x/50x/100x rapid toggles, pause/resume, track switch, and mini/full transitions).
  • Settings Persistence & Toggle Concurrency: Made SettingsNotifier.toggleVideo() and setPlayerView() update state synchronously, serialize Hive writes, guard in-flight initial loads against clobbering user toggles, flush already-enqueued writes cleanly across disposal, and surface Hive write failures without unhandled async exceptions.
  • Android Activity Detach Crash & SAF Folder Import: Prevented ProviderContainer disposal crashes during Android Activity detach while Chromium playback is active, and restored Android Storage Access Framework (SAF) local folder import and persistent URI access.
  • Clean Desktop Shutdown: Added AppShutdownCoordinator for single-shot ordered playback and Riverpod container disposal before exit, eliminating orphaned Chromium subprocesses on Windows, Linux, and macOS.
  • Desktop Accessibility: Added route-local PlayerRouteTransitionBoundary preventing orphaned OverlayPortal / slider semantics traversal children on Windows.
  • Release Automation Safety & CI: Added cross-platform PR validation CI (.github/workflows/pr-validation.yml), automated packaging/release regression guards, and verified desktop_lazy_restore_test.dart on macOS.

What's Changed

  • Performance: Chromium 0.5.7 integration, lower memory usage and desktop lifecycle fixes by @devflier in #1
  • fix: v4.0.2 pre-release hardening, AdMob UMP compliance, Android R8 & edge-to-edge by @devflier in #2
  • fix(android): prevent Activity-detach container disposal crash and restore SAF folder import by @devflier in #3
  • chore(release): temporarily disable AdMob for ads-free v4.0.2 by @devflier in #4
  • fix(packaging,ci): Linux tarball metadata, scoped Flatpak SHA-256, independent release channels by @devflier in #5
  • fix(desktop): prevent mini-video Hide/Show black screen, harden settings persistence & finalize v4.0.2 changelog by @devflier in #6
  • perf(home,cache): integrate Home scrolling, Retina artwork caching & offline SWR resilience for v4.0.2 by @devflier in #7

New Contributors

Full Changelog: v4.0.1...v4.0.2