Skip to content

Commit

Permalink
Added rtmp command type (onTextData, onCuePoint)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keukhan committed Dec 24, 2024
1 parent 40b6263 commit f0b7587
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/projects/modules/rtmp/chunk/rtmp_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ enum class RtmpCommand : uint16_t
OnClientLogin, // "onClientLogin"
OnMetaData, // "onMetaData"
OnBWDone, // "onBWDone"
OnTextData, // "onTextData"
OnCuePoint, // "onCuePoint"

// Response strings
AckResult, // "_result"
Expand Down Expand Up @@ -197,6 +199,8 @@ constexpr RtmpCommand RtmpCommandFromString(const char *name)
_DECLARE_STRING_TO_RTMP_COMMAND(OnClientLogin, "onClientLogin");
_DECLARE_STRING_TO_RTMP_COMMAND(OnMetaData, "onMetaData");
_DECLARE_STRING_TO_RTMP_COMMAND(OnBWDone, "onBWDone");
_DECLARE_STRING_TO_RTMP_COMMAND(OnTextData, "onTextData");
_DECLARE_STRING_TO_RTMP_COMMAND(OnCuePoint, "onCuePoint");
_DECLARE_STRING_TO_RTMP_COMMAND(AckResult, "_result");
_DECLARE_STRING_TO_RTMP_COMMAND(AckError, "_error");

Expand Down Expand Up @@ -238,6 +242,8 @@ inline constexpr const char *StringFromRtmpCommand(RtmpCommand command)
_DECLARE_RTMP_COMMAND_TO_STRING(OnClientLogin, "onClientLogin");
_DECLARE_RTMP_COMMAND_TO_STRING(OnMetaData, "onMetaData");
_DECLARE_RTMP_COMMAND_TO_STRING(OnBWDone, "onBWDone");
_DECLARE_RTMP_COMMAND_TO_STRING(OnTextData, "onTextData");
_DECLARE_RTMP_COMMAND_TO_STRING(OnCuePoint, "onCuePoint");
_DECLARE_RTMP_COMMAND_TO_STRING(AckResult, "_result");
_DECLARE_RTMP_COMMAND_TO_STRING(AckError, "_error");
}
Expand Down

0 comments on commit f0b7587

Please sign in to comment.