fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.45k stars 1.07k forks source link

rtsp server url #170

Open pooyathr opened 8 years ago

pooyathr commented 8 years ago

hi , I've developed my app according to example 1. what is the rtsp server url to connect the client? please help!

Locnath commented 8 years ago

rtsp://IPADRESS:PORT For eg: rtsp://192.168.0.100:1234

On 03-Feb-2016 10:15 pm, pooyathr notifications@github.com wrote:hi , I've developed my app according to example 1 what is the rtsp server url to connect the client? please help!

—Reply to this email directly or view it on GitHub.

pooyathr commented 8 years ago

thanks , but I confronted another problem , in this part of code when I want to connect with vlc: `if (request != null) { try { response = processRequest(request); } catch (Exception e) {

                    // This alerts the main thread that something has gone wrong in this thread
                    postError(e, ERROR_START_FAILED);
                    Log.e(TAG,e.getMessage()!=null?e.getMessage():"An error occurred");
                    e.printStackTrace();
                    response = new Response(request);
                }
            }`

the error says : ` E/RtspServer: Invalid int: "" RTSP/1.0 200 OK Server: MajorKernelPanic RTSP Server Cseq: 1 Content-Length: 0 Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE

02-07 20:12:19.445 24055-7386/package I/RtspServer: Client disconnected `

I've tried this url rtsp://MY_IP:PORT?h264

when i use this one : rtsp://ip:port?h264=200-20-320-240 it says: failed to v=connect to camera service