现在的问题比较大,因为metadata的引入导致原有的部分播放进度信息推送错误

This commit is contained in:
2026-08-23 20:29:31 +08:00
parent 9a60441e04
commit d593ce05a1
9 changed files with 203 additions and 167 deletions
+2
View File
@@ -167,9 +167,11 @@ class _PlayerPageState extends State<PlayerPage> {
}
Widget _buildProgressSection(AudioService service, Duration duration) {
debugPrint('🎯 [PlayerPage] duration=$duration');
return ValueListenableBuilder(
valueListenable: service.positionNotifier,
builder: (context, position, _) {
debugPrint('🎯 [PlayerPage] position=$position, duration=$duration');
final progress = duration.inMilliseconds > 0
? position.inMilliseconds / duration.inMilliseconds
: 0.0;