/pps/services/multimedia/renderer/control

The mm-renderer service listens for commands from the HMI on this control object

Publishers
Any app
Subscribers
mm-renderer

Commands

Note: The commands correspond to functions defined in renderer.h. For example, the contextOpen command maps to mmr_context_open(). For more information, see "Multimedia Renderer API" in the Multimedia Renderer Developer's Guide.
Command Parameters
commandSend
  • ctxt (the context handle)
  • cmd (command string)
contextClose ctxt (the context handle)
contextCreate
  • name (the context name)
  • flags (must be 0)
  • mode (file permissions for the context directory)
contextDestroy ctxt (the context handle)
contextOpen name (the context name)
contextParameters
  • ctxt (the context handle)
  • parms (the dictionary object containing the parameters to set)
inputAttach
  • ctxt (the context handle)
  • url (the URL of the new input)
  • type ("track", "playlist", or "autolist")
inputDetach ctxt (the context handle)
inputParameters
  • ctxt (the context handle)
  • parms (the dictionary object containing the parameters to set)
listChange
  • ctxt (the context handle)
  • url (the URL of the new playlist)
  • delta (difference between position of the current track on the old and new lists)
outputAttach
  • ctxt (the context handle)
  • url (the URL of the new input)
  • type ("audio", "video", or "file")
outputDetach
  • ctxt (the context handle)
  • output_id (the output ID number)
outputParameters
  • ctxt (the context handle)
  • output_id (the output ID number)
  • parms (the dictionary object containing the parameters to set)
play ctxt (the context handle)
seek
  • ctxt (the context handle)
  • position (the position to seek to)
speedSet
  • ctxt (the context handle)
  • speed (the new play speed)
stop ctxt (the context handle)
trackParameters
  • ctxt (the context handle)
  • index (an index within the current playlist windoow; 0 for default)
  • params (the track parameters for the playlist; NULL to reset to default)

Example

Suppose you want to attach an input to a context and play the track /macqnx/RCPS_SuckerPunchTH_M2_TestFile.mpg. You would write this command to the control object:

echo 'msg::inputAttach\ndat:json:{"ctxt":0,"url":"/macqnx/RCPS_SuckerPunchTH_M2_TestFile.mpg","type":"track"}' >> /pps/services/multimedia/renderer/control