mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
getMediaList接口可以刷选stream:#669
This commit is contained in:
parent
122c853119
commit
bca2b403ae
@ -432,13 +432,16 @@ void installWebApi() {
|
|||||||
CHECK_SECRET();
|
CHECK_SECRET();
|
||||||
//获取所有MediaSource列表
|
//获取所有MediaSource列表
|
||||||
MediaSource::for_each_media([&](const MediaSource::Ptr &media){
|
MediaSource::for_each_media([&](const MediaSource::Ptr &media){
|
||||||
if(!allArgs["schema"].empty() && allArgs["schema"] != media->getSchema()){
|
if (!allArgs["schema"].empty() && allArgs["schema"] != media->getSchema()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!allArgs["vhost"].empty() && allArgs["vhost"] != media->getVhost()){
|
if (!allArgs["vhost"].empty() && allArgs["vhost"] != media->getVhost()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!allArgs["app"].empty() && allArgs["app"] != media->getApp()){
|
if (!allArgs["app"].empty() && allArgs["app"] != media->getApp()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!allArgs["stream"].empty() && allArgs["stream"] != media->getId()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
val["data"].append(makeMediaSourceJson(media));
|
val["data"].append(makeMediaSourceJson(media));
|
||||||
|
Loading…
Reference in New Issue
Block a user