Pedro Sánchez
Pedro Sánchez
Hello, If you want release camera you must call stopStream/stopRecord and stopPreview like here: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/app/src/main/java/com/pedro/rtpstreamer/defaultexample/ExampleRtmpActivity.java#L231 if the problem persist share me code example to reproduce the error
Hello, This isn't a library error. This was an example code error so I refactored the example to work properly. This is the commit: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/commit/f573387ae251be5c243866d587329b9ca961841d
Hello, You can change the code to work as you said. For example: ```kotlin /* * Copyright (C) 2021 pedroSG94. * * Licensed under the Apache License, Version 2.0 (the...
I'm not calling gc in the code it is called automatically. If you find a way to optimize it or you have any suggestion to solve the problem let me...
Hello, Are you using library without odifications? Can you reproduce the case only for rtsp or you can reproduce it using rtmp?
Can you tell me more or less a time when you can notice that memory increase? About 30min es enought to test and check differences? If you are only streaming,...
Hello, I'm not using native code. All the code use Android java SDK. Anyway, I will check it and let you know results
Hello, I was doing tests but I can find the reason. For now I'm testing using this: https://square.github.io/leakcanary
According with Android studio it isn't native memory:  
Now, I'm using Android studio profiler to get any hint.