4 ms·
The <video> tag also has a javascript model you have to learn, like with VLC. It gets video in junks, on request from the browser; if nobody's requesting chunks
by denton-scratch 5y ago
The <video> tag also has a javascript model you have to learn, like with VLC. It gets video in junks, on request from the browser; if nobody's requesting chunks, no chunks will be played. You can't play if there's nobody listening. It doesn't serve files. If you start a new item, it begins to play immediately - it doesn't seem to need to buffer.
I imagine your media channel thing can be done, but I haven't tried it or thought about it. Not my use-case!
It's not "genius", BTW - I'm no media expert, not even a very good programmer. I'm just a tinkerer with an itch to scratch. And there's no way I'm sharing my code - it's a pile of crap, permanent work-in-progress.
I like the <video> tag very much, because it's cross-browser, and (IMO) is easier to script than previous players.