![]() |
libgpac
Documentation of the core library of GPAC
|
import"nodejs.idl";
Public Member Functions | |
void | remove () |
void | update (DOMString name, DOMString value) |
void | set_source (_Filter src, DOMString link_args=null) |
void | set_source_restricted (_Filter src, DOMString link_args=null) |
void | insert (_Filter f, DOMString link_args=null) |
PropertyValue | ipid_prop (unsigned long idx, DOMStreing prop_name) |
void | ipid_enum_props (unsigned long idx, function callback_fun) |
PropertyValue | opid_prop (unsigned long idx, DOMString prop_name) |
void | opid_enum_props (unsigned long idx, function callback_fun) |
_Filter | ipid_source (unsigned long idx) |
Array | opid_sinks (unsigned long idx) |
Array | all_args () |
PropertyValue | get_info (DOMString info_name) |
FilterStatistics | get_statistics () |
void | require_source_id () |
void | bind (object interf) |
Data Fields | |
attribute readonly DOMString | name |
attribute readonly DOMString | ID |
attribute readonly unsigned long | nb_ipid |
attribute readonly unsigned long | nb_opid |
Filter object
void _Filter::remove | ( | ) |
remove this filter - see gf_filter_remove
void _Filter::update | ( | DOMString | name, |
DOMString | value | ||
) |
send option update to this filter - see gf_fs_send_update
name | name of option |
value | value of option |
void _Filter::set_source | ( | _Filter | src, |
DOMString | link_args = null |
||
) |
set a given filter as source for this filter - see gf_filter_set_source
src | source filter |
link_args | link options |
void _Filter::set_source_restricted | ( | _Filter | src, |
DOMString | link_args = null |
||
) |
set a given filter as restricted source for this filter - see gf_filter_set_source_restricted
src | source filter |
link_args | link options |
void _Filter::insert | ( | _Filter | f, |
DOMString | link_args = null |
||
) |
insert a given filter after this filter - see gf_filter_set_source and gf_filter_reconnect_output
f | _Filter to insert |
link_args | link options |
PropertyValue _Filter::ipid_prop | ( | unsigned long | idx, |
DOMStreing | prop_name | ||
) |
get an input pid property by name
idx | index of input pid |
prop_name | name of property |
void _Filter::ipid_enum_props | ( | unsigned long | idx, |
function | callback_fun | ||
) |
enumerate an input pid properties
idx | index of input pid |
callback_fun | callback function taking three parameters, prop_name (string), propval (PropertyValue) and proptype (int, GPAC property data type) |
PropertyValue _Filter::opid_prop | ( | unsigned long | idx, |
DOMString | prop_name | ||
) |
get an output pid property by name
idx | index of output pid |
prop_name | name of property |
void _Filter::opid_enum_props | ( | unsigned long | idx, |
function | callback_fun | ||
) |
enumerate an output pid properties
idx | index of output pid |
callback_fun | callback function taking three parameters, prop_name (string), propval (PPropertyValue) and proptype (int, GPAC property data type) |
_Filter _Filter::ipid_source | ( | unsigned long | idx | ) |
gets the filter at the source of an input pid
idx | index of input PID |
Array _Filter::opid_sinks | ( | unsigned long | idx | ) |
gets the list of destination filters of an output pid
idx | index of output PID |
Array _Filter::all_args | ( | ) |
gets all defined options / arguments for a filter
PropertyValue _Filter::get_info | ( | DOMString | info_name | ) |
gets a property info on a filter - see gf_filter_get_info and gf_filter_get_info_str
info_name | property to query |
FilterStatistics _Filter::get_statistics | ( | ) |
gets the statistics of a filter - see gf_filter_get_stats
void _Filter::require_source_id | ( | ) |
enforces sourceID to be present for output pids of this filter - see gf_filter_require_source_id
void _Filter::bind | ( | object | interf | ) |
Binds the given object to the underlying filter for callbacks override - only supported by DASH demuxer for the current time
For DASH, the object must derive implement the methods of the _DASHCustomAlgorithm interface
interf | interface object to bind |
attribute readonly DOMString _Filter::name |
name of the filter, readonly - see gf_filter_get_name
attribute readonly DOMString _Filter::ID |
ID of the filter, readonly - see gf_filter_get_id
attribute readonly unsigned long _Filter::nb_ipid |
number of input pids for that filter, readonly - see gf_filter_get_ipid_count
attribute readonly unsigned long _Filter::nb_opid |
number of output pids for that filter, readonly - see gf_filter_get_opid_count