Skip to content

Commit

Permalink
Removed pop up in full screen share
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Jun 6, 2024
1 parent 75b1f5a commit 1b3c3ed
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 257 deletions.
9 changes: 8 additions & 1 deletion packages/hms_room_kit/lib/src/meeting/meeting_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ class MeetingStore extends ChangeNotifier

int currentScreenSharePage = 0;

///This stores whether whiteboard or screenshare is in full screen mode
bool isScreenshareWhiteboardFullScreen = false;

///PeerList iterators
///This is a map with key as role and value as the iterator for that role
Map<String, HMSPeerListIterator> peerListIterators = {};
Expand Down Expand Up @@ -1752,7 +1755,11 @@ class MeetingStore extends ChangeNotifier
int peerIndex = peerTracks.indexWhere(
(element) => element.uid == peer.peerId + track.trackId);
if (peerIndex != -1) {
if ((screenShareCount - 1) == currentScreenSharePage) {

///This is done to handle the case when the screen share is stopped
///and the user is on the last page of the screen share
///we need to move the user to the previous page
if (((screenShareCount - 1) == currentScreenSharePage) && currentScreenSharePage > 0) {
currentScreenSharePage--;
}
screenShareCount--;
Expand Down
Loading

0 comments on commit 1b3c3ed

Please sign in to comment.