mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-01 23:48:30 +08:00
ps rtp推流接口(startSendRtp)支持推送本地mp4录像
This commit is contained in:
@@ -967,7 +967,7 @@ void installWebApi() {
|
||||
CHECK_SECRET();
|
||||
CHECK_ARGS("vhost", "app", "stream", "ssrc", "dst_url", "dst_port", "is_udp");
|
||||
|
||||
auto src = MediaSource::find(allArgs["vhost"], allArgs["app"], allArgs["stream"]);
|
||||
auto src = MediaSource::find(allArgs["vhost"], allArgs["app"], allArgs["stream"], allArgs["from_mp4"].as<int>());
|
||||
if (!src) {
|
||||
throw ApiRetException("该媒体流不存在", API::OtherFailed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user