qt_rtmp_demo/media/librtmp_send264.h

42 lines
920 B
C
Raw Normal View History

2023-11-12 16:13:24 +00:00
/**
* Simplest Librtmp Send 264
*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* leixiaohua1020@126.com
* zhanghuicuc@gmail.com
* <EFBFBD>й<EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><EFBFBD>ѧ/<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD>Ӽ<EFBFBD><EFBFBD><EFBFBD>
* Communication University of China / Digital TV Technology
* http://blog.csdn.net/leixiaohua1020
*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD>е<EFBFBD>H.264<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>RTMP<EFBFBD><EFBFBD>ý<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
*/
/**
* <EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
* @param url <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>϶<EFBFBD>Ӧwebapp<EFBFBD>ĵ<EFBFBD>ַ
*
* @<EFBFBD>ɹ<EFBFBD><EFBFBD>򷵻<EFBFBD>1 , ʧ<EFBFBD><EFBFBD><EFBFBD>򷵻<EFBFBD>0
*/
int RTMP264_Connect(const char* url);
/**
* <EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD>е<EFBFBD>һ<EFBFBD><EFBF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0
*/
int RTMP264_Send(int (*read_buffer)(unsigned char *buf, int buf_size));
/**
* <EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӣ<EFBFBD><EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><EFBFBD>
*
*/
void RTMP264_Close();