perf(metadata): read complete SAF tags through descriptors

Add complete metadata reads with a display-name hint in Go and both native bridges. Read seekable SAF descriptors directly and use temporary copies only when direct reading fails.

Add format parity tests for MP3, FLAC, M4A, and WAV plus a Dart bridge hint regression.
This commit is contained in:
zarzet
2026-09-06 14:04:04 +07:00
parent df8f4f5d7b
commit b32bdbc291
7 changed files with 111 additions and 17 deletions
+8 -2
View File
@@ -1080,8 +1080,14 @@ class PlatformBridge {
return _invokeMap('reEnrichFile', {'request_json': jsonEncode(request)});
}
static Future<Map<String, dynamic>> readFileMetadata(String filePath) {
return _invokeMap('readFileMetadata', {'file_path': filePath});
static Future<Map<String, dynamic>> readFileMetadata(
String filePath, {
String? displayName,
}) {
return _invokeMap('readFileMetadata', {
'file_path': filePath,
'display_name': ?displayName,
});
}
/// Reads the tags and quality fields used for automatic Library display.