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

[Android] Can not open video on Oppo #1882

Closed HaSyHieu closed 1 week ago

HaSyHieu commented 3 weeks ago

Describe the issue Can not play video (Using avpro video in android)

Your Setup (please complete the following information):

To Reproduce

  1. Import AVPro Trail Version (Version 3.0.1)
  2. Using Media Source : Path (Relative to Persistent Data Folder), Using Default Settings (When drag to scene)
  3. Put the video to the persistent data folder
  4. Play on editor (Fine)
  5. Build on devices (Oppo A15)
  6. Put the video to persistent data path on the device (com.oke.hieuhs)
  7. Open The App
  8. Video not show on the screen

Logs Playback error : androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error AVProVideo error Unexpected runtime error Logs File From Android Studio : log.txt

Chris-RH commented 3 weeks ago

Did you remember to set the permissions to access this folder which is in Player Settings > Android > Write Permission > External (SDCard) ? Can this be reproduced using a new project and running the AVPro Video mediaplayer demo scene?

HaSyHieu commented 3 weeks ago

I use the demo scene of avpro, i already have permission and that apk runs well on some devices, except that device. Yes it can be reproduced

HaSyHieu commented 3 weeks ago

I can attach that project to you through mail. Can you check it ?

Chris-RH commented 3 weeks ago

Have you tested using both Vulkan and OpenGLES?

HaSyHieu commented 3 weeks ago

I use only opengles 3.0, not vulkan. It's our settings

HaSyHieu commented 3 weeks ago

Using vulkan will make some of our .mp4 video, in some device, can not be played (Using Unity Video Player)

Chris-RH commented 3 weeks ago

So you are saying that the videos will not run on the device using Unity Videoplayer? Does the video run using the device's native videoplayer?

HaSyHieu commented 3 weeks ago

the video it self can run on the native video player. We remove vulkan to reduce crash, anr and that problem (video can not play on devices)

HaSyHieu commented 3 weeks ago

[update] : I have tried version 3.0.1, using both vulkan and opengles3. It dont work

Chris-RH commented 3 weeks ago

So this worked on the same device using AVPro Video version 2.9.3? And have you tested playing the same video from streaming assets? Have you tried different videos? Perhaps some test streams? Are you able to provide a sample of the video that you are testing with please?

HaSyHieu commented 3 weeks ago

I can provide you my project through mail.

HaSyHieu commented 3 weeks ago

Yes, i tried different ways to do it, but it seem not working. I also try with unity default settings, no multithreaded rendering, have multi thread rendering, open gles 3 + vulkan, only open gles 3. Also i build your sample scene (included in the package)

Chris-RH commented 2 weeks ago

A project would be helpful thanks. unitysupport@renderheads.com What devices have you tested it on? Is this the only one it doesn't work on?

HaSyHieu commented 2 weeks ago

I test on Oppo A15, Realme 3, Huawei Y9s

Chris-RH commented 2 weeks ago

Can you provide a full, unedited logcat please

MorrisRH commented 2 weeks ago

This issue has been fixed for the next release (version 3.0.3)

Chris-RH commented 2 weeks ago

AVPro Video version 3.0.3 has been released. Please let us know if it has not fixed your issue.