Prosody Audio Video Format (AVF): API: sm_avfplay_get_datafeed

This function is deprecated.

Prototype Definition

int sm_avfplay_get_datafeed(struct sm_avfplay_datafeed_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_avfplay_datafeed_parms {
	tSMAVFplayId avfplay;					/* in */
	tSMDatafeedId datafeed;					/* out */
} SM_AVFPLAY_DATAFEED_PARMS;

Description

Request a datafeed identifier from a AVF player. This identifer can subsequently be used in a call to any of the *_datafeed_connect() functions to connect the output from the AVF player to a destination. It is valid until the AVF player is destroyed. Note that the type of data to be output - e.g. AVF AMR-NB audio stream, linear audio stream, AVF H.263 video stream, etc. - is set by sm_avfplay_start() and that it is the application writer's responsibility to ensure that any task (e.g. VMP[tx]) connected to the AVF player's datafeed is able to process this data. Datafeed connections can only be made between objects allocated on the same tSMModuleId.

Requires the module datafeed to have been downloaded.

Fields

avfplay (Deprecated)
The AVF player from which to obtain a datafeed
datafeed (Deprecated)
The datafeed object representing the signal from the AVF player.

Returns

0 if call completed successfully, otherwise a standard error such as:


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