If you encounter this issue, please check your Android manifest User Permission. Record_Audio permission must be given in order for setting audio source.
Well.. the latest answer given there seems best for the given situation.
Basically, you need to find out the following
1. It is really lost of frame? You can get this information based on network tools such as Wireshark to see if the incoming sequence number for video and audio are correct.
2. If the client receive all frames, then what do you mean by lost of few frames? Visually or data lost? Visually, it could mean that it is just IDR frame has not arrived. If data lost in system, you may have group the rtp packets into an H.264 frame wrongly.
3. How about the player you mentioned? It is developed by you? Regardless, you should check if the player buffering video frame before playback. Player such as quicktime buffer at least 3 seconds of video before playback.
If you really feel that network is the issue, you can try RTSP over HTTP or TCP solution.
http://is.gd/AFC67c is a question about RTSP live streaming. Can you help with an answer?
ReplyDeleteWell.. the latest answer given there seems best for the given situation.
ReplyDeleteBasically, you need to find out the following
1. It is really lost of frame? You can get this information based on network tools such as Wireshark to see if the incoming sequence number for video and audio are correct.
2. If the client receive all frames, then what do you mean by lost of few frames? Visually or data lost? Visually, it could mean that it is just IDR frame has not arrived. If data lost in system, you may have group the rtp packets into an H.264 frame wrongly.
3. How about the player you mentioned? It is developed by you? Regardless, you should check if the player buffering video frame before playback. Player such as quicktime buffer at least 3 seconds of video before playback.
If you really feel that network is the issue, you can try RTSP over HTTP or TCP solution.
After adding the permission also we are facing the same error still
ReplyDeleteAndorid permission in the android manifest
ReplyDeleteBut still facing the err = "setAudioSource failed."