* rtmp = RTMP_Alloc();
RTMP_Init(rtmp);
推流
res = RTMP_SetupURL(rtmp, "rtmp://192.168.34.40/live/...test");//推流
PRINTERROR(res, 1, "RTMP_SetupURL error....;//推流要设置写
res = RTMP_Connect(rtmp, NULL);
PRINTERROR(res, 1, "RTMP_Connect error....拉流
res = RTMP_SetupURL(rtmp, "rtmp://live.hkstv.hk.lxdns.com/live//hks");//拉流
PRINTERROR(res...5dByte, Total: %5.2fkB\n",nRead,NRead*1.0/1024);
}
//拉流结束
清理资源
RTMP_Close(rtmp);
RTMP_Free