Error information

Updated: April 19, 2023

The mm-renderer service stores information about any error that occurs when an API call is made. This information includes a code for the mm-renderer error type and other data specific to either the media protocol used or the underlying POSIX error.

It's good practice to check for errors after each API call, to promptly learn of any problems with the media configuration or playback. You can do this by examining the return code and if it indicates failure (e.g., by a non-zero value, often -1), calling mmr_error_info() to get information about the error that occurred. The actions to handle a given error type are a design choice.