| 1992 | } |
| 1993 | |
| 1994 | const 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 | |
| 2003 | bool Str2RtmpPublishType(const butil::StringPiece& str, RtmpPublishType* type) { |
| 2004 | if (str == "record") { |
no outgoing calls