mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-26 19:21:14 +08:00
feat: stream/info接口返回拉流端计数
This commit is contained in:
2
api.go
2
api.go
@@ -613,7 +613,7 @@ func (api *ApiServer) OnStreamInfo(w http.ResponseWriter, r *http.Request) {
|
||||
HLS: liveGBSUrls["hls"],
|
||||
InBitRate: statistics.PreviousSecond() * 8 / 1024,
|
||||
InBytes: int(statistics.Total()),
|
||||
NumOutputs: 0,
|
||||
NumOutputs: source.GetTransStreamPublisher().SinkCount(),
|
||||
Ondemand: true,
|
||||
OutBytes: 0,
|
||||
RTMP: liveGBSUrls["rtmp"],
|
||||
|
Reference in New Issue
Block a user