-
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.MediaDescription.getFmtpParametersAsMap failed and crashed. #9114
Comments
Please provide a log of RTSP messages. Add logs at Line 182 in b2333c8
and ExoPlayer/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspClient.java Line 423 in b2333c8
The easiest way is to use
|
Hey @zhbhhh. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
I've also come across the same exception as shown above, and (at least in my case) it appears to be related to RTSP implementations not strictly adhering to section 4.4.1 of RFC3640. I was attempting to stream from UniFi Protect, which looks to be running an embedded version of EvoStream Media Server. From a packet capture, I can see that there's a trailing semicolon on the
... which then causes the following line to have an empty string as the last array element: ExoPlayer/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java Line 318 in 80332f7
...which then means ExoPlayer/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java Lines 322 to 323 in 80332f7
Although the following format definition does not indicate trailing semicolons are permitted, RFC5691 (section 4.1) does contain an example where a trailing delimiter is present, so there are likely other implementations where this is the case.
I'm happy to submit a PR for this to optionally handle a trailing |
Thanks for providing the detail! Handling the extra semicolon seems straightforward in this case. For now I don't think we have the intention for support all slightly erroneous RTSP servers. That said, please submit a PR if there are more people complaining about this specific issue. |
When I to play RTSP APP crashed
The text was updated successfully, but these errors were encountered: