mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-02 00:58:19 +08:00
opt: live room
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -87,11 +87,11 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
WidgetsBinding.instance.removeObserver(this);
|
WidgetsBinding.instance.removeObserver(this);
|
||||||
ScreenBrightness().resetApplicationScreenBrightness();
|
ScreenBrightness().resetApplicationScreenBrightness();
|
||||||
PlPlayerController.setPlayCallBack(null);
|
PlPlayerController.setPlayCallBack(null);
|
||||||
|
_liveRoomController.msgStream?.close();
|
||||||
floating?.dispose();
|
floating?.dispose();
|
||||||
_node.dispose();
|
_node.dispose();
|
||||||
plPlayerController.dispose();
|
plPlayerController.dispose();
|
||||||
_ctr.dispose();
|
_ctr.dispose();
|
||||||
_liveRoomController.msgStream?.close();
|
|
||||||
_liveRoomController.scrollController.removeListener(() {});
|
_liveRoomController.scrollController.removeListener(() {});
|
||||||
_liveRoomController.scrollController.dispose();
|
_liveRoomController.scrollController.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
@@ -306,11 +306,11 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||||
if (plPlayerController.isFullScreen.value == true) {
|
if (plPlayerController.isFullScreen.value == true) {
|
||||||
plPlayerController.triggerFullScreen(status: false);
|
plPlayerController.triggerFullScreen(status: false);
|
||||||
}
|
|
||||||
if (MediaQuery.of(context).orientation ==
|
if (MediaQuery.of(context).orientation ==
|
||||||
Orientation.landscape) {
|
Orientation.landscape) {
|
||||||
verticalScreenForTwoSeconds();
|
verticalScreenForTwoSeconds();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: Listener(
|
child: Listener(
|
||||||
onPointerDown: (_) {
|
onPointerDown: (_) {
|
||||||
|
|||||||
@@ -184,8 +184,8 @@ class LiveMessageStream {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
final marshaledData = authPackage.marshal();
|
// final marshaledData = authPackage.marshal();
|
||||||
logger.d(marshaledData);
|
// logger.d(marshaledData);
|
||||||
try {
|
try {
|
||||||
Future<WebSocket> getSocket() async {
|
Future<WebSocket> getSocket() async {
|
||||||
for (final server in servers) {
|
for (final server in servers) {
|
||||||
|
|||||||
Reference in New Issue
Block a user