fyhertz / libstreaming

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

RTSP connection check #128

Open k550201 opened 9 years ago

k550201 commented 9 years ago

Hi guys,
Does anybody know how to check the status of the RTSP connection?
I tested streaming live video transmission to Wowza Server based on Example3. But sometimes the server created broken mp4 files. According to several test results, I believe bad network status cause this situation. I guess that the transfer is started before the RTSP connection has been completed. Even though I used TCP method, the result was same. However there were no errors occurred, when I made a device waited for 3 seconds and then sent live video after it connected RTSP connection. But in this way I’m not sure whether the connection is opened or not.
I wonder how I can check the status of the RTSP connection. Thanks

Harris-wu commented 9 years ago

You can send a "OPTION" to server then the server will give you a code