MCPcopy Create free account
hub / github.com/apache/brpc / RtmpPublishType2Str

Function RtmpPublishType2Str

src/brpc/rtmp.cpp:1994–2001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1992}
1993
1994const char* RtmpPublishType2Str(RtmpPublishType type) {
1995 switch (type) {
1996 case RTMP_PUBLISH_RECORD: return "record";
1997 case RTMP_PUBLISH_APPEND: return "append";
1998 case RTMP_PUBLISH_LIVE: return "live";
1999 }
2000 return "Unknown RtmpPublishType";
2001}
2002
2003bool Str2RtmpPublishType(const butil::StringPiece& str, RtmpPublishType* type) {
2004 if (str == "record") {

Callers 6

OnPublishMethod · 0.85
PublishMethod · 0.85
OnPublishMethod · 0.85
OnCreateStreamMethod · 0.85
OnPublishMethod · 0.85
AppendAndDestroySelfMethod · 0.85

Calls

no outgoing calls

Tested by 1

OnPublishMethod · 0.68