Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2019.3.X, 2020.1.X



Found in





Issue ID




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



How to reproduce:
1. Open the attached project ("")
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. Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a12

  2. Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0b9 (3745)

  3. Resolution Note (fix version 2019.3):

    Fixed in 2019.3.15f1

Comments (45)

  1. chetan-rane

    May 04, 2020 03:36

    this issue persist in 2019.3.12 + URP + WebGL build also.
    just a black screen appears in chrome though audio is working fine.

  2. maxhealth

    Apr 26, 2020 12:04

    @Coopervr - Can you verify the same in 2019.3?

    I still have the issue on Chrome - CORS is configured (2019.3.9).
    In Firefox, the audio is fine but the Video stutters same as @MaskedMouse

    Here is the error I am getting:
    WebGL: INVALID_VALUE: tex(Sub)Image2D: video visible size is empty

  3. Firewalker

    Apr 24, 2020 19:31

    @COOPERVR which unity version are you using?
    @KAMYKER do you have CORS enabled? what version are you using?

  4. Kamyker

    Apr 24, 2020 12:40

    @COOPERVR ? It still doesn't work.

  5. Coopervr

    Apr 23, 2020 19:02

    I used AWS to host the video, followed their tutorial on activating AWS as CORS configuration and hosting a video. Now I'm streaming from URL via webgl upload to

    I hope this helps someone else. So much relief. Took 5 minutes to implement the solution!

  6. Firewalker

    Apr 16, 2020 16:39

    Question is will this work with local files inside the folder on Safari in an iFrame?

  7. yusefkerr

    Apr 09, 2020 15:37

    Same issue in 2019.3.0f5

  8. 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

  9. 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)

  10. 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?!

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.