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

add librtmp demo srs_publish

This commit is contained in:
winlin 2014-03-01 23:24:53 +08:00
parent aa5d28ed85
commit 713b05541b
12 changed files with 172 additions and 34 deletions

View file

@ -25,7 +25,36 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define SRS_LIB_RTMP_HPP
/*
#include <srs_librtmp.hpp>
#include <srs_librtmp.h>
*/
#ifdef __cplusplus
extern "C"{
#endif
// the output handler.
typedef void* srs_rtmp_t;
/**
* create a rtmp protocol stack.
* @return a rtmp handler, or NULL if error occured.
*/
srs_rtmp_t srs_rtmp_create();
/**
* close a rtmp protocl stack.
*/
void srs_rtmp_destroy(srs_rtmp_t rtmp);
/**
* get protocol stack version
*/
int srs_version_major();
int srs_version_minor();
int srs_version_revision();
#ifdef __cplusplus
}
#endif
#endif