mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 开启后台播放后二次播放,未判空导致播放异常
This commit is contained in:
@@ -72,9 +72,11 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
PlayOrPauseButton(
|
controller != null
|
||||||
controller: _,
|
? PlayOrPauseButton(
|
||||||
),
|
controller: _,
|
||||||
|
)
|
||||||
|
: nil,
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
// 播放时间
|
// 播放时间
|
||||||
Obx(() {
|
Obx(() {
|
||||||
|
|||||||
@@ -149,6 +149,8 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
|
|||||||
));
|
));
|
||||||
if (_item.isNotEmpty) {
|
if (_item.isNotEmpty) {
|
||||||
_item.removeLast();
|
_item.removeLast();
|
||||||
|
}
|
||||||
|
if (_item.isNotEmpty) {
|
||||||
setMediaItem(_item.last);
|
setMediaItem(_item.last);
|
||||||
}
|
}
|
||||||
if (_item.isEmpty) {
|
if (_item.isEmpty) {
|
||||||
|
|||||||
Reference in New Issue
Block a user