getSsrcInfo接口ssrc使用16进制字符串

This commit is contained in:
xiongziliang 2019-12-09 18:15:02 +08:00
parent fa4fac1e0d
commit df73eb2c10

View File

@ -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;