RTSP-Camera-for-Android
RTSP-Camera-for-Android copied to clipboard
Streaming between two Android devices
Hello, I can not stream video between two Android devices. I have followed all the directions I founded here without any success. I have:
Hardware: 2 x Nexus 3 Software: Android 4.1.2 (both devices)
One device runs RtspCamera project (D1) and the another device (D2) the RtspViewer project.
D1 ip is 192.168.0.200 D2 ip is 192.168.0.199
Step 1
I have tried to use VLC at url rtsp://192.168.0.200:8080/video but I can not see anything. VLC does not show any error, neither the device log.
Step 2
Next I tried D2 with the same url:
private String rtspConnect = "rtsp://192.168.0.200:8080/video";
Same results: no error logs neither video, just black screen.
I have been debugging and I found that the client waits for sdp file to be created (state READY), but that never happens and I don´t know why. The thing is the RtspViewer code get stucked in:
RtpVideoRenderer.java at line 155:
while (rtspControl.getState() != RtspConstants.READY) {
; // blocking
}
Do you know what could be the problem?
If you need more info just tell me.
Thanks
Hi ahmontero, did u find solution ?