From 4cc56dd5a7cfedf125bbd93f4a11c903cb2a1ef1 Mon Sep 17 00:00:00 2001 From: Ruben Cid Date: Wed, 8 Apr 2020 13:33:06 +0200 Subject: [PATCH] Show players, stream_id --- CHANGELOG.md | 4 ++++ protocol/httpopera/http_opera.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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