![]() |
libgpac
Documentation of the core library of GPAC
|
Exported symbols for GPAC NodeJS. More...
Collaboration diagram for GPAC module exports:Data Structures | |
| interface | _RMTClient |
Functions | |
| void | init (unsigned long mem_track=0, DOMString profile=null) |
| DOMString | e2s (long err) |
| void | set_logs (DOMString logs, boolean reset=false) |
| unsigned long | sys_clock () |
| unsigned long long | sys_clock_high_res () |
| void | set_args (Array args) |
| void | enable_rmtws (boolean enable) |
| boolean | on_event (_FilterEvent evt) |
Variables | |
| optional attribute function | rmt_on_new_client |
| attribute readonly DOMString | version |
| attribute readonly DOMString | copyright |
| attribute readonly DOMString | copyright_cite |
| attribute readonly unsigned long | abi_major |
| attribute readonly unsigned long | abi_minor |
| attribute readonly unsigned long | abi_micro |
| attribute _FilterSession | FilterSession |
| attribute _FilterEvent | FilterEvent |
| attribute _FileIO | FileIO |
Exported symbols for GPAC NodeJS.
This section documents the JavaScript API used to query the filter session.
Unless explictly stated, errors are handled through exceptions.
All constants from GPAC are exported in the module object (e.g. use gpac.GF_Err ...)
The API is very close to the GPAC python bindings.
| void init | ( | unsigned long | mem_track = 0, |
| DOMString | profile = null |
||
| ) |
initialize libgpac - see gf_sys_init
When loading the module, libgpac is innitialized with no memory tracking and the default profile. Use this function only if you need to change these settings. This must be called before any other calls to gpac.
| mem_track | mem tracker mode |
| profile | profile name, null for default |
Here is the caller graph for this function:| DOMString e2s | ( | long | err | ) |
convert error value to string message
| err | gpac error code (int) |
set log tools and levels - see gf_log_set_tools_levels
| logs | |
| reset | if true, resets all logs to default |
| unsigned long sys_clock | ( | ) |
get clock - see gf_sys_clock
| unsigned long long sys_clock_high_res | ( | ) |
get high res clock - see gf_sys_clock_high_res
| void set_args | ( | Array | args | ) |
set libgpac arguments - see gf_sys_set_args
| args | Array of strings, the first string is ignored (considered to be the executable name) |
| void enable_rmtws | ( | boolean | enable | ) |
enables websocket monitoring server - see gf_sys_enable_rmtws
define the rmt_on_new_client attribute to set callbacks
| enable | enable or disable server |
| boolean on_event | ( | _FilterEvent | evt | ) |
GPAC event proc callback, initially set to null
| evt | the user event being dispatched |
Here is the caller graph for this function:| optional attribute function rmt_on_new_client |
set the callback function when new clients connect to the websocket server the function shall take one parameter of type _RMTClient
| attribute readonly DOMString version |
libgpac version
| attribute readonly DOMString copyright |
libgpac copyright notice
| attribute readonly DOMString copyright_cite |
libgpac full copyright notice
| attribute readonly unsigned long abi_major |
libgpac major ABI - see gf_gpac_abi_major
| attribute readonly unsigned long abi_minor |
libgpac minor ABI - see gf_gpac_abi_minor
| attribute readonly unsigned long abi_micro |
libgpac micro ABI - see gf_gpac_abi_micro
| attribute _FilterSession FilterSession |
filter session constructor
| attribute _FilterEvent FilterEvent |
filter session constructor