diff --git a/lib/plugin/pl_player/widgets/bottom_control.dart b/lib/plugin/pl_player/widgets/bottom_control.dart index 7105c82f..fa05c6d3 100644 --- a/lib/plugin/pl_player/widgets/bottom_control.dart +++ b/lib/plugin/pl_player/widgets/bottom_control.dart @@ -72,9 +72,11 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget { ), Row( children: [ - PlayOrPauseButton( - controller: _, - ), + controller != null + ? PlayOrPauseButton( + controller: _, + ) + : nil, const SizedBox(width: 4), // 播放时间 Obx(() { diff --git a/lib/services/audio_handler.dart b/lib/services/audio_handler.dart index ad510e7d..0b37d419 100644 --- a/lib/services/audio_handler.dart +++ b/lib/services/audio_handler.dart @@ -149,6 +149,8 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler { )); if (_item.isNotEmpty) { _item.removeLast(); + } + if (_item.isNotEmpty) { setMediaItem(_item.last); } if (_item.isEmpty) {