-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
srs.librtmp cannot connect to FMS/RED5 #418
Comments
Just state the problem directly, and I will assess whether it needs to be corrected.
|
The problem with integrating RED5 (1.0.6-release) is that the RTMP Body structure of '_result('NetConnection.Connect.Success')' is String, Number, NULL, Object. The current SrsConnectAppResPacket::decode function handles the NULL case incorrectly. I have made the following changes to fix it.
|
FMS for some reason, it seems that after sending this SrsSetWindowAckSizePacket, no data can be read anymore.
|
The RTMP protocol should not be Null, but this can be compatible.
|
It seems that the problem with fms has been found.
|
@illuspas It seems to be an equivalent, huh? Have you tried it? Can we bypass it by changing it to a complex handshake? Or would it be possible to bypass it by making c2 equal to s1?
|
I didn't try a complicated handshake. I directly copied the memory in SrsHandshakeBytes::create_c2() and it worked. Previously, the handshake was successful, but when I continued to send another packet of data, the fms forcibly closed the socket. Checking the status with netstat showed it changed to FIN_WAIT_2.
|
Okay, let me confirm again.
|
@illuspas When performing a simple handshake, c2 becomes equal to s1.
|
@illuspas Regarding the issue of the structure returned by RED5, which is
|
srs-librtmp is removed in SRS4. |
srs.librtmp is a modified version of librtmp. Testing the integration of srs.librtmp with both srs and nginx-rtmp is successful. However, testing the integration with FMS and RED5 has failed. Wenjie's BLE uses librtmp and has no issues with integrating with FMS. Maintaining compatibility with librtmp is of great significance for srs.librtmp, especially considering that FMS and RED5 are leading players in the field.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: