fix(windows): support structured mpv observations

This commit is contained in:
edde746
2026-07-12 08:42:24 +02:00
parent 6890cd8690
commit f7f4e3a992
4 changed files with 122 additions and 26 deletions
+3 -3
View File
@@ -73,9 +73,9 @@ class PlayerNative extends PlayerBase {
@override
bool get attachesExternalSubtitlesAtOpen => true;
/// Node properties are returned as structured maps on macOS/iOS/Linux,
/// but as JSON strings on Android/Windows.
static final String _nodeFormat = (Platform.isAndroid || Platform.isWindows) ? 'string' : 'node';
/// Node properties are returned as structured maps on desktop and Apple
/// platforms, but as JSON strings on Android.
static final String _nodeFormat = Platform.isAndroid ? 'string' : 'node';
static String _normalizeDvConversionMode(String value) {
return switch (value.toLowerCase()) {