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

add statistic for stream

This commit is contained in:
qiang.li 2015-01-04 22:47:12 +08:00
parent 8d534d3470
commit a4a93613d0
8 changed files with 188 additions and 48 deletions

View file

@ -1807,13 +1807,3 @@ 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";
}
}