Skip to content
Snippets Groups Projects
Commit 3d2428a1 authored by Leonew's avatar Leonew
Browse files

fix C2 may not send during rtmp handshake

parent e2828e15
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -94,6 +94,7 @@ public class RtmpConnection implements RtmpPublisher {
handshake.readS0(in);
handshake.readS1(in);
handshake.writeC2(out);
out.flush();
handshake.readS2(in);
}
 
Loading
Loading
Loading
Loading
@@ -162,7 +162,7 @@ public final class Handshake {
 
/** Generates and writes the third handshake packet (C2) */
public final void writeC2(OutputStream out) throws IOException {
Log.d(TAG, "readC2");
Log.d(TAG, "writeC2");
// C2 is an echo of S1
if (s1 == null) {
throw new IllegalStateException("C2 cannot be written without S1 being read first");
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment