Javascript developers have two options to work with GPAC, the most appropriate solution depends on the project's goal:
Javascript Filters¶
The JS filter API makes it easy to extend gpac using the internal QuickJS runtime, giving access to the Filter API for frame and packet processing, but also APIs for adaptative streaming, compositing, storage, ...
Some of the gpac built-in filters - eg. avgen, avmix - are actualy implemented as custom javascript filters. Their source code can be found under theshare/scripts/jsf
directory.
NodeJS¶
GPAC's NodeJS bindings allow writing custom NodeJS applications. It differs slightly from the Javascript Filters API available in the QuickJS runtime.