Error on iOS during runtime when intitalizing LibVLC class with the `--rtsp-tcp` option
Summary
We get the following error when we initialize LibVLC()
class using --rtsp-tcp
option.
VLCException: Failed to perform instanciation on the native side. Make sure you installed the correct VideoLAN.LibVLC.[YourPlatform] package in your platform specific project
Note: This only happens on iOS platform. It works fine on Windows.
Minimal project and steps to reproduce
- Create a new unity project
- Import VLC for Unity iOS plugin
- Create an empty object to the scene
- Add the following new script to the empty object
using UnityEngine;
using LibVLCSharp;
public class TestScript: MonoBehaviour
{
private LibVLC _libVLC;
private void Awake()
{
_libVLC = new LibVLC(options: new[] { "--rtsp-tcp" });
}
}
- Build the app on iOS. You will see the error I mentioned above.
What is the current bug behavior?
I get an the following error only when I add the --rtsp-tcp
option on iOS
platform.
VLCException: Failed to perform instanciation on the native side. Make sure you installed the correct VideoLAN.LibVLC.[YourPlatform] package in your platform specific project
What is the expected correct behavior?
I should be able to instantiate the LibVLC class without any errors.
Does it work on other plaforms? Does it work with the official VLC apps?
The VLC player for Unity plugin works fine with the --rtsp-tcp
option on Windows platform.
Relevant logs and/or screenshots
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