RTSP-Camera-for-Android icon indicating copy to clipboard operation
RTSP-Camera-for-Android copied to clipboard

Streaming between two Android devices

Open ahmontero opened this issue 12 years ago • 1 comments

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

ahmontero avatar Nov 27 '12 23:11 ahmontero

Hi ahmontero, did u find solution ?

rusyasoft avatar May 08 '13 07:05 rusyasoft