Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.3.X, 2020.1.X
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
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)
-
Marks4
Nov 26, 2023 17:51
You can use the following asset to play videos on the web
http s://prf.hn/click/camref:1101lTyGI/destination:https://assetstore.unity.com/packages/tools/video/video-player-webgl-192420
-
Eadmond
Apr 01, 2022 23:40
Still not working on 2020.3.6f1
Camera near plane, far plane, not working.
Render texture kind of work -
sduval
Aug 13, 2021 14:23
Still not working on 2021.1
-
xobobo
Feb 27, 2021 00:52
still not working with 3.15
-
iasarmientoj
Feb 18, 2021 20:47
The only way I was able to play the unity webgl video on an iPhone was using this browser: https://apps. apple. com/us/app/webxr-viewer/id1295998056 although I know this does not fix the real problem.
-
Lantosse
Nov 20, 2020 15:36
Still not working on 2020.2.0b11. Tried both render texture, material rendering, far and near plane rendering.
-
dkardell_gw
Nov 20, 2020 01:49
Still not working here on Mac Big Sur and 2020.1.14f1. Anyone find work around?
-
bloodsabertooth
Oct 21, 2020 05:54
Issue still here 2020. Webgl videos loading from URL not working on ios devices.
-
Virat-Gangurde
Aug 05, 2020 05:28
Video rendering in WebGL build issue resolved at my end. This work in Unity 2019.4 LTS versions.
-
inkletom
Jul 29, 2020 15:26
On 2020.1.0 I'm still seeing "WebGL: INVALID_VALUE: tex(Sub)Image2D: video visible size is empty"
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a12
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0b9 (3745)
Resolution Note (fix version 2019.3):
Fixed in 2019.3.15f1