Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Show player count in stats panel #303

Merged
merged 1 commit into from Jul 18, 2023

Conversation

Belchy06
Copy link
Collaborator

@Belchy06 Belchy06 commented Jul 18, 2023

Relevant components:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

Problem statement:

Player count information is simply logged to the developer console but is never shown in any UI, making it harder for non-technical users to view this information as reported in #302

Solution

Add a new playerCount event that user's can listen to. By default, UI Library will listen for this event and update the value in the stats panel.

@mcottontensor
Copy link
Contributor

The player count currently just tracks the number of players that connect to the signalling server. With the ability to handle multiple streamers now this count may be misleading if there are multiple streamers connected.
If we're ok with that for now, I'm happy for this to go in.

@Belchy06
Copy link
Collaborator Author

Hmm, good point.

I think with that fact there may need to be some more though put into this.

That being said, I think we can get this landed and look to moving to players per stream as part of the great signalling server refactor.

Thoughts?

@mcottontensor
Copy link
Contributor

Yeah landing this can still be of use. We will just need an enhancement issue added to track the players per stream work.

@Belchy06 Belchy06 merged commit 6bdbf50 into EpicGames:master Jul 18, 2023
5 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 18, 2023
github-actions bot pushed a commit that referenced this pull request Jul 18, 2023
@github-actions
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
UE5.2
UE5.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Belchy06 added a commit that referenced this pull request Jul 18, 2023
(cherry picked from commit 6bdbf50)

Co-authored-by: William Belcher <william.belcher@xa.epicgames.com>
Belchy06 added a commit that referenced this pull request Jul 18, 2023
(cherry picked from commit 6bdbf50)

Co-authored-by: William Belcher <william.belcher@xa.epicgames.com>
@Belchy06 Belchy06 deleted the display_player_count branch July 19, 2023 01:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

Is there an option to get current number of users in front-end UI?
2 participants