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) v4.0.144
* 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
4332beed79
commit
86c67f7d95
11 changed files with 172 additions and 52 deletions
|
@ -1622,17 +1622,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()
|
||||
|
|
|
@ -476,6 +476,8 @@ enum SrsRtmpConnType
|
|||
SrsRtmpConnFMLEPublish,
|
||||
SrsRtmpConnFlashPublish,
|
||||
SrsRtmpConnHaivisionPublish,
|
||||
SrsRtcConnPlay,
|
||||
SrsRtcConnPublish,
|
||||
};
|
||||
std::string srs_client_type_string(SrsRtmpConnType type);
|
||||
bool srs_client_type_is_publish(SrsRtmpConnType type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue