diff --git a/CHANGELOG.md b/CHANGELOG.md index 983e783..f073670 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,3 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ] } ``` + +### Changed +- Show `players`. +- Show `stream_id`. \ No newline at end of file diff --git a/protocol/httpopera/http_opera.go b/protocol/httpopera/http_opera.go index 34c3cf7..e207a34 100755 --- a/protocol/httpopera/http_opera.go +++ b/protocol/httpopera/http_opera.go @@ -119,7 +119,7 @@ func (s *Server) Serve(l net.Listener) error { type stream struct { Key string `json:"key"` Url string `json:"url"` - StreamId uint32 `json:"-"` // hide + StreamId uint32 `json:"stream_id"` VideoTotalBytes uint64 `json:"video_total_bytes"` VideoSpeed uint64 `json:"video_speed"` AudioTotalBytes uint64 `json:"audio_total_bytes"` @@ -128,7 +128,7 @@ type stream struct { type streams struct { Publishers []stream `json:"publishers"` - Players []stream `json:"-"` // hide + Players []stream `json:"players"` } //http://127.0.0.1:8090/stat/livestat