Search Issue Tracker

Fixed in 2020.2

Fixed in 2019.3, 2020.1

Votes

75

Found in

2019.2.0a9

2019.3.0a1

2019.3.0b5

2020.1.0a1

Issue ID

1188316

Regression

Yes

[WebGL] VideoPlayer is not rendered in WebGL builds when the video is loaded via URL

WebGL

-

How to reproduce:
1. Open the attached project ("case_1188316-Webgl_bug.zip")
2. Open the repro scene ("SampleScene")
3. Switch build target to WebGL
4. Enter Play Mode and notice that the Video starts playing
5. Exit Play Mode
6. Make a WebGL build and run it

Expected results: Video starts playing in the build the same way as in the Editor
Actual results: VideoPlayer window stays completely black, warnings are thrown in the browser's console ("Error: WebGL warning: texSubImage2D: Source must not be null.")

Reproducible with: 2019.2.0a9, 2019.2.8f1, 2019.3.0b6, 2020.1.0a7
Not reproducible with: 2017.4.33f1, 2018.4.10f1, 2019.2.0a6
Couldn't test with 2019.2.0a7, 2019.2.0a8 ("RuntimeError: memory access out of bound" error is thrown on WebGL builds)

Reproduced with browsers: Chrome (77.0.3865.90), Firefox (69.0.2) Opera (63.0.3368.107)
Not reproduced in Edge (44.18362.329.0)

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a12

  2. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0b9 (3745)

  3. Response avatar

    Resolution Note (fix version 2019.3):

    Fixed in 2019.3.15f1

Comments (38)

  1. 7a17223be0217e9bfffbc11e264ba036?d=mm

    MaskedMouse

    Apr 02, 2020 20:26

    To me, it plays on firefox but stuttering quite a lot.
    On chrome just a black screen

    using Unity 2019.3.7, WebGL.
    In Editor it works perfect, if only we could get this to work on WebGL... that would be great. We want to implement this feature but we're blocked by the video player not working properly.
    Going back to 2019.2.21 is not an option

  2. 1af72971f16bef2f3efb23e32a0ecfdb?d=mm

    eternallite

    Apr 01, 2020 21:29

    Same issue on Unity 2019.3.7f1 using Video Player component (Black video in Chrome but seems to play in Firefox)

  3. 6f73e142b874f3317cd50ca6a675b2ba?d=mm

    Remi_Tribia

    Mar 25, 2020 16:38

    With 2019.3.6f1 I got this issue when serving the webgl build locally with "http-server" but the videos play fine when the build is finished and the browser opens up?!

  4. Cdd10333a55800d0c421e1c21da8aee6?d=mm

    lucasgutierrez

    Mar 25, 2020 01:38

    Same issue with 2009.3.3f1
Downgraded project and tested with 2019.2.21, 2019.2.0a6, 2018.4.10f1 ,and the videos still don't play.

  5. 98261940df332670decf819885c3d712?d=mm

    CirrusMinor

    Mar 07, 2020 06:15

    Videos still do not play in 2019.3.4f1

  6. 98261940df332670decf819885c3d712?d=mm

    CirrusMinor

    Feb 27, 2020 16:26

    This issue still exists with Unity 2009.3.3f1 (verified Unity 2019.2.21 is the last version that can play videos in WebGL)

  7. 7418f4572a0146846aa5067b66b4e852?d=mm

    -Aymeric-

    Feb 20, 2020 16:04

    Tested with 2019.3.2 still here. Downgraded project to 2019.2.21 : no problem.

  8. 1cfc5ab999f6081291521f6c767e7ebb?d=mm

    freakadelle

    Feb 14, 2020 14:03

    Same issue here with Unity 2019.3.0f6 but also reproduced in Microsoft Edge 44.18362.449.0

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.