just_audio_windows_plus 0.1.0
just_audio_windows_plus: ^0.1.0 copied to clipboard
Thread-safe Windows platform implementation of just_audio using WinRT MediaPlayer. Fixes multi-threading race conditions and 0xC0000005 crashes.
0.1.0 #
- Initial release of
just_audio_windows_plus. - Thread-Safe EventSink: Synchronized Flutter
EventSinkcalls viastd::mutexto prevent concurrent writes from background WinRT threadpool worker threads. - Atomic Player Lifecycle: Introduced
std::atomic<bool> disposed_andstd::recursive_mutex player_mutex_to safely coordinate player destruction and prevent Use-After-Free Access Violations (0xC0000005). - Safe Plugin Registrar: Protected the global player registry (
players_vector) with a dedicated mutex during concurrent creations and disposals. - Defensive WinRT Property Probing: Wrapped
NaturalDuration,BufferingProgress, andPositionaccess in exception handlers to gracefully handle transient states during playlist transitions. - Full Drop-in Compatibility: Fully implements the
just_audioplatform interface for Windows.