Skip to content

Commit 4cc56dd

Browse files
committed
Show players, stream_id
1 parent e2435f3 commit 4cc56dd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
]
2525
}
2626
```
27+
28+
### Changed
29+
- Show `players`.
30+
- Show `stream_id`.

Diff for: protocol/httpopera/http_opera.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (s *Server) Serve(l net.Listener) error {
119119
type stream struct {
120120
Key string `json:"key"`
121121
Url string `json:"url"`
122-
StreamId uint32 `json:"-"` // hide
122+
StreamId uint32 `json:"stream_id"`
123123
VideoTotalBytes uint64 `json:"video_total_bytes"`
124124
VideoSpeed uint64 `json:"video_speed"`
125125
AudioTotalBytes uint64 `json:"audio_total_bytes"`
@@ -128,7 +128,7 @@ type stream struct {
128128

129129
type streams struct {
130130
Publishers []stream `json:"publishers"`
131-
Players []stream `json:"-"` // hide
131+
Players []stream `json:"players"`
132132
}
133133

134134
//http://127.0.0.1:8090/stat/livestat

0 commit comments

Comments
 (0)