1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

get stream info use http api #227

This commit is contained in:
qiang.li 2015-01-03 12:57:13 +08:00
parent f8ec7c706d
commit 8d534d3470
5 changed files with 135 additions and 2 deletions

View file

@ -1807,4 +1807,13 @@ void SrsSource::destroy_forwarders()
forwarders.clear();
}
std::string SrsSource::get_source_type()
{
if (play_edge->get_state() == SrsEdgeStateIngestConnected) {
return "origin pull";
} else if (publish_edge->get_state() == SrsEdgeStatePublish) {
return "edge publish";
} else {
return "normal publish";
}
}