添加无人观看主动断开事件

This commit is contained in:
xiongziliang
2019-05-27 18:39:43 +08:00
parent 3917b6451c
commit b0bf216bc2
21 changed files with 213 additions and 52 deletions

View File

@@ -51,7 +51,7 @@ public:
if(!media) {
break;
}
if(!media->close()) {
if(!media->close(true)) {
break;
}
(*stream) << "\t踢出成功:"
@@ -86,9 +86,12 @@ public:
}
};
static onceToken s_token([]() {
REGIST_CMD(media);
}, nullptr);
void installShellCMD(){
static onceToken s_token([]() {
REGIST_CMD(media);
}, nullptr);
}
} /* namespace mediakit */