Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Dec 12, 2023
1 parent 25b6065 commit 94269b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions example/lib/pages/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,9 @@ class _RoomPageState extends State<RoomPage> with WidgetsBindingObserver {
super.dispose();
}

AppLifecycleState? _notification;

@override
void didChangeAppLifecycleState(AppLifecycleState state) {
setState(() {
_notification = state;
});
setState(() {});
if (autoSubscribe) return;
if (state == AppLifecycleState.resumed) {
for (var p in participantTracks) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/widgets/participant_grid_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _ParticipantGridTile extends State<ParticipantGridTile> {
if (lkPlatformIsMobile()) {
Fluttertoast.showToast(
msg:
'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}',
'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}, hasVideo = $hasVideo',
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
timeInSecForIosWeb: 1,
Expand All @@ -80,7 +80,7 @@ class _ParticipantGridTile extends State<ParticipantGridTile> {
fontSize: 16.0);
} else {
print(
'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}');
'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}, hasVideo = $hasVideo');
}
},
child: Container(
Expand Down

0 comments on commit 94269b4

Please sign in to comment.