In my app, I create a local NanoHttpd server giving it the path of video file to serve. then, start another app to play from the stream.Now, since I don't want that server to run forever.
- Is there any way I can know that other app has stopped receiving data(or is closed) or,
- can I put any timeout in NanoHttpd so that it closes itself.
I am new to nanohttpd, http. Any suggestion that gain the final result is welcome.