Set input parameters
#include <mm/renderer.h>
int mmr_input_parameters( mmr_context_t *ctxt, strm_dict_t *parms )
Set parameters associated with the attached input.
Some mm-renderer plugins don't return errors when you provide unacceptable values for input parameters. Instead, these plugins revert bad parameters to their previous values or to their default values (for parameters that you set for the first time). To see which values were accepted or changed, client applications can examine the parameters that the Event API returned.
The input type and the URL format determine which input parameters you can set. Some parameters must be set before the input is attached, because setting them after attaching the input has no effect. All input parameters are cleared when the input is detached, whether explicitly through a call to mmr_input_detach() or implicitly when mmr_input_attach() is called to attach a new input, which causes mm-renderer to detach the current input.
When using the "autolist" or "track" input types with a URL that starts with audio:, you can set one of the following two parameters:
When the input URL starts with http: or https:, you can set the following parameters that map to libcurl options:
Zero on success, -1 on failure (use mmr_error_info().
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |