Hi again,

Joachim Bauch schrieb:
> I doubt it's the support for Flash Player Beta that breaks connecting from
> Mac clients. A better candidate is the new handshake verification code
> that checks the handshake reply received from the client against what Red5
> sent to him - maybe Macs change something in this reply... I'll prepare a
> short test so you can add a bit more debug output to your server to see
> what happens.

okay, here we go.

Add the following at the end of "org.red5.server.net.rtmp.codec.RTMP" in
method "validateHandshakeReply" just before the "return" statement:

if (!Arrays.equals(reply, handshake)) {
  try {
    FileOutputStream fp = new FileOutputStream("c:\\red5_client.dump");
    fp.write(reply);
    fp.close();
    fp = new FileOutputStream("c:\\red5_server.dump");
    fp.write(handshake);
    fp.close();
  } catch (IOException e) {
    // Ignore for now ;)
  }
}

Make sure to import the packages for FileOutputStream and IOException,
recompile and restart Red5. Please send a mail to the list so Andi can
try to connect - if it fails because of an invalid handshake, you should
have two files on your C-Drive (adjust this if required) which you can
send to me for further investigation ;)

Joachim


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to