mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-11 04:27:47 +08:00
@@ -115,9 +115,12 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
@override
|
||||
Future<void> didPopNext() async {
|
||||
addObserverMobile(this);
|
||||
plPlayerController
|
||||
..isLive = true
|
||||
..danmakuController = _liveRoomController.danmakuController;
|
||||
if (!plPlayerController.isLive) {
|
||||
plPlayerController.isLive = true;
|
||||
_liveRoomController.isLoaded.refresh();
|
||||
}
|
||||
plPlayerController.danmakuController =
|
||||
_liveRoomController.danmakuController;
|
||||
PlPlayerController.setPlayCallBack(plPlayerController.play);
|
||||
_liveRoomController.startLiveTimer();
|
||||
if (plPlayerController.playerStatus.isPlaying &&
|
||||
@@ -242,9 +245,6 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
Alignment alignment = Alignment.center,
|
||||
bool needDm = true,
|
||||
}) {
|
||||
if (!plPlayerController.isLive) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
if (!isFullScreen && !plPlayerController.isDesktopPip) {
|
||||
_liveRoomController.fsSC.value = null;
|
||||
}
|
||||
@@ -252,7 +252,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
Widget player = Obx(
|
||||
key: playerKey,
|
||||
() {
|
||||
if (_liveRoomController.isLoaded.value) {
|
||||
if (_liveRoomController.isLoaded.value && plPlayerController.isLive) {
|
||||
final roomInfoH5 = _liveRoomController.roomInfoH5.value;
|
||||
return PLVideoPlayer(
|
||||
maxWidth: width,
|
||||
|
||||
@@ -267,7 +267,10 @@ class VideoDetailController extends GetxController
|
||||
final isVertical = height > width;
|
||||
if (_scrollCtr?.hasClients != true) {
|
||||
videoHeight = isVertical ? maxVideoHeight : minVideoHeight;
|
||||
this.isVertical.value = isVertical;
|
||||
if (this.isVertical.value != isVertical) {
|
||||
this.isVertical.value = isVertical;
|
||||
_needAnimOnDimensionChanged(isVertical);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (this.isVertical.value != isVertical) {
|
||||
|
||||
Reference in New Issue
Block a user