添加性能测试模式

This commit is contained in:
xiongziliang
2020-04-08 11:16:09 +08:00
parent 5025d7d4cc
commit 0fc1499643
7 changed files with 23 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ int main(int argc, char *argv[]) {
player->setOnShutdown([&](const SockException &ex) {
--alivePlayerCnt;
});
(*player)[kBenchmarkMode] = true;
(*player)[kRtpType] = atoi(argv[4]);
player->play(argv[3]);
playerList.push_back(player);