Skip to main content
Participant
May 26, 2014
Question

LibRtmp streaming to and from FMS

  • May 26, 2014
  • 0 replies
  • 416 views

Hello,

I have some C++ code for LibRtmp. I am unable to connect to fms. Does anyone have experience with this?

char *uri = "rtmp://127.0.0.1:1935/myapp";

  r = RTMP_Alloc();

  RTMP_Init(r);

  int retSetup = RTMP_SetupURL(r, uri);

  if(writer)

  {

       RTMP_EnableWrite(r);

  }

  int retConn = RTMP_Connect(r, 0);

  int retTest = RTMP_IsConnected(r);

  int retConnStream = RTMP_ConnectStream(r,0);

  int retTest2 = RTMP_IsConnected(r);

    This topic has been closed for replies.