mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add srt mpegts to rtmp
This commit is contained in:
parent
7b9e3ecdc4
commit
5c5fd805c5
17 changed files with 682 additions and 172 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <thread>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <srs_kernel_log.hpp>
|
||||
#include <srs_kernel_error.hpp>
|
||||
#include <srs_app_rtmp_conn.hpp>
|
||||
|
@ -14,6 +15,21 @@
|
|||
#define PULL_SRT_MODE 0x01
|
||||
#define PUSH_SRT_MODE 0x02
|
||||
|
||||
inline bool is_streamid_valid(const std::string& streamid) {
|
||||
bool ret = false;
|
||||
if (streamid.empty()) {
|
||||
return ret;
|
||||
}
|
||||
std::vector<std::string> ret_vec;
|
||||
string_split(streamid, "/", ret_vec);
|
||||
|
||||
if (ret_vec.size() < 2) {
|
||||
return ret;
|
||||
}
|
||||
ret = true;
|
||||
return ret;
|
||||
}
|
||||
|
||||
inline void get_streamid_info(const std::string& streamid, int& mode, std::string& url_subpash) {
|
||||
std::string real_streamip;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue