Prosody RTP processing: API: sm_vmprx_get_datafeed

Prototype Definition

int sm_vmprx_get_datafeed(struct sm_vmprx_datafeed_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_vmprx_datafeed_parms {
	tSMVMPrxId vmprx;					/* in */
	tSMDatafeedId datafeed;					/* out */
} SM_VMPRX_DATAFEED_PARMS;

Description

Request a datafeed identifier from a VMP[rx]. This identifer can subsequently be used in a call to any of the *_datafeed_connect() functions to connect the output from the VMP[rx] to a destination. It is valid until the VMP[rx] is destroyed. Datafeed connections can only be made between objects allocated on the same tSMModuleId.

Requires the module datafeed to have been downloaded.

Fields

vmprx
The VMP[rx] from which to obtain a datafeed
datafeed
The datafeed object associated with the VMP[rx]

Returns

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


This function is part of the Prosody RTP processing API.