3 ms·
> If you find a good enough codec, you can create a plugin yourself No, you can't. Gecko links directly with liboggplay to support <video> and <audio>. To hack
by blasdel 17y ago
> If you find a good enough codec, you can create a plugin yourself
No, you can't. Gecko links directly with liboggplay to support <video> and <audio>. To hack it to do something sane you'd have to fork both Gecko and XULrunner, and distribute your own builds of Firefox with unofficial branding.
- viraptor 17y agoThere are many ways to hijack the content. Are you sure you cannot make an extension that rewrites the page before the <video> tag is interpreted by the browser and injects some custom object instead (handled by the h264 plugin)? Actually, I just realised that noscript does a similar thing (proxy object instead of flash content) - so it has to be possible.
- ZeroGravitas 17y agoIf you're just wanting to display video then I'm fairly certain that Firefox will hand off any video you give it to an application that registers to handle it via the object tag. For example, I'm fairly certain that this how it reacts to stuff that Apple serves directly to quicktime (trailers and product promos), when you're on Linux.
- blasdel 17y agoFirefox doesn't do that, your NSAPI plugins do: on Linux there are plugins that wrap mplayer, vlc, or totem supporting the quicktime API in widespread use. Unfortunately all of them suck terribly -- seeking is always broken, they always find a way to do the wrong thing wrt progressive download, weirdass YUV->RGB artifacts after dropped keyframes, etc. You could write a new NSAPI plugin using ffmpeg that provides the <video> API but proxied through <object>, and package it in an XPI along with some greasemonkey-style extension code to rewrite the tags and provide the default playback UI.