Browse Source

Show players, stream_id

pull/86/head
Ruben Cid 6 years ago
parent
commit
4cc56dd5a7
  1. 4
      CHANGELOG.md
  2. 4
      protocol/httpopera/http_opera.go

4
CHANGELOG.md

@ -24,3 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 @@ -24,3 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
]
}
```
### Changed
- Show `players`.
- Show `stream_id`.

4
protocol/httpopera/http_opera.go

@ -119,7 +119,7 @@ func (s *Server) Serve(l net.Listener) error { @@ -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 { @@ -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

Loading…
Cancel
Save