Closed DefaultV closed 3 years ago
This might be a separate issue, but before digging further into it, it's worth mentioning that WebGL is not supported because of CORS. See #40
On another note, I suspect that your constructor is being stripped out, because the compiler doesn't see where it's being used.
Hey again! Thanks for the quick response! Building with no stripping and adding constructors indeed removed the error, thanks for the heads-up!
Hey can you explain how did you make it work in Webgl?
Building a Unity project with WebGL as target, having the YoutubePlayer playing a simple URL on awake (Working in Editor) provides a black screen in the build and the following in the target console:
Video used: https://www.youtube.com/watch?v=eo8apVpcrIc
Unity export uses brotli compression with stripped engine code. Adding a constructor manually by embedding the package also provides same error. Code is as following in the YoutubeVideoMetadata.cs:
Will gladly provide more info if needed!