VideoPlayer doesn't work on some android devices

I’m just using the videoplayer component on a simple quad with an unlit-texture material to display the video.
On some devices the video is an unreckognisable mess of glitchy stuffinstead of the actual video.

Any idea what can cause this?

It’s my first time using the video player, so maybe there are some restrictions/guidelines I don’t know about.

The video is a small mp4 file (H.264), about 2 MB I think, and about 500x500 px in size.
I’m using Unity 2017.2

Any help appreciated

Edit:

Screenshot of the problem:

Hi, I need more information to be able to help you.
Can you give a list of devices that show this glitchy behaviour?
Can you share the video file to inspect H264 encoding information, older devices can’t handle some of the H264 encoding profiles Supported media formats  |  Android media  |  Android Developers
Please specify which release of 2017.2 you’re using.

1 Like

Ah thanks for that link, very helpful.
I didn’t know about any of that, it’s quite possible that that’s indeed the issue. (the h264 encoding)

here’s the file:
InstructionMoveSnake1.zip

One of the devices that has the problem is a Huawei P8 Lite (the old one, not the 2017 one, on the 2017 one the movie plays fine)

I’m using Unity version 2017.2.0f3 Personal

3330553–259578–InstructionMoveSnake1.zip (1.37 MB)

Yes, your video file uses H264 High@L4.1 profile which is not officialy supported by Android, but still seems to work on some devices.
To make sure your video can work correctly, use H264 Baseline profile for encoding.

Ok thanks, though I can’t remember there being a setting for that (in the program I used, namely Microsoft expression encoder), but I’ll see if I can find it.

have you solve the problem?
I use VideoPlayer to play an mp4 on android, and get the error info:
videoplayer cannot play clip: ******.mp4
version: unity2017.3.1
so VideoPlayer does not support platform android?