And it seems there is a big delay between connect() and create_stream(), most time around 8s. I'm pretty sure this is not because of the server, cause there is no such delay for the application to connect to the same stream. I was wondering if I mis-config some parameters or there is something inside librtmp that I didn't understand. Thank you very much for your help!
Hi all,
Just noticed something strange. I'm using the following code to simulate the RTMP part of an application.
self.conn = librtmp.RTMP(rtmp_info['url'], playpath=rtmp_info['playpath'], app=rtmp_info['app'], tcurl=rtmp_info['tcurl'], live=rtmp_info['live']) self.conn.connect() self.stream = self.conn.create_stream()
And it seems there is a big delay between connect() and create_stream(), most time around 8s. I'm pretty sure this is not because of the server, cause there is no such delay for the application to connect to the same stream. I was wondering if I mis-config some parameters or there is something inside librtmp that I didn't understand. Thank you very much for your help!