Exported symbols for GPAC NodeJS.
More...
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.
◆ init()
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.
- Parameters
-
mem_track | mem tracker mode |
profile | profile name, null for default |
- Returns
◆ e2s()
DOMString e2s |
( |
long |
err | ) |
|
convert error value to string message
- Parameters
-
- Returns
- string
◆ set_logs()
void set_logs |
( |
DOMString |
logs, |
|
|
boolean |
reset = false |
|
) |
| |
set log tools and levels - see gf_log_set_tools_levels
- Note
- Make sure you have destroyed all associated gpac resources before calling this !
- Parameters
-
logs | |
reset | if true, resets all logs to default |
- Returns
◆ sys_clock()
unsigned long sys_clock |
( |
| ) |
|
◆ sys_clock_high_res()
unsigned long long sys_clock_high_res |
( |
| ) |
|
◆ set_args()
void set_args |
( |
Array |
args | ) |
|
set libgpac arguments - see gf_sys_set_args
- Parameters
-
args | Array of strings, the first string is ignored (considered to be the executable name) |
◆ set_rmt_fun()
void set_rmt_fun |
( |
function |
callback | ) |
|
set profiler (Remotery) callback - see gf_sys_profiler_set_callback
- Parameters
-
callback | function for Remotery message, takes a single string parameter and no return values |
◆ rmt_log()
void rmt_log |
( |
DOMString |
text | ) |
|
◆ rmt_send()
void rmt_send |
( |
DOMString |
text | ) |
|
◆ rmt_on()
◆ rmt_enable()
void rmt_enable |
( |
boolean |
do_enable | ) |
|
◆ on_event()
GPAC event proc callback, initially set to null
- Parameters
-
evt | the user event being dispatched |
- Returns
- true to cancel the event
◆ version
attribute readonly DOMString version |
◆ copyright
attribute readonly DOMString copyright |
◆ copyright_cite
attribute readonly DOMString copyright_cite |
libgpac full copyright notice
◆ abi_major
attribute readonly unsigned long abi_major |
◆ abi_minor
attribute readonly unsigned long abi_minor |
◆ abi_micro
attribute readonly unsigned long abi_micro |
◆ FilterSession
filter session constructor
◆ FilterEvent
filter session constructor
◆ FileIO