I am new here. Please forgive me if this is too basic, but I am struggling with this problem and I don’t know where to ask for help.
I am using Videoplayer to render an MP4 video on a texture. The video plays well on the game tab and in the compiled Windows build. However, when I test it on Android, the video constantly repeats the first second. I have tried many things, including creating a new scene solely for this purpose, but it fails as well.
Here is the videoplayer options
The render texture
It plays fine on the editor:
and here is how it shows in Android (s21 ultra)
I hope someone can help
I think I found the problem. I tested the game on an Android phone with Snapdragon, and the video plays well. So I think there is a problem with the Exynos 2100 chip on the S21 Ultra. I don’t have many devices to test, but this seems to be the bug specific to this GPU.
Can you open a bug report? It is definitely not normal and it is possibly the device as you said but it could be also the Android version or vendor (all Samsung phones for example).
Hi everyone! We’ve been poking at this for a while and haven’t been able to find a fix yet; there seems to be a bug in how a texture pool is managed on this specific model, leading to textures being recycled before the drawing is finished when using the Vulkan hardware-assisted code path.
We’ll keep searching for a way to have the device behave properly, but in the mean time, if it is any help, we have found that the GLES3 code path doesn’t have this issue.
Hi, concerning this, can I detect the GPU name (using SystemInfo.graphicsDeviceName it seems to be “Mali-G78”) to make specific behavior? Or is it more related to this model or other chip?
Something very similar happens on Samsung A54. It seems like the video player is getting stuck and repeating first second of the video. Can confirm it doesnt happen with GLES3
@DominiqueLrx How is the fix looking? Is it close? I actually cannot use GLES3 due to multiple shader problems and need to use Vulcan. But with Vulcan there is this video issue, which is really game breaking for affected users.
Also to add to this. The issue is not present on Unity 2021. The issue started when i switched to Unity 2022. I am currently at Unity 2022.3.20f1
A fix for your bug report IN-48114: [Android] Video repeats the first frame on Android when it is played via Unity’s Video Player component has been verified and approved.
I’m facing a similar issue while playing videos on devices like the Samsung A15 and A10. The intro video screen appears as a black screen.
Here’s what I’ve tried so far:
Adjusting render texture settings.
Checking logcat outputs, which indicate no errors; everything seems to be working as expected.
Verifying that the video files are compatible with the target devices.
From my debugging, I’ve confirmed that the scene background activities are working, and the buttons are responsive. However, since the video is supposed to cover the screen, I can’t proceed any further.