News for hackers. Stuff that matters.
Re:JSMpeg – Decode It Like It's 1999 by dusted on Tuesday May 07, 2019 @05:36AM (#19847830)
This seems tremendously CPU intensive, my fan spun up after two seconds of playing video. The idea is interesting, but until it does it with GLSL shaders or something to get that sweet hardware acceleration,it's just a proof that it CAN be done, rather than a practical solution.
Re:JSMpeg – Decode It Like It's 1999 by dschooh on Tuesday May 07, 2019 @06:20AM (#19848028)
It'll use shaders if WebGL is supported and enabled: https://github.com/phoboslab/jsmpeg/blob/master/src/webgl.js

There is also a site to test features and their impact on performance: https://jsmpeg.com/perf.html

Re:JSMpeg – Decode It Like It's 1999 by Crinus on Tuesday May 07, 2019 @06:20AM (#19848030)
> rather than a practical solution.

I have a very practical solution for you: bypassing the autoplay restriction for ads.

Re:JSMpeg – Decode It Like It's 1999 by jmkni on Tuesday May 07, 2019 @08:18AM (#19848712)
Ohh that's great! Terrible! But great!
Re:JSMpeg – Decode It Like It's 1999 by aeharding on Tuesday May 07, 2019 @08:52AM (#19848882)
This is why videos are allowed to autoplay if muted.

Otherwise sites would use GIFs or something like this, which is much less efficient.

Re:JSMpeg – Decode It Like It's 1999 by Crinus on Tuesday May 07, 2019 @11:01AM (#19850103)
Well, this allows to autoplay even if not muted :-P.

https://jsmpeg.com/perf.html

Re:JSMpeg – Decode It Like It's 1999 by throwaway55554 on Tuesday May 07, 2019 @07:49AM (#19848545)
This would be very user hostile.
Re:JSMpeg – Decode It Like It's 1999 by Crinus on Tuesday May 07, 2019 @08:19AM (#19848716)
You mean user engagement will improve, right? :-P
Re:JSMpeg – Decode It Like It's 1999 by ahoka on Tuesday May 07, 2019 @07:54AM (#19848576)
Like every other form of advertising.
Re:JSMpeg – Decode It Like It's 1999 by tomhoward on Tuesday May 07, 2019 @06:24AM (#19848043)
> it's just a proof that it CAN be done

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.

Re:JSMpeg – Decode It Like It's 1999 by larvaetron on Tuesday May 07, 2019 @11:57AM (#19850681)
> it's just a proof that it CAN be done, rather than a practical solution.

Thankfully this is Hacker News, not Practical News.

Re:JSMpeg – Decode It Like It's 1999 by speps on Tuesday May 07, 2019 @06:31AM (#19848094)
Straight from the minified version:

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

Re:JSMpeg – Decode It Like It's 1999 by PostOnce on Tuesday May 07, 2019 @05:40AM (#19847857)
Not stressing my 5 year old laptop out too much.