var
MY_RTMP: RTMP;
URL_str: AnsiString;
begin
URL_str: = 'rtmp :/ / localhost: 1935/Video/test.stream';
MY_RTMP: = RTMP_Alloc;
RTMP_Init (MY_RTMP);
RTMP_SetupURL (MY_RTMP, pcchar (URL_str));
RTMP_Connect (MY_RTMP, 0);
RTMP_ConnectStream (MY_RTMP, 0);
end;
Error RTMP_Connect (MY_RTMP, 0); – [DCC Error] fMain.pas (36): E2033 Types of actual and formal var parameters must be identical
thanks in advance
The
RTMP_Connectas it is defined in the code you’ve linked in your previous question expects to pass a declaredRTMPPacketvariable as a second parameter. So using your naming convention, you may try this:Perhaps
MY_RTMPPacketneeds to be initialised beforeRTMP_Connectis called. But no doubt you can work that our from the library’s documentation.