Connection management

You must connect to mm-renderer before you can use it to define contexts, configure inputs and outputs, and issue playback commands.

The mmr_connect() function returns a valid connection handle, when successful. This handle must be passed in to the subsequent API calls for creating or opening a context. When the context is created or opened, it returns another handle that you must use for all media operations related to that context.

The connection handle isn't needed again until you're finished with the connection. At this point, you must close the connection by calling mmr_disconnect().