mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 00:37:39 +08:00
getSsrcInfo接口ssrc使用16进制字符串
This commit is contained in:
parent
fa4fac1e0d
commit
df73eb2c10
@ -697,7 +697,11 @@ void installWebApi() {
|
||||
API_REGIST(api,getSsrcInfo,{
|
||||
CHECK_SECRET();
|
||||
CHECK_ARGS("ssrc");
|
||||
auto process = RtpSelector::Instance().getProcess(allArgs["ssrc"],false);
|
||||
uint32_t ssrc = 0;
|
||||
stringstream ss(allArgs["ssrc"]);
|
||||
ss >> std::hex >> ssrc;
|
||||
|
||||
auto process = RtpSelector::Instance().getProcess(ssrc,false);
|
||||
if(!process){
|
||||
val["exist"] = false;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user