This function is deprecated.
int sm_avfrec_datafeed_connect(struct sm_avfrec_datafeed_connect_parms *datafeedp)
typedef struct sm_avfrec_datafeed_connect_parms {
tSMAVFrecId avfrec; /* in */
tSMDatafeedId data_source; /* in */
} SM_AVFREC_DATAFEED_CONNECT_PARMS;
Connects a datafeed to a AVF recorder. The
data_source
must be a datafeed obtained from
sm_vmprx_get_datafeed()
Datafeed connections can only be made between objects allocated
on the same tSMModuleId.
The AVF recorder
avfrec
will receive any data that is generated by the output task from which
data_source
was derived. Note that the type of data accepted as input - e.g. AVF
AMR-NB audio stream, linear audio stream, AVF H.263 video stream, etc.
- is set by
sm_avfrec_start()
and that it is the application writer's responsibility to ensure that
the output task provides data of the correct type.
To disconnect a AVF recorder from a datafeed, specify
kSMNullDatafeedId as the tSMDatafeedId in
data_source
Requires the module datafeed to have been downloaded.
0 if call completed successfully, otherwise a standard error.
This function is part of the Prosody Audio Video Format (AVF) API.