WebGL videoplayer black screen but listening to the audio in Chrome
Hi there!
I'm playing a video in Chrome with the videoplayer in WebGL from an url, I can listen the audio correctly of all the video but the screen stills in black color during the whole video (mp4).
I'm here after many tests following all forums' feedback, but nothing seems to work.
Best regards.
Answer by qwnick · Apr 24, 2020 at 12:22 PM
downgraded project to 2019.2.21f and problem fixed. I think that problem in Universal Render Pipeline shaders.
@qwnick Thanks for this! Didn't have 19.2.2 on my machine so I downgraded to 2019.2.6f1 and after fixing packages etc from the downgrade I did a build and video is playing fine on local servers in Chrome and Firefox. I get no audio or video in Safari for some reason. But I'm happy with this improvement!
downgraded my project to 2019.2.21f and it worked thanks for the fix why is it like that ? is it possible to fix it in unity's latest version?
Answer by games4ever · Feb 21, 2020 at 07:06 PM
SOLVED!
Just setting the videoplayer alpha value to 0.99f
Hope it helps someone else.
Answer by Tset_Tsyung · Apr 02, 2020 at 01:02 PM
Having the same issue. Could you elaborate on what you mean by "Just setting the videoplayer alpha value to 0.99f"? The videoplayer component has no alpha option, and cannot see anything on the render texture. Did you change the render textures alpha via code?
Regards.
Answer by JPressley99 · Apr 21, 2020 at 06:51 AM
@Tset_Tsyung Any luck with the "alpha fix"? I'm in this boat too. I also saw this possible solution: https://stackoverflow.com/questions/54856356/webgl-unity-build-wont-play-video gonna try it tomorrow
Answer by DryreL · May 23, 2020 at 09:31 PM
Same problem here. I really need a solution for this problem. Any idea?
Your answer
Follow this Question
Related Questions
Unity WebGL video player on mobile 0 Answers
Unity WebGL Video black screen problem 2 Answers
WebGL Loading Bar / Splash Screen is gone 0 Answers
WebGL not rendering video player 1 Answer