Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Video Alpha Transparency not working on some Android 10 versions

Discussion in 'Android' started by fbarnaud, Jan 25, 2022.

  1. fbarnaud

    fbarnaud

    Joined:
    Mar 11, 2021
    Posts:
    4
    Hi !
    I am trying to run an app that includes a video player with alpha transparency. I have set the alpha transparency parameters with the transcode tool as seen on various threads.

    I have tried with and without the alpha transparency option : the video is playing well without, but does not play at all with alpha transparency (quad remaining with material color).

    I tried it on 2 different Android versions :
    - A Xiaomi Redmi note 8 pro with Android 10 .QP1A.190711.020 (supposed to be the latest built) --> NOT WORKING
    - A Fairphone with android 10 (dont know which version as they have their own built) --> WORKING

    Any idea what the issue could be ? I dont really know what are my options here to investigate...

    I am running Unity on a PoPOS (Ubuntu..) laptop.

    Thanks a lot !
    Félix
     
  2. fbarnaud

    fbarnaud

    Joined:
    Mar 11, 2021
    Posts:
    4
    Hi again,
    I have somehow found a solution to this : I had to reduce the Spatial Quality to "Low" when importing the video.
    It is quite strange as the other phones on which I have tested this are much less powerful (less RAM, lower CPU and GPU) than the Xiaomi phone I have had the issue with.
    But by setting the Spatial Quality to low, it now works on this phone, not so sure why.

    When I set the spatial quality to a higher value, the Quad on which the video should be played is just white.

    Hope it can help someone.