Skip to content

Commit e73676e

Browse files
authored
Merge pull request #39 from marcus-nl/master
Allow switching to AMF3 encoding on connect
2 parents c1c9f7e + 662c8b9 commit e73676e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/red5/client/net/rtmp/BaseRTMPClientHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ protected void onCommand(RTMPConnection conn, Channel channel, Header source, IC
769769
final IPendingServiceCall pendingCall = conn.getPendingCall(command.getTransactionId());
770770
log.debug("Received result for pending call - {}", pendingCall);
771771
if (pendingCall != null) {
772-
if ("connect".equals(methodName)) {
772+
if ("connect".equals(pendingCall.getServiceMethodName())) {
773773
Integer encoding = (Integer) connectionParams.get("objectEncoding");
774774
if (encoding != null && encoding.intValue() == 3) {
775775
log.debug("Setting encoding to AMF3");

0 commit comments

Comments
 (0)