media
media copied to clipboard
[Request] Add RTSPT scheme
If you know that an RTSP stream is TCP only, it would be nice to have a user-friendly way to specify that protocol, rather than having to rely on and wait for the fall back from UDP. Many ISP's block RTSP UDP traffic, so even when https://github.com/androidx/media/issues/586 is resolved, there would still be a noticeable delay before the stream starts for many people.
Proposed solution
Add a dedicated RTSPT scheme to force use of the RTSP TCP protocol. (rtspt://live.stream) This would also allow the user to expect a more consistent result across platforms (e.g with AVPro-Video) as this is a solution also used in Media Foundation on Windows.