mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-29 21:38:22 +08:00
@@ -37,7 +37,13 @@ PlayerBase::Ptr PlayerBase::createPlayer(const EventPoller::Ptr &in_poller, cons
|
|||||||
delete ptr;
|
delete ptr;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
string url = url_in;
|
string url = url_in;
|
||||||
|
trim(url);
|
||||||
|
if (url.empty()) {
|
||||||
|
throw std::invalid_argument("invalid play url: " + url_in);
|
||||||
|
}
|
||||||
|
|
||||||
string prefix = findSubString(url.data(), NULL, "://");
|
string prefix = findSubString(url.data(), NULL, "://");
|
||||||
auto pos = url.find('?');
|
auto pos = url.find('?');
|
||||||
if (pos != string::npos) {
|
if (pos != string::npos) {
|
||||||
|
|||||||
Reference in New Issue
Block a user