mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Support statistic for HTTP-API, HTTP-Callback and Security (#2483)
* commit message for your changes. Lines starting * Update srs_app_rtc_api.cpp * add SrsRtcConnPlay and SrsRtcConnPublish, in enum SrsRtmpConnType * Update srs_rtmp_stack.cpp * Update srs_app_rtc_conn.cpp * Update srs_app_rtc_api.cpp * update utest * Update srs_utest_app.cpp
This commit is contained in:
parent
20931ddbb1
commit
0efd7b1bbc
9 changed files with 170 additions and 51 deletions
|
@ -1628,17 +1628,19 @@ SrsResponse::~SrsResponse()
|
|||
string srs_client_type_string(SrsRtmpConnType type)
|
||||
{
|
||||
switch (type) {
|
||||
case SrsRtmpConnPlay: return "Play";
|
||||
case SrsRtmpConnPlay: return "rtmp-play";
|
||||
case SrsRtcConnPlay: return "rtc-play";
|
||||
case SrsRtmpConnFlashPublish: return "flash-publish";
|
||||
case SrsRtmpConnFMLEPublish: return "fmle-publish";
|
||||
case SrsRtmpConnHaivisionPublish: return "haivision-publish";
|
||||
case SrsRtcConnPublish: return "rtc-publish";
|
||||
default: return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
bool srs_client_type_is_publish(SrsRtmpConnType type)
|
||||
{
|
||||
return type != SrsRtmpConnPlay;
|
||||
return ((type != SrsRtmpConnPlay) && (type != SrsRtcConnPlay));
|
||||
}
|
||||
|
||||
SrsHandshakeBytes::SrsHandshakeBytes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue