完善hls播放器个数计数

This commit is contained in:
xiongziliang
2019-12-28 16:57:35 +08:00
parent f93b32740f
commit e72fa359b6
7 changed files with 15 additions and 4 deletions

View File

@@ -412,6 +412,7 @@ void installWebApi() {
item["app"] = media->getApp();
item["stream"] = media->getId();
item["readerCount"] = media->readerCount();
item["totalReaderCount"] = media->totalReaderCount();
for(auto &track : media->getTracks()){
Value obj;
obj["codec_id"] = track->getCodecId();
@@ -441,6 +442,7 @@ void installWebApi() {
}
val["online"] = true;
val["readerCount"] = src->readerCount();
val["totalReaderCount"] = src->totalReaderCount();
for(auto &track : src->getTracks()){
Value obj;
obj["codec_id"] = track->getCodecId();