| 2001 | } |
| 2002 | |
| 2003 | bool Str2RtmpPublishType(const butil::StringPiece& str, RtmpPublishType* type) { |
| 2004 | if (str == "record") { |
| 2005 | *type = RTMP_PUBLISH_RECORD; |
| 2006 | return true; |
| 2007 | } else if (str == "append") { |
| 2008 | *type = RTMP_PUBLISH_APPEND; |
| 2009 | return true; |
| 2010 | } else if (str == "live") { |
| 2011 | *type = RTMP_PUBLISH_LIVE; |
| 2012 | return true; |
| 2013 | } |
| 2014 | return false; |
| 2015 | } |
| 2016 | |
| 2017 | int RtmpClientStream::Publish(const butil::StringPiece& name, |
| 2018 | RtmpPublishType type) { |
no outgoing calls
no test coverage detected