opt: live room

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-22 15:31:26 +08:00
parent bed44382f4
commit ea0125e1fc
2 changed files with 7 additions and 7 deletions

View File

@@ -87,11 +87,11 @@ class _LiveRoomPageState extends State<LiveRoomPage>
WidgetsBinding.instance.removeObserver(this);
ScreenBrightness().resetApplicationScreenBrightness();
PlPlayerController.setPlayCallBack(null);
_liveRoomController.msgStream?.close();
floating?.dispose();
_node.dispose();
plPlayerController.dispose();
_ctr.dispose();
_liveRoomController.msgStream?.close();
_liveRoomController.scrollController.removeListener(() {});
_liveRoomController.scrollController.dispose();
super.dispose();
@@ -306,10 +306,10 @@ class _LiveRoomPageState extends State<LiveRoomPage>
onPopInvokedWithResult: (bool didPop, Object? result) {
if (plPlayerController.isFullScreen.value == true) {
plPlayerController.triggerFullScreen(status: false);
}
if (MediaQuery.of(context).orientation ==
Orientation.landscape) {
verticalScreenForTwoSeconds();
if (MediaQuery.of(context).orientation ==
Orientation.landscape) {
verticalScreenForTwoSeconds();
}
}
},
child: Listener(

View File

@@ -184,8 +184,8 @@ class LiveMessageStream {
),
);
final marshaledData = authPackage.marshal();
logger.d(marshaledData);
// final marshaledData = authPackage.marshal();
// logger.d(marshaledData);
try {
Future<WebSocket> getSocket() async {
for (final server in servers) {