I have implemented example1 and can stream to VLC just fine on my local network. However, if I try to stream over the internet using port forwarding on my router (again with VLC with a URL of "rtsp://XXX.XX.XX.189:1234/" forwarded to the local address 10.0.1.80:1234/) , the RtspServer goes through the OPTIONS, DESCRIBE, SETUP, PLAY sequence. Then after 10 seconds I see a TEARDOWN and apparently a re-connection followed by OPTIONS, DESCRIBE and ERROR_CAMERA_ALREADY_IN_USE error. If I note there are two "sessionStopped" callbacks occurring afterwards, I suspect that the reconnection is happening before the first session has "cleaned things up" (that is the camera has not yet been released).
I have implemented example1 and can stream to VLC just fine on my local network. However, if I try to stream over the internet using port forwarding on my router (again with VLC with a URL of "rtsp://XXX.XX.XX.189:1234/" forwarded to the local address 10.0.1.80:1234/) , the RtspServer goes through the OPTIONS, DESCRIBE, SETUP, PLAY sequence. Then after 10 seconds I see a TEARDOWN and apparently a re-connection followed by OPTIONS, DESCRIBE and ERROR_CAMERA_ALREADY_IN_USE error. If I note there are two "sessionStopped" callbacks occurring afterwards, I suspect that the reconnection is happening before the first session has "cleaned things up" (that is the camera has not yet been released).
Here is the log:
Here is the code:
Here's the manifest
Any guidance would be appreciated.