mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-07 12:18:12 +08:00
getSsrcInfo接口ssrc使用16进制字符串
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user