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:
parent
8d534d3470
commit
a4a93613d0
8 changed files with 188 additions and 48 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue