-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTSP: app crash because of duplicated header from ip-camera #9014
Comments
The SDP does look off, no? Setting frame rate to The fail is easy to fix, change the usage of the ExoPlayer/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java Line 109 in 9be5ece
And change this line ExoPlayer/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java Line 198 in 9be5ece
to something like
|
I expect HashMap-like behaviour: new value with the same key replaces the previous one, so the last header value is kept.
Library shouldn't crash app because of uncatched exception. I can't validate all headers of any stream. Error should be handled via error listener, player should stop playing media.
I will try later to add submodule with modifications instead of library dependency. |
The current code does not catch the IAE thrown when building a MediaDescription or SessionDescription. This CL catches the IAE and propagates it as a ParserException. Issue: #9014. #minor-release PiperOrigin-RevId: 377544439
The current code does not catch the IAE thrown when building a MediaDescription or SessionDescription. This CL catches the IAE and propagates it as a ParserException. Issue: #9014. PiperOrigin-RevId: 377544439
There is non-catchable app chash when opening RTSP link from ip camera because of duplicated RTSP key "framerate".
Corresponding RTSP response is:
Player initialization:
Stream URL is not public available. I can do nothing with the camera, I couldn't find option to remove duplicated header.
Is there any way to filter RTSP headers before creating MediaDescription? Maybe any other suggestions to avoid crash?
One of ExoPlayer forks with RTSP support works quite good with this stream.
The text was updated successfully, but these errors were encountered: