mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1615, support default app(live) for vmix SRT. 4.0.9
This commit is contained in:
parent
771f07ee07
commit
90afd06c85
6 changed files with 27 additions and 3 deletions
|
@ -3,6 +3,8 @@
|
|||
#include "stringex.hpp"
|
||||
#include <vector>
|
||||
|
||||
#include <srs_app_config.hpp>
|
||||
|
||||
bool is_streamid_valid(const std::string& streamid) {
|
||||
if (streamid.empty()) {
|
||||
return false;
|
||||
|
@ -71,7 +73,7 @@ bool get_streamid_info(const std::string& streamid, int& mode, std::string& url_
|
|||
if (pos != 0) {
|
||||
pos = streamid.find("/");
|
||||
if (pos == streamid.npos) {
|
||||
url_subpath = "live/" + streamid;
|
||||
url_subpath = _srs_config->get_default_app_name() + "/" + streamid;
|
||||
return true;
|
||||
}
|
||||
url_subpath = streamid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue