librestreaming
librestreaming copied to clipboard
Crash when back pressed or app closed
Everytime I press the back button or I close the app from the baseSteamingActivity, the app crashes. The following is the error:
Attempt to invoke virtual method 'boolean me.lake.librestreaming.client.RESVideoClient.stopPreview(boolean)' on a null object reference
Seems like videoClient in RESClient.java is null. Whats the best way to fix this?

same crash in my case , add if (resClient != null) resClient.destroy(); ...... if (resClient != null) resClient.stopPreview(true);
in ...\activity\VideoActivity.java