Re:You click a link to a news site, to read an article that ...
by grishka on Sunday December 05, 2021 @10:47PM
(#29455904)
I don't understand why there isn't a browser feature that would simply disable all and any support for <video> and <audio> elements, or ask you a permission before a website can create any. It's really that simple. No need to try, and fail, to figure out which videos are "safe" to autoplay and which aren't. Let the user decide.
[ Parent
| on HN ]
Re:You click a link to a news site, to read an article that ...
by onion2k on Monday December 06, 2021 @12:22AM
(#29456459)
I've seen sites that autoplay video by implementing a JS h264 decoder that renders to a <canvas> element. Developers will go to significant lengths to work around browser permissions.
Re:You click a link to a news site, to read an article that ...
by grishka on Monday December 06, 2021 @12:58AM
(#29456642)
That's... actually viable? You can decode h264 in real time in JS with a single thread that also runs the UI?!
Sometimes I have this crazy thought that we maybe, just maybe, should undo all the JS performance optimizations in browsers. So JS again becomes the macro language for hypertext documents it's meant to be, not an "application platform".
Re:You click a link to a news site, to read an article that ...
by tux3 on Monday December 06, 2021 @03:50AM
(#29457621)
Oh, there's worse. Some video chat apps encode in software. The magical browser APIs don't always give you enough control to do what you want with the video stream, so they just output the video stream into a hidden canvas, screenshot the canvas 20 times a second, and throw the frames at ffmpeg.js ...
Re:You click a link to a news site, to read an article that ...
by zrm on Monday December 06, 2021 @01:11AM
(#29456726)
Or just have browsers disable javascript by default and require explicit permission to use it.
90+% of web pages shouldn't need it for anything.
Re:You click a link to a news site, to read an article that ...
by wruza on Monday December 06, 2021 @01:58AM
(#29456980)
Or make a dead-slow subset that doesn’t eat cpu cycles, but schedules 10-20 ops every 1ms. And then enable full-speed if the user asks. Ads guys would then resurrect a demoscene spirit out of it. Ah, dreams.
Re:You click a link to a news site, to read an article that ...
by onion2k on Monday December 06, 2021 @03:15AM
(#29457413)
I'd be a lot more in favour of ads if they had more copper effects and shadebobs.
Re:You click a link to a news site, to read an article that ...
by onion2k on Monday December 06, 2021 @02:11AM
(#29457057)
That's... actually viable?
Developers who do things like that probably aren't checking whether their code works well on any machines besides their own.
Re:You click a link to a news site, to read an article that ...
by pjmlp on Monday December 06, 2021 @01:36AM
(#29456867)
Easy, install Edge.
https://therecord.media/microsoft-silently-enables-super-dup...
Although I guess this isn't the answer you're looking for.
Re:You click a link to a news site, to read an article that ...
by olyjohn on Monday December 06, 2021 @07:01PM
(#29467481)
lol. This reminds me of IE's "Enhanced Security Mode" where they disabled pretty much everything in the browser. This was pre-configured on Windows Server (probably still is). The browser is pretty much useless in this state, so the only way to get what you needed from a browser was to make it "unsafe." Too unsafe for servers with experienced tech people using them, but just fine for the general public on a desktop.
Re:You click a link to a news site, to read an article that ...
by hiccuphippo on Sunday December 05, 2021 @11:43PM
(#29456243)
Makes me miss the days of Flash because I could block everything video, audio and animation related with FlashBlock.