mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-11 03:40:08 +08:00
@@ -458,6 +458,13 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
|
|||||||
hasPub = true;
|
hasPub = true;
|
||||||
Get.back();
|
Get.back();
|
||||||
SmartDialog.showToast('发送成功');
|
SmartDialog.showToast('发送成功');
|
||||||
|
VideoDanmaku? extra;
|
||||||
|
if (res['dmid'] case int dmid) {
|
||||||
|
extra = VideoDanmaku(
|
||||||
|
id: dmid,
|
||||||
|
mid: PlPlayerController.instance!.midHash,
|
||||||
|
);
|
||||||
|
}
|
||||||
widget.callback(
|
widget.callback(
|
||||||
DanmakuContentItem(
|
DanmakuContentItem(
|
||||||
editController.text,
|
editController.text,
|
||||||
@@ -469,10 +476,7 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
|
|||||||
},
|
},
|
||||||
selfSend: true,
|
selfSend: true,
|
||||||
isColorful: isColorful,
|
isColorful: isColorful,
|
||||||
extra: VideoDanmaku(
|
extra: extra,
|
||||||
id: res['dmid'],
|
|
||||||
mid: PlPlayerController.instance!.midHash,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1244,9 +1244,10 @@ class PlPlayerController {
|
|||||||
await seekTo(Duration.zero, isSeek: false);
|
await seekTo(Duration.zero, isSeek: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
await audioSessionHandler?.setActive(true);
|
|
||||||
await _videoPlayerController?.play();
|
await _videoPlayerController?.play();
|
||||||
|
|
||||||
|
audioSessionHandler?.setActive(true);
|
||||||
|
|
||||||
playerStatus.status.value = PlayerStatus.playing;
|
playerStatus.status.value = PlayerStatus.playing;
|
||||||
// screenManager.setOverlays(false);
|
// screenManager.setOverlays(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1145,6 +1145,10 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
_removeDmAction();
|
_removeDmAction();
|
||||||
}
|
}
|
||||||
} else if (item != _suspendedDm) {
|
} else if (item != _suspendedDm) {
|
||||||
|
if (item.content.extra == null) {
|
||||||
|
_removeDmAction();
|
||||||
|
return;
|
||||||
|
}
|
||||||
_suspendedDm?.suspend = false;
|
_suspendedDm?.suspend = false;
|
||||||
_suspendedDm = item..suspend = true;
|
_suspendedDm = item..suspend = true;
|
||||||
_dmOffset = pos;
|
_dmOffset = pos;
|
||||||
|
|||||||
Reference in New Issue
Block a user