mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
getSsrcInfo接口ssrc使用16进制字符串
This commit is contained in:
parent
fa4fac1e0d
commit
df73eb2c10
@ -697,7 +697,11 @@ void installWebApi() {
|
|||||||
API_REGIST(api,getSsrcInfo,{
|
API_REGIST(api,getSsrcInfo,{
|
||||||
CHECK_SECRET();
|
CHECK_SECRET();
|
||||||
CHECK_ARGS("ssrc");
|
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){
|
if(!process){
|
||||||
val["exist"] = false;
|
val["exist"] = false;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user