VideoPlayer WebGl stuttering

Hi,

I am using VideoPlayer to play a video from URL in Unity 2017.3 - WebGl.
In the editor and chrome, it works fine but in firefox there is a strange stuttering.

Any ideas?

Same here.
Addressed in Unity Issue Tracker - [Firefox] VideoPlayer has an occasional choppy playback

Don’t experct anyone official to help. This video player is unstable since it came out initially nearly 1 1/2 years before. No official Unity dev has really helped since…

How on earth is that “BY DESIGN” ??

(in 2020, I’m seeing this bug still fully present and correct in 2019.latest - this is the live version of Unity, actively releasing new builds, and it seems to have this 3+ years old bug that they won’t fix?)

my friend is also facing something like same problem if you found let me know.

Only fix that worked for me in firefox webgl build was to re encode the videos to webM format VP8.
I used a Free WebM Encoder to convert the mp4 files.
I renamed the webM extension back to mp4 and uploaded the files does not stutter anymore.

1 Like

It is marked as “by design” because it is not a Unity issue but a Firefox bug they say:
RESOLUTION NOTE (2020.2.X):
Debugged this to be a video playback bug in Firefox. Upstream bug report registered to https://bugzilla.mozilla.org/show_bug.cgi?id=1667644

2 Likes

That’s not really ‘by design’, I’m amused that someone was able to use that code. If an upstream library I’m using has a bug, that makes my software break, it’s still a bug in my software!

How did you find out what the resolution note is? I can’t see that when I click on the Unity issue-tracker link.

Sorry, I thought it was the issue linked above. Here is the actual issue referencing the Firefox bug:
https://issuetracker.unity3d.com/issues/webgl-videoplayer-is-stuttering-on-webgl-builds-when-using-firefox-browser

I suppose “by-design” implies that the fix does not require any changes on Unity side.