mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 15:42:07 +02:00
Count also the viewers that are streaming directly from their video player in the connected users stats
This commit is contained in:
@ -46,6 +46,11 @@ func splitHostPort(hostport string) (string, uint16) {
|
||||
return host, uint16(port64)
|
||||
}
|
||||
|
||||
// GetNumberConnectedSessions get the number of currently connected clients
|
||||
func GetNumberConnectedSessions(streamID string) int {
|
||||
return len(clientDataChannels[streamID])
|
||||
}
|
||||
|
||||
// Serve SRT server
|
||||
func Serve(cfg *Options, authBackend auth.Backend, forwardingChannel, webrtcChannel chan Packet) {
|
||||
// Start SRT in listening mode
|
||||
|
Reference in New Issue
Block a user