mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 03:26:01 +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"],
|
HLS: liveGBSUrls["hls"],
|
||||||
InBitRate: statistics.PreviousSecond() * 8 / 1024,
|
InBitRate: statistics.PreviousSecond() * 8 / 1024,
|
||||||
InBytes: int(statistics.Total()),
|
InBytes: int(statistics.Total()),
|
||||||
NumOutputs: 0,
|
NumOutputs: source.GetTransStreamPublisher().SinkCount(),
|
||||||
Ondemand: true,
|
Ondemand: true,
|
||||||
OutBytes: 0,
|
OutBytes: 0,
|
||||||
RTMP: liveGBSUrls["rtmp"],
|
RTMP: liveGBSUrls["rtmp"],
|
||||||
|
Reference in New Issue
Block a user