Since 0.6.1.4060, MediaCoder comes with XML-RPC APIs through which MediaCoder can be controlled by any XML-RPC client both locally and remotely. The APIs are not yet finalized, here lists some of them and you can see their effects right now.




mc.prefs.get(string key)

  • Function: retrieving the value of a parameter
  • Parameter: parameter path
  • Return value: value of the parameter (string/int/double/boolean)


mc.prefs.set(string key, string/int/double/boolean value)

  • Function: retrieving the value of a parameter
  • Parameter 1: parameter path
  • Parameter 2: parameter value
  • Return value: successful or not (boolean)
=

mc.queue.get(int index)

  • Function: retrive information of an item in the queue
  • Parameter: 0-based index
  • Return value:
    information of the requested item (structure)

    • filename (string)
    • filesize (int)
    • duration (int)
    • begin (int)
    • end (int)


mc.queue.add(string filename, int index)

  • Function: retrieving the value of a parameter
  • Parameter 1: file name
  • Parameter 2: index for insertion in the queue, -1 for appending, -2 for clear before adding
  • Return value: successful or not (boolean)


ui.dialogs.showTime()

  • Function: show time dialog
  • Return value: successful or not (boolean)


ui.dialogs.showCropper()

  • Function: show cropper dialog
  • Return value: successful or not (boolean)


ui.dialogs.showMain(boolean shown)

  • Function: show/hide main window
  • Parameter: whether to show or to hide
  • Return value: successful or not (boolean)


ui.jobs.start()

  • Function: start jobs
  • Return value: successful or not (boolean)


ui.jobs.stop()

  • Function: stop jobs
  • Return value: successful or not (boolean)