From f956555d864c378f16f1341ae9ae29d1883ae210 Mon Sep 17 00:00:00 2001 From: Paul Gregoire Date: Fri, 17 Jan 2025 10:57:22 -0800 Subject: [PATCH] Add property notify to IConnection interface with default no-op --- client/pom.xml | 2 +- client/src/main/java/org/red5/client/Red5Client.java | 2 +- common/pom.xml | 4 ++-- .../main/java/org/red5/server/api/IConnection.java | 10 ++++++++++ common/src/main/java/org/red5/server/api/Red5.java | 4 ++-- io/pom.xml | 2 +- pom.xml | 12 ++++++------ server/pom.xml | 2 +- .../org/red5/server/net/rtmp/InboundHandshake.java | 8 ++++---- service/pom.xml | 2 +- servlet/pom.xml | 2 +- 11 files changed, 30 insertions(+), 20 deletions(-) diff --git a/client/pom.xml b/client/pom.xml index ff4289d7e..058db0ddc 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -3,7 +3,7 @@ org.red5 red5-parent - 2.0.12 + 2.0.13 4.0.0 red5-client diff --git a/client/src/main/java/org/red5/client/Red5Client.java b/client/src/main/java/org/red5/client/Red5Client.java index 2bbd39f05..a3e82a4e2 100644 --- a/client/src/main/java/org/red5/client/Red5Client.java +++ b/client/src/main/java/org/red5/client/Red5Client.java @@ -18,7 +18,7 @@ public final class Red5Client { /** * Current server version with revision */ - public static final String VERSION = "Red5 Client 2.0.12"; + public static final String VERSION = "Red5 Client 2.0.13"; /** * Create a new Red5Client object using the connection local to the current thread A bit of magic that lets you access the red5 scope diff --git a/common/pom.xml b/common/pom.xml index 6cb649a4a..a851b681b 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -3,7 +3,7 @@ org.red5 red5-parent - 2.0.12 + 2.0.13 4.0.0 red5-server-common @@ -105,7 +105,7 @@ net.engio mbassador - 2.0.12 + 2.0.13 --> junit diff --git a/common/src/main/java/org/red5/server/api/IConnection.java b/common/src/main/java/org/red5/server/api/IConnection.java index dcbab7a47..d725b9c2f 100644 --- a/common/src/main/java/org/red5/server/api/IConnection.java +++ b/common/src/main/java/org/red5/server/api/IConnection.java @@ -7,6 +7,7 @@ package org.red5.server.api; +import java.beans.PropertyChangeEvent; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -302,4 +303,13 @@ static enum Type { */ String getProtocol(); + /** + * Notifies listeners of a property change. + * + * @param evt PropertyChangeEvent containing details + */ + default void notifyPropertyChanged(PropertyChangeEvent evt) { + // no-op + } + } diff --git a/common/src/main/java/org/red5/server/api/Red5.java b/common/src/main/java/org/red5/server/api/Red5.java index 823103e39..5713aa1c9 100644 --- a/common/src/main/java/org/red5/server/api/Red5.java +++ b/common/src/main/java/org/red5/server/api/Red5.java @@ -57,12 +57,12 @@ public final class Red5 { /** * Server version with revision */ - public static final String VERSION = "Red5 Server 2.0.12"; + public static final String VERSION = "Red5 Server 2.0.13"; /** * Server version for fmsVer requests */ - public static final String FMS_VERSION = "RED5/2,0,12,0"; + public static final String FMS_VERSION = "RED5/2,0,13,0"; /** * Server capabilities diff --git a/io/pom.xml b/io/pom.xml index 09becf369..585352559 100644 --- a/io/pom.xml +++ b/io/pom.xml @@ -3,7 +3,7 @@ org.red5 red5-parent - 2.0.12 + 2.0.13 4.0.0 red5-io diff --git a/pom.xml b/pom.xml index 935c371b3..c840f0535 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ Red5 The Red5 server org.red5 - 2.0.12 + 2.0.13 https://github.com/Red5/red5-server 2005 @@ -101,17 +101,17 @@ ${project.version} 2.0.13 1.5.6 - 1.78.1 + 1.79 2.0.23 6.2.0 - 11.0.1 + 11.0.2 [4.13.1,) 1.9.59 2.10.6 - 1.9.4 - 1.17.1 + 1.10.0 + 1.17.2 4.4 - 2.17.0 + 2.18.0 3.17.0 [4.4.11,) [4.5.13,) diff --git a/server/pom.xml b/server/pom.xml index e8ea19b4b..10034d086 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -3,7 +3,7 @@ org.red5 red5-parent - 2.0.12 + 2.0.13 4.0.0 red5-server diff --git a/server/src/main/java/org/red5/server/net/rtmp/InboundHandshake.java b/server/src/main/java/org/red5/server/net/rtmp/InboundHandshake.java index a0c5b6188..d1fb0c860 100644 --- a/server/src/main/java/org/red5/server/net/rtmp/InboundHandshake.java +++ b/server/src/main/java/org/red5/server/net/rtmp/InboundHandshake.java @@ -78,7 +78,7 @@ public IoBuffer doHandshake(IoBuffer in) { */ public IoBuffer decodeClientRequest1(IoBuffer in) { if (log.isTraceEnabled()) { - log.debug("decodeClientRequest1: {}", Hex.encodeHexString(in.array())); + log.trace("decodeClientRequest1: {}", Hex.encodeHexString(in.array())); } // copy into a new array to ensure the position is respected c1 = new byte[Constants.HANDSHAKE_SIZE]; @@ -175,7 +175,7 @@ public IoBuffer decodeClientRequest1(IoBuffer in) { if (useEncryption()) { switch (handshakeType) { case RTMPConnection.RTMP_ENCRYPTED: - log.debug("RTMPE type 6"); + log.debug("RTMPE type 6 - C1"); // we dont encrypt signatureResp for type 6 break; case RTMPConnection.RTMP_ENCRYPTED_XTEA: @@ -225,7 +225,7 @@ public IoBuffer decodeClientRequest1(IoBuffer in) { */ public boolean decodeClientRequest2(IoBuffer in) { if (log.isTraceEnabled()) { - log.debug("decodeClientRequest2: {}", Hex.encodeHexString(in.array())); + log.trace("decodeClientRequest2: {}", Hex.encodeHexString(in.array())); } byte[] c2 = new byte[Constants.HANDSHAKE_SIZE]; in.get(c2); @@ -240,7 +240,7 @@ public boolean decodeClientRequest2(IoBuffer in) { if (useEncryption()) { switch (handshakeType) { case RTMPConnection.RTMP_ENCRYPTED: - log.debug("RTMPE type 6"); + log.debug("RTMPE type 6 - C2"); break; case RTMPConnection.RTMP_ENCRYPTED_XTEA: log.debug("RTMPE type 8 XTEA"); diff --git a/service/pom.xml b/service/pom.xml index dfd747a28..a01bee98d 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -3,7 +3,7 @@ org.red5 red5-parent - 2.0.12 + 2.0.13 4.0.0 red5-service diff --git a/servlet/pom.xml b/servlet/pom.xml index 2685d8a1d..5be066846 100644 --- a/servlet/pom.xml +++ b/servlet/pom.xml @@ -3,7 +3,7 @@ org.red5 red5-parent - 2.0.12 + 2.0.13 4.0.0 red5-servlet