On 2014-11-24 4:12 PM, Zhang Peixuan wrote:

> I'm a programmer, I want to develop plug-ins to extend the functions of
> Firefox. I want to add some video decoder support (such as HEVC) to Firefox
> by using plug-ins.

If you mean plug-ins in the sense of https://addons.mozilla.org/ this
isn't possible. Those can only hook behaviour changes through xpcom or
js-ctypes. The format white-listing and decoder dispatch happens in pure
C++ code, and there's no way to affect that without doing a separate
build of the gecko engine.

> My goal is to play hevc video just by writing html5 <video> tags can play
> hevc video (don't add JavaScript code). I just want to write HECV decoder
> by plus-ins, is it possible?

We are developing a 'Gecko Media Plugin' interface which we're using for
loading the OpenH264.org decoder implementation as a separate plug-in.
That might be a useful place to start for a project like this, although
the complete plumbing hasn't been added since OpenH264 doesn't support
main or high profiles yet.

http://dxr.mozilla.org/mozilla-central/source/dom/media/gmp/gmp-api

However, you'll still have to make custom builds of Firefox for your
plug-in to be used. Mozilla tries hard to limit the codecs exposed to
web pages for strategic reasons. Convincing the organization to allow an
HEVC plugin in the official Firefox will be a difficult battle.

There is some interest in supporting codecs implemented in javacript, so
that's another avenue you might consider. We especially need research
into what platform features would help implementation performance: simd
extensions to js, webgl extensions, interfaces to have the native
playback code call a js decoder, etc.

Hope that helps, and thanks for your interest in Firefox.

 -r

_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to