I am not sure about the contract around the `AntMediaApplicationAdapter.addFrameListener` method's proper usage. If I register listener instances from the `IStreamListener` interface `streamStarted` methods, am I supposed to take care of removing these frame listeners using `removeFrameListener` in the`streamFinished` lifecycle methods - or can I assume that Ant Media Server will free up the listeners and they will be garbage collected? I don't want to have my listeners accumulate and lead to a memory leak over months when thousands of streams get started and stopped over time.
Question
Balazs
I am not sure about the contract around the `AntMediaApplicationAdapter.addFrameListener` method's proper usage. If I register listener instances from the `IStreamListener` interface `streamStarted` methods, am I supposed to take care of removing these frame listeners using `removeFrameListener` in the`streamFinished` lifecycle methods - or can I assume that Ant Media Server will free up the listeners and they will be garbage collected? I don't want to have my listeners accumulate and lead to a memory leak over months when thousands of streams get started and stopped over time.
Link to comment
Share on other sites
Top Posters For This Question
2
1
Popular Days
Dec 7
1
Dec 8
1
Dec 19
1
Top Posters For This Question
Balazs 2 posts
Selim 1 post
Popular Days
Dec 7 2022
1 post
Dec 8 2022
1 post
Dec 19 2022
1 post
2 answers to this question
Recommended Posts