mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-23 01:57:50 +08:00
Pre Merge pull request !26 from yinxiang/master
This commit is contained in:
commit
19d77fc8fe
@ -1315,7 +1315,7 @@ void installWebApi() {
|
|||||||
if (!src) {
|
if (!src) {
|
||||||
throw ApiRetException("can not find the source stream", API::NotFound);
|
throw ApiRetException("can not find the source stream", API::NotFound);
|
||||||
}
|
}
|
||||||
auto type = allArgs["type"].as<int>();
|
auto type = allArgs["type"].empty() ? (int)MediaSourceEvent::SendRtpArgs::kRtpPS : allArgs["type"].as<int>();
|
||||||
if (!allArgs["use_ps"].empty()) {
|
if (!allArgs["use_ps"].empty()) {
|
||||||
// 兼容之前的use_ps参数
|
// 兼容之前的use_ps参数
|
||||||
type = allArgs["use_ps"].as<int>();
|
type = allArgs["use_ps"].as<int>();
|
||||||
@ -1355,7 +1355,7 @@ void installWebApi() {
|
|||||||
if (!src) {
|
if (!src) {
|
||||||
throw ApiRetException("can not find the source stream", API::NotFound);
|
throw ApiRetException("can not find the source stream", API::NotFound);
|
||||||
}
|
}
|
||||||
auto type = allArgs["type"].as<int>();
|
auto type = allArgs["type"].empty() ? (int)MediaSourceEvent::SendRtpArgs::kRtpPS : allArgs["type"].as<int>();
|
||||||
if (!allArgs["use_ps"].empty()) {
|
if (!allArgs["use_ps"].empty()) {
|
||||||
// 兼容之前的use_ps参数
|
// 兼容之前的use_ps参数
|
||||||
type = allArgs["use_ps"].as<int>();
|
type = allArgs["use_ps"].as<int>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user