Skip to content

Commit

Permalink
Using new format for get stats
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmidi committed Nov 28, 2024
1 parent 498c2b5 commit 18136f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srt/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ func (s *ServerImpl) registerForStats(ctx context.Context, conn *srtConn) {
func (s *ServerImpl) GetStatistics() []*relay.StreamStatistics {
streams := s.relay.GetStatistics()
for _, st := range streams {
//stream.URL = fmt.Sprintf("srt://%s?streamid=#!::m=request,r=%s", s.config.PublicAddress, stream.Name)
st.URL = fmt.Sprintf("srt://%s?streamid=play/%s", s.config.PublicAddress, st.Name)
st.URL = fmt.Sprintf("srt://%s?streamid=#!::m=request,r=%s", s.config.PublicAddress, st.Name) // New format
//st.URL = fmt.Sprintf("srt://%s?streamid=play/%s", s.config.PublicAddress, st.Name) // Old format
}
return streams
}
Expand Down

0 comments on commit 18136f2

Please sign in to comment.