RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

Video playback fails on IL2CPP Quest build #1193

Closed Kron0 closed 2 years ago

Kron0 commented 2 years ago

Problem description:

Oculus App Lab requires an arm64 build, but when switching to IL2CPP backend videos no longer work on quest 2 device

Device (which devices are you having the issue with - model, OS version number):

Quest 2

Media (tell us about your videos - number of videos, resolution, codec, frame-rate, example URLs):

HLS MP4 video streams, but applies to all video

System Information:

AVPro Video: v2.5.1 (plugin v2.5.1f1-ultra) Target Platform: Android Unity: v2021.2.3f1 WindowsEditor OS: Desktop - MS-7B18 (Micro-Star International Co., Ltd.) - Windows 10 (10.0.18363) 64bit - English CPU: Intel(R) Core(TM) i9-9900KF CPU @ 3.60GHz - 16 threads - 65470KB GPU: NVIDIA GeForce RTX 2080 SUPER - NVIDIA - Direct3D 11.0 [level 11.1] - 8010KB - 16384

Chris-RH commented 2 years ago
  1. Does it still play in the editor?
  2. Does the application crash or just the video not play?
  3. Is the video blank? Is it buffering? Is there audio?
  4. Are you using mediaplayer or exoplayer?
  5. Does it still happen on a fresh unity build playing our demo scene?
  6. What minify options are you using?
  7. Do you have any error logs?
Ste-RH commented 2 years ago

Additional question:

  1. Are you using OES rendering mode/shader?

I have fired up a fresh project in Unity 2021.2.3f1 using AVPro Ultra and the AVPro 360 Demo scene (just the default none OES). Building in IL2CPP I get video playback without issue.

AndrewRH commented 2 years ago

@Ste-RH confirm that's an ARM64-only build?

Ste-RH commented 2 years ago

@Ste-RH confirm that's an ARM64-only build?

I can confirm:

I/Unity: Built from '2021.2/staging' branch, Version '2021.2.3f1 (32358a8527b4)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Enabled'

image

Kron0 commented 2 years ago

Does it still play in the editor? Yes, but that's going through windows playback

Does the application crash or just the video not play? Video not play

Is the video blank? Is it buffering? Is there audio? Doesn't register as loaded, so our app stays in loading phase, no audio or video

Are you using mediaplayer or exoplayer? expolayer

Does it still happen on a fresh unity build playing our demo scene? Getting the right oculus config makes this more difficult, but I will set it up

What minify options are you using? None

Do you have any error logs? Yes, but no avpro info is shown

Are you using OES rendering mode/shader? No

Kron0 commented 2 years ago

@Ste-RH Did it work on quest 2 and with which version of the oculus plugin?

Ste-RH commented 2 years ago

@Ste-RH Did it work on quest 2 and with which version of the oculus plugin?

On a Quest 2, yes. I was not using any Oculus SDK - just the latest Unity XR package with Oculus selected. If you send me over link for the SDK you are using I will give that a go here.

Kron0 commented 2 years ago

Hi, yeah we are using some quite old Oculus code and I can't find which sdk it is exactly. I was also able to spin up a working stereo video player using the latest Avpro version that runs on Quest 2 with il2cpp. I'll update as soon as I can find more information, but I'm not seeing anything in the logs that looks helpful

Ste-RH commented 2 years ago

Ok, we will await more information. Or you could email over a project to unitysupport@renderheads.com. Or send a full log here for us to take a look at in case we can spot something amiss.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Chris-RH commented 2 years ago

Hi @Kron0, Are you still having problems with this? It would be helpful if you could email over a project to unitysupport@renderheads.com or send a full log here. Thank you

Chris-RH commented 2 years ago

Closing this for now due to lack of response from OP, please reopen if this is still an issue for you