Playing a video in webgl on mobile

I’m currently struggling to get a video playing reliably in webgl when viewed on mobile (have tried different browsers on both iOS and Android).

Using the built in video player component I can get the video playing but it experiences all sorts of false starts, speed skips and other weird behaviour. Using an asset like AVPro, I can’t get the video to show up at all.

has anyone had any experience with this and can provide some other methods or workarounds? Are there optimal codec settings for the videos I should be using? I’ve been trying to stream the videos in from streaming assets so that could be a factor?

Hi,
If you are still struggling to stream a video in webGL, please try HISPlayer for webGL here. Release HISPlayer Unity Video Player SDK v3.4.1 - FREE DEMO · HISPlayer/Unity_Video_Player · GitHub

It supports HLS and DASH for webGL on mobile, PC, and tablet. Hope it helps you.