Comments (5)
I've fixed the issue by adding the following lines to org.red5.client.net.rtmp.RTMPMinaIoHandler.sessionOpened(IoSession session) method as you did with org.red5.server.net.rtmp.RTMPMinaIoHandler.
@mondain Is this has side effects? because I tested it; memory leak was solved and everything worked well.
RTMPConnManager connManager = (RTMPConnManager) RTMPConnManager.getInstance();
session.setAttribute(RTMPConnection.RTMP_CONN_MANAGER, new WeakReference<IConnectionManager<RTMPConnection>>(connManager));
from red5-client.
Could you advice me if you have a time @mondain
Thanks in advance.
from red5-client.
The server and client RTMPMinaIoHandlers are similar but due to their roles are different; both client and server have different handshakes to start. I don't believe the client uses a connection manager unless its used on the server, but I may just be foggy on the current process. Use containsAttribute
if you're having issues with an attribute lookup.
from red5-client.
A fix for this using the WeakReference in the session will be in the next commit.
from red5-client.
Thank you!
from red5-client.
Related Issues (20)
- Task rejected HOT 3
- How am I supposed to use this? HOT 1
- BaseRTMPClientHandler.java Null pointer exception HOT 1
- Possible Memory leak HOT 13
- RTMPClient.invoke() fails with parameters longer than 82 bytes HOT 2
- restreaming to wowza HOT 1
- AMF3 connect failed and decode error HOT 4
- StreamingProxy.isRunning() causes null pointer exception HOT 1
- NoSuchMethodError org.apache.mina.util.NamePreservingRunnable.<init> in connect()
- Switch to AMF3 Decode Error (BufferUnderflowException)
- Red5 Client - Rtmp stream to FLV HOT 2
- Incorrect timestamp processing HOT 4
- java.lang.NoSuchMethodError: No static method encodeHexString([B)Ljava/lang/String; in class Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration of 'org.apache.commons.codec.binary.Hex' appears in /system/framework/ext.jar) HOT 3
- Create Stream error in android
- ChunkSize Problem HOT 1
- RTMP handshake failing on s2 processing
- website down
- Red5-client is dependent on vulnerable version of mina-core HOT 3
- Red5 client fails to decode RTMP from FFmpeg server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from red5-client.