Skip to content

Commit

Permalink
Show players, stream_id
Browse files Browse the repository at this point in the history
  • Loading branch information
GNURub committed Apr 8, 2020
1 parent e2435f3 commit 4cc56dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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 changes: 2 additions & 2 deletions protocol/httpopera/http_opera.go
Expand Up @@ -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"`
Expand All @@ -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
Expand Down

0 comments on commit 4cc56dd

Please sign in to comment.