Skip to content

Unable to consistently play RTSP streams across many Android devices

Hello We are working on a Xamarin Forms project which involves playing video streams, among which RTSP streams. We are using LibVLC (as VideoLAN.LibVLC.Android package) in our project and we are facing issues playing RTSP streams on some devices. We have already reported this opening a ticket (LibVLCSharp#226 (closed)) over at https://code.videolan.org/videolan and we have been forwarded over here.

On some devices, namely Oneplus One and Samsung S5, when opening an RTSP stream such as rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream the stream won't play and it outputs:

[VLC] [a92d9430/7a41] libvlc demux: Nothing to play for rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream
[VLC] [92893ab0/7a41] libvlc stream: Failed to setup RTSP session
[VLC] [92893ab0/7a41] libvlc stream: read error: Protocol not available
[VLC] [92893ab0/7a41] libvlc stream: Failed to teardown RTSP session
[VLC] [9570d030/7a41] libvlc input: Your input can't be opened
[VLC] [9570d030/7a41] libvlc input: VLC is unable to open the MRL 'rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream'. Check the log for details.

(please refer to the ticket over code.videolan for more verbose logs)

We are trying to play RTSP video streams from ONVIF Cameras with the same results.

Please find attached an up-to-date sample project. Xamarin.Forms v4.3.0.991211 LibVLCSharp(.Forms) v3.3.1 VideoLAN.LibVLC.Android v3.2.0

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information