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, long pid_idx=-1, DOMString link_args=null) |
void | reconnect (long pid_idx=-1) |
DOMString | probe_link (long pid_idx, DOMString name) |
DOMString | get_destinations (long pid_idx=-1) |
PropertyValue | ipid_prop (unsigned long idx, DOMString 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) |
PidStatistics | ipid_stats (unsigned long idx, unsigned long mode=0) |
PidStatistics | opid_stats (unsigned long idx, unsigned long mode=0) |
_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, |
long | pid_idx = -1 , |
||
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 |
pid_idx | index of pid to relink, negative value means all output pids |
link_args | link options |
void _Filter::reconnect | ( | long | pid_idx = -1 | ) |
reconnect the filter output - see gf_filter_set_source and gf_filter_reconnect_output
pid_idx | index of output pid to reconnect, -1 for all pids |
DOMString _Filter::probe_link | ( | long | pid_idx, |
DOMString | name | ||
) |
Resolves link from given output pid of filter to a filter description. The described filter is not loaded in the graph - see gf_filter_probe_link
pid_idx | 0-based index of the output pid |
name | filter description to link to; this can be any filter description |
DOMString _Filter::get_destinations | ( | long | pid_idx = -1 | ) |
Gets all possible destination filter for this filter or one of its output PID - see gf_filter_get_possible_destinations
pid_idx | 0-based index of the output pid, use -1 to check all output pids |
PropertyValue _Filter::ipid_prop | ( | unsigned long | idx, |
DOMString | 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) |
PidStatistics _Filter::ipid_stats | ( | unsigned long | idx, |
unsigned long | mode = 0 |
||
) |
get statistics on input pid
idx | index of input pid |
mode | search mode for stats (one of GF_STATS_XXX) |
PidStatistics _Filter::opid_stats | ( | unsigned long | idx, |
unsigned long | mode = 0 |
||
) |
get statistics on output pid
idx | index of input pid |
mode | search mode for stats (one of GF_STATS_XXX) |
_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 and httpout for the current time
For DASH, the object must implement the methods of the _DASHCustomAlgorithm interface For DASH, the object must implement the methods of the _HTTPRequestHandler 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