Skip to content

SRT Stream on Android

Summary

SRT stream does'nt start on Android.

Minimal project and steps to reproduce

  1. Create a new project on Unity 2022.3.13f1 using the VR (Core) sample [URP].
  2. Import the VLC package in the project (vlc-unity-windows-0.1.9.unitypackage)
  3. Restart the Unity Editor.
  4. Switch platform to Android.
  5. Change the player settings Android Graphic API to OpenGLES3 & Active Input Handling to "Both"
  6. Restart the Unity Editor.
  7. Change the source of of the VLCMinimalPlayback.cs script to any SRT stream (srt://\\\<ip>:<port>) on line 68.
  8. Build the MinimalPlayback scene on Android.

What is the current bug behavior?

The SRT stream seems to not be read by VLC on Android (Occulus - Meta Quest & Android Phone).

What is the expected correct behavior?

The stream should be read.

Does it work on other plaforms? Does it work with the official VLC apps?

It works in the Unity Editor and build on Windows. It also works on the official desktop VLC running on another computer as the SRT stream source, so it's not a firewall issue.

Relevant logs and/or screenshots

Capture d’écran 2025-01-07 150616.png

Unity logs with Android Logcat when running the VLCMinimalPlayback on an Android phone.

Environment

  • OS:
    • Windows 10 Professionnel
    • Android
    • Unity 2022.3.13f
  • Device:
    • Meta Quest 3
  • VLC Unity plugin version
    • vlc-unity-windows-0.1.9.unitypackage
  • Scripting backend used
    • il2cpp

Possible fixes

This might be an issue with the Android pluging.

Edited by LUPOIMM