RTSP streams do not work on the iOS plugin
Summary
We are not able to load RTSP streams on iOS builds. It works fine on Windows and Android.
Minimal project and steps to reproduce
- Load any RTSP stream on the MediaPlayer. (Eg:
_mediaPlayer.Media = new Media(new Uri(rtspURL))
) \
Here are some RTSP URLs for testing:
rtsp://rtspstream:a264b2fe254c4a72a240b01031e23166@zephyr.rtsp.stream/pattern
-
rtsp://rtspstream:b33121ae6698007e4cc5b55b9f05080e@zephyr.rtsp.stream/movie
(If these links stop working, you can either let me know or create new links at rtsp.stream.
They have a free tier that gives you two test RTSP links and lets you stream up to 2GB/month for free.)
What is the current bug behavior?
The player does not load the RTSP stream.
What is the expected correct behavior?
The player loads the RTSP stream.
Does it work on other plaforms? Does it work with the official VLC apps?
The RTSP stream loads as expected on Windows and Android plugins. It also works as expected on the "VLC media player" iOS app from the app store.
Relevant logs and/or screenshots
I get these 3 errors when I load an RTSP stream on an iOS build:
Error 1:
FormattedLog:
satip Error:
Source:
../../../modules/access/satip.c:730
Error 2:
FormattedLog:
main Error:
Source:
../../../src/interface/dialog.c:396
Error 3:
FormattedLog:
main Error:
Source:
../../../src/interface/dialog.c:397
These errors repeat every time I load an RTSP URL.
I got these logs using libVLC.Log
delegate. Here,
FormattedLog = event.FormattedLog
Source = $"{ event.SourceFile }:{ event.SourceLine}"
Environment
- OS: iPadOS
- Version 17.2
- Device: iPad (9th gen)
- LibVLC version and architecture
- LibVLCSharp version 4.0.0
- VLC Unity plugin version 0.1.9
- XCode Version: 15.0.0
Possible fixes
Edited by Satish Bethi