Set the callback to be called in OnConnected(). This method should be called before initiating the RTMP handshake (sending C0 and C1)
| 320 | // Set the callback to be called in OnConnected(). This method should |
| 321 | // be called before initiating the RTMP handshake (sending C0 and C1) |
| 322 | void SetConnectCallback(void (*app_connect_done)(int, void*), void* data) { |
| 323 | _on_connect = app_connect_done; |
| 324 | _on_connect_arg = data; |
| 325 | } |
| 326 | // Called when the RTMP connection is established. |
| 327 | void OnConnected(int error_code); |
| 328 | bool unconnected() const { return _on_connect != NULL; } |