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

STAT: Add hls-play, flv-play, srt-play and srt-publish.

This commit is contained in:
winlin 2022-08-27 18:47:49 +08:00
parent 2944fe430f
commit 101e4fa3b9
4 changed files with 20 additions and 10 deletions

View file

@ -470,13 +470,19 @@ public:
// The rtmp client type.
enum SrsRtmpConnType
{
SrsRtmpConnUnknown,
SrsRtmpConnPlay,
SrsRtmpConnFMLEPublish,
SrsRtmpConnFlashPublish,
SrsRtmpConnHaivisionPublish,
SrsRtcConnPlay,
SrsRtcConnPublish,
SrsRtmpConnUnknown = 0x0000,
// All players.
SrsRtmpConnPlay = 0x0100,
SrsHlsPlay = 0x0101,
SrsFlvPlay = 0x0102,
SrsRtcConnPlay = 0x0110,
SrsSrtConnPlay = 0x0120,
// All publishers.
SrsRtmpConnFMLEPublish = 0x0200,
SrsRtmpConnFlashPublish = 0x0201,
SrsRtmpConnHaivisionPublish = 0x0202,
SrsRtcConnPublish = 0x0210,
SrsSrtConnPublish = 0x0220,
};
std::string srs_client_type_string(SrsRtmpConnType type);
bool srs_client_type_is_publish(SrsRtmpConnType type);