3 ms·
I'm not sure I like this idea. This means even less control over my media files. Not only do they get streamed, but also the software that views them. I'm very
by captainmuon 10y ago
I'm not sure I like this idea. This means even less control over my media files. Not only do they get streamed, but also the software that views them. I'm very likely not going to be able to use this offline, or outside of the browser in other apps. It's likely going to be slower, unless someone adds one-off extensions to JS to allow access to hardware decoding.
What would I suggest otherwise? Don't laugh, but something like NPAPI or ActiveX (COM). We had all these great component models in the 2000s. We could put them in a lightweight VM or a container for security. Instead of creating a window, we could let them directly draw to a shared-memory texture, which would solve some usability problems. I believe we could solve all problems that these technologies had nowadays.
Fundamentally, something like this belongs into the OS, not the browser (or any application). You should be able to use every codec and widget from other applications. We had that around 2000 with COM and VB6: Drag the media player widget from a pallette, drop it on your form, write a line of code to load a video.
Also, nobody gets to decide what codecs you are allowed to use or not for "political" or strategic reasons. Can't play something exotic? Just download the best-rated codec from your OSes app store (remember, which would run in a sandbox). Creating content and want to make sure everybody can see it without installing? Do what you do already today, and use the greatest common codec shipped will all OSes.
- fdgdasfadsf 10y agoYou put a lot of faith in sandboxes... They aren't magic.
- captainmuon 10y agoNeither is a browser runtime. I would even say running code in a browser could be more dangerous, because you have a huge complexity (HTML+JS+Network Stack+3D Engine+kichen sink in modern browsers) and thus a large attack surface. Whereas if you built an isolation layer around a OS process (or bytecode), you can restrict the code to do only what it has to (render to audio and video buffers), and you have to audit the wrapper (sandbox/VM/runtime), which is much smaller than the whole browser. The reason browsers are relatively safe now is that so many brilliant people are working really hard on them, not because they are inherently safe.
- fdgdasfadsf 10y agoThis is an interesting perspective that I had not considered.
- deleted 10y ago[deleted]