mmr_input_attach()

Attach an input

Synopsis:

#include <mm/renderer.h>
int mmr_input_attach( mmr_context_t *ctxt, 
                      const char *url, 
                      const char *type )

Arguments:

ctxt
A context handle.
url
The URL of the new input.
type
The input type. You must place quotes around the text naming the input type, which can be one of the following:
track
One track played in isolation from the rest of the media
playlist
A track sequence, with ordering information and track metadata contained in a playlist file
autolist
A single track formatted as a playlist; you can play the track continuously using the repeat parameter

Library:

mmrndclient

Description:

Attach an input track or playlist. If the context already has an input, the function detaches it first.

The input type affects how mm-renderer responds to certain playback requests. For example, when seeking to track positions using mmr_seek(), you must specify the desired position differently for each of the supported input types. Also, mmr_list_change() and mmr_track_parameters() apply to "playlist" only.

Which input types are supported depends on the configuration of mm-renderer; however, the playback behavior for a given input type does not depend on the configuration.

Valid input URLs for the "track" and "autolist" input types are:

Valid input URLs for the "playlist" input type are:

Returns:

Zero on success, -1 on failure (use mmr_error_info()).

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes

Example:

See the mmr_output_attach() example for a demo of how to select one audio device to use.