mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
优化播放器接口
This commit is contained in:
@@ -52,7 +52,8 @@ int main(int argc, char *argv[]){
|
||||
player->setOnShutdown([&](const SockException &ex){
|
||||
--alivePlayerCnt;
|
||||
});
|
||||
player->play(argv[3], "", "", (PlayerBase::eRtpType)atoi(argv[4]));
|
||||
(*player)[RtspPlayer::kRtpType] = atoi(argv[4]);
|
||||
player->play(argv[3]);
|
||||
playerList.push_back(player);
|
||||
return playerCnt--;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user