// // Copyright (c) 2013-2025 The SRS Authors // // SPDX-License-Identifier: MIT // #ifndef SRS_APP_SRT_UTILITY_HPP #define SRS_APP_SRT_UTILITY_HPP #include #include #include #include #include class ISrsRequest; enum SrtMode { SrtModePull = 1, SrtModePush = 2, }; // Get SRT streamid info. extern bool srs_srt_streamid_info(const std::string &streamid, SrtMode &mode, std::string &vhost, std::string &url_subpath); // SRT streamid to request. extern bool srs_srt_streamid_to_request(const std::string &streamid, SrtMode &mode, ISrsRequest *request); #endif