Hi guys,
just have some question about librtmp.dll and how to use it correctly for own created apps.So in the last days I tried to find infos & examples about it but I got less success.Unfortunately there are no libs for assembly (ASM/MASM) language which I could use so in that case I only can use the librtmp.dll & functions itself using the APIs.Next problem is that I can't find a detailed functions description of all or most APIs so I found just a few (not in that case as you can find on MSDN).Now I startet first to create a very simple test code to see whether its working and I got success if I use the basic way so far.
Example:
Code:
CreateFile
WSAStartup
------------------------------
RTMP_Alloc
RTMP_Init
RTMP_SetupURL "rtmp://live.hkstv.hk.lxdns.com/live/hks"
RTMP_Connect
RTMP_ConnectStream
/////////////////////
LOOP:
RTMP_Read ; till return is 0
------------------------------
WriteFile ; write data to file
------------------------------
CloseHandle
------------------------------
RTMP_Close
RTMP_Free
------------------------------
WSACleanup
Rtmp link is just a working test link.As I said its working so far to get the video datas and to write them to file.One of the problems now are that the created video is broken and does show wrong lenght of 1 hour and I just wrote some seconds etc so you know this problem.First I thought I did anything wrong but then I tried the same with Rtmpdump and got same results.
So do you know any detailed description source of most librtmp functions + parameters?If yes then it would be nice if you could post any links where I can read it.Do you also know any projects using librtmp NOT as lib and using it as dll?If so then post a link/s then I can debug the files.
On the other hand I have to debug Rtmpdump itself and must find all lib created APIs inside manually by static hex search from librtmp functions to unpacked Rtmpdump code.Of course its possible but a little much work.
Would be nice if you have some helpfully informations all about librtmp / examples etc all what I need to know to create a own streamer code by using librtmp.
PS: One thing I forgot.What API & Paramter I have to use if I want to pipe the stream directly into player?Did tried it yet.
greetz