Prosody Audio Video Format (AVF): API: sm_avfrec_datafeed_connect

This function is deprecated.

Prototype Definition

int sm_avfrec_datafeed_connect(struct sm_avfrec_datafeed_connect_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_avfrec_datafeed_connect_parms {
	tSMAVFrecId avfrec;					/* in */
	tSMDatafeedId data_source;				/* in */
} SM_AVFREC_DATAFEED_CONNECT_PARMS;

Description

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.

Fields

avfrec (Deprecated)
The AVF recorder that will receive and process the data
data_source (Deprecated)
The datafeed acting as a source of data for the AVF recorder

Returns

0 if call completed successfully, otherwise a standard error.


This function is part of the Prosody Audio Video Format (AVF) API.