mm-pnp command line

Run mm-pnp to demonstrate how to access, extract, and play mediastore content

Synopsis:

mm-pnp [-c config_file] [-v[v...]] 

Options:

-c config_file
Specify a configuration file that defines synchronization and playback policies for specific device types.
If you don't provide a configuration file path, mm-pnp reads the default file of /etc/mm/mm-pnp.conf.
-v
Increase output verbosity. Messages are written to sloginfo.
The -v option is handy when you're trying to understand the operation of mm-pnp, but when lots of -v arguments are used, the logging becomes quite significant and can change timing noticeably. The verbosity setting is good for systems under development but should probably not be used in production systems or during performance testing.

Description:

The mm-pnp program demonstrates the process of detecting a new mediastore, uploading its media information to a database, and playing its media files.

The program constantly monitors the PPS mount objects to readily detect when the user attaches a mediastore. In response to this user action, mm-pnp invokes the multimedia services necessary to synchronize and play the mediastore's content.

You can modify the configuration file to customize how mm-pnp uses those other services to manage content read from a particular device type. These settings tell mm-pnp where to look in the filesystem to find media files, whether to automatically start playback, and more.

Once started, mm-pnp runs as a self-contained process that doesn't require any user input or accept any commands. The program remains active, responding as configured when the user attaches mediastores, until you forcibly terminate it with CtrlC or the kill() command.