现在的问题比较大,因为metadata的引入导致原有的部分播放进度信息推送错误
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user