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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Video VideoPlayer WebGl stuttering

Discussion in 'Audio & Video' started by Trollg, Jan 8, 2018.

  1. Trollg

    Trollg

    Joined:
    May 22, 2014
    Posts:
    13
    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?
     
  2. Knusper

    Knusper

    Joined:
    Jun 5, 2014
    Posts:
    35
  3. a436t4ataf

    a436t4ataf

    Joined:
    May 19, 2013
    Posts:
    1,873
    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?)
     
  4. DonaRowe3443

    DonaRowe3443

    Joined:
    Apr 25, 2020
    Posts:
    2
    my friend is also facing something like same problem if you found let me know.
     
  5. PeteS

    PeteS

    Joined:
    Aug 1, 2012
    Posts:
    7
    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.
     
    guneyozsan likes this.
  6. guneyozsan

    guneyozsan

    Joined:
    Feb 1, 2012
    Posts:
    99
    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
     
    a436t4ataf likes this.
  7. a436t4ataf

    a436t4ataf

    Joined:
    May 19, 2013
    Posts:
    1,873
    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.
     
  8. guneyozsan

    guneyozsan

    Joined:
    Feb 1, 2012
    Posts:
    99
    Sorry, I thought it was the issue linked above. Here is the actual issue referencing the Firefox bug:
    https://issuetracker.unity3d.com/is...ng-on-webgl-builds-when-using-firefox-browser

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