[rtmpdump] Using librtmp library to publish a live stream to Wowza Media Server
Dhruva T S
dhruvats at tataelxsi.co.in
Mon Dec 27 07:57:43 CET 2010
How to publish a stream using librtmp library?
I read the librtmp man page and for publishing , RTMP_Write() is used.
I am using C/C++ for my application.
//Init RTMP code
RTMP_EnableWrite(r); // To publish a stream, enable write support before connect
Then to respond to ping/other messages from server, I am using a thread to respond like following:
While (ThreadIsRunning && RTMP_IsConnected(r) && RTMP_ReadPacket(r, &packet))
RTMP_ClientPacket(r, &packet); //This takes care of handling ping/other messages
I am stuck at how to use RTMP_Write() to send the stream.
Please help me.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rtmpdump