5G-MAG / rt-xr-unity-player

XR Unity Player
https://5g-mag.github.io/Getting-Started/pages/xr-media-integration-in-5g/
Other
4 stars 1 forks source link

Issue with MAF plugins when running the rt-xr-unity-player build #13

Closed nlsdvl closed 3 months ago

nlsdvl commented 7 months ago

the MAF plugins allow implementation of custom media pipelines.

When running rt-xr-unity-player in the Unity editor, the MAF plugins are loaded as expected. When running a build, the MAF plugins aren't loaded as expected.

It boils down to the current solution to load MAF plugins. the intent was to allow adding plugins without recompiling the player: https://github.com/5G-MAG/rt-xr-unity-player/blob/c6b94a8ba937fa9aefeac80acdfc94ab5eab9ccc/Assets/Scripts/Runtime/MediaPlayer.cs#L247

A better solution would be to import MAF plugins as Native Unity plugins and register them to the maf factory one by one.