by dusted · 7y ago · 0 comments
There is also a site to test features and their impact on performance: https://jsmpeg.com/perf.html
I have a very practical solution for you: bypassing the autoplay restriction for ads.
Otherwise sites would use GIFs or something like this, which is much less efficient.
Which is a perfectly valid reason to build something. But this project is 6 years old (almost to the day, according to Github) and has over 3700 stars, so it seems to be a bit more than a mere novelty.
Thankfully this is Hacker News, not Practical News.
> JSMpeg.Renderer.WebGL.IsSupported()?new JSMpeg.Renderer.WebGL(options):new JSMpeg.Renderer.Canvas2D(options);
Not sure why you didn't check if it supported WebGL or not.