1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
问题:edge模式,推流时异常断开。
    解决方法:增加edge模式推流检测。
This commit is contained in:
zhengfl 2015-07-08 15:43:09 +08:00
parent 120033e0a2
commit f9257b89e7
6 changed files with 46 additions and 15 deletions

View file

@ -806,6 +806,11 @@ int SrsPublishEdge::initialize(SrsSource* source, SrsRequest* req)
return ret;
}
bool SrsPublishEdge::can_publish()
{
return state != SrsEdgeStatePublish;
}
int SrsPublishEdge::on_client_publish()
{
int ret = ERROR_SUCCESS;