typedef struct RTMP RTMP; #pragma incomplete RTMP int rtmpstream(RTMP *r, ulong *sid); enum { PubLive, PubAppend, PubRecord,};int rtmppublish(RTMP *r, ulong sid, int type, char *name); enum { VcodecH264 = 7, AcodecAAC = 10,};int rtmpmeta(RTMP *r, ulong sid, int vcodec, int w, int h, int acodec); enum { Taudio, Tvideo,};int rtmpdata(RTMP *r, ulong sid, u32int ts, int type, void *data, int sz); RTMP *rtmpdial(char *url);void rtmpclose(RTMP *r);
typedef struct RTMP RTMP;
#pragma incomplete RTMP
int rtmpstream(RTMP *r, ulong *sid);
enum {
PubLive,
PubAppend,
PubRecord,
};
int rtmppublish(RTMP *r, ulong sid, int type, char *name);
enum {
VcodecH264 = 7,
AcodecAAC = 10,
};
int rtmpmeta(RTMP *r, ulong sid, int vcodec, int w, int h, int acodec);
enum {
Taudio,
Tvideo,
};
int rtmpdata(RTMP *r, ulong sid, u32int ts, int type, void *data, int sz);
RTMP *rtmpdial(char *url);
void rtmpclose(RTMP *r);