Playing media
Playing media in mm-renderer involves several steps:
-
Connect to mm-renderer using the function mmr_connect().
-
Create a new context and set the appropriate context parameters. Use the functions mmr_context_create() and mmr_context_parameters().
-
Attach the output and set the appropriate output parameters. Use the functions mmr_output_attach() and mmr_output_parameter().
-
Attach the input and set the appropriate input parameters. Use the functions mmr_input_attach()) and mmr_input_parameters().
-
Issue a playback command for the context by calling mmr_play().
The media starts to play.