Media Jukebox & Media
Center
Command Line parameters
(last updated September 9, 2004)
(required Media Jukebox 8.0.317 or later)
Introduction
Media Jukebox can be controlled by command line parameters. Designing the Media Jukebox command line interface, we focused mainly on power and simplicity. Following these principals, we split the interface into two parts: (1) Execute parameters, and (2) Control parameters.
Execute Parameters
Executing one of the following parameters starts Media Jukebox / Media Center if it's not running.
NOTE: All Media Jukebox commands must be forwarded to MJExtMan.exe
Playback Execute Parameters
mjextman.exe [filename] plays specified file. This command behaves the same way as /Play command.
mjextman.exe /Play [filename] plays specified files. Filename parameter can point to a specific file or URL as well as to a location in Media Jukebox organization tree. Any item in the tree, except for CD & DVD and Handhelds can be accessed by replacing filename parameter with following command, TREEPATH=location of an item on the tree (e.g. TREEPATH=Playlists\Top Hits). To play items under the CD & DVD and Handhelds item use DEVICE=drive letter (e.g. DEVICE=G:) Note that filenames can be separated by pipes. (i.e. c:\1.mp3|c:\2.mp3)
mjextman.exe /Append [filename] appends specified file to the currently playing list of files. Also see notes for /Play command on replacing filename parameter with TREEPATH and DEVICE commands.
mjextman.exe /PlayReplace [filename] works like /Play except that it always clears Playing Now and replaces it with the new files (Media Center specific)
Note: Playback execute parameters can be issued to a specific zone by adding Zone=x as one of the filenames in the pipe delimited filename list. An example would be "mjextman.exe /Append c:\1.mp3|c:\2.mp3|zone=1" (requires Media Center 10 or later)
Media Core Commands (Media Center only)
mjextman.exe /MCC [Command],[Param] sends the desired command to Media Center ([Param] is optional, and will default to 0)
See the Media Core Command list here: Media Core Command List
Other Execute Parameters
mjextman.exe /Import [filename] imports specified file into MJ library and launches Media Jukebox.
mjextman.exe /Connect m01p://[ip address or host name] establishes connection to a remote Media Server
mjextman.exe /SilentImport [filename] imports specified file into MJ library but does not launch Media Jukebox.
mjextman.exe /Clear [mode] clears Playing Now playlist. If mode is empty, all items will be removed. If mode is DontRemoveCurrent, currently playing file will not be removed.
mjextman.exe /Mode [modename] if the app is not running the call starts MJ in the specified mode, if it's already running the call switches Media Jukebox to the specified mode. List of Mode names: Megame, Minime, Fullscreen, Theater, Windowed. If modename is empty MJ will start in user defined mode.
mjextman.exe /Start starts Media Jukebox or brings it to top.
mjextman.exe /Close closes Media Jukebox
mjextman.exe /Power starts Media Jukebox if it's not running, or closes it if it is.
Command Parameters
command parameters control functionality of running Media Jukebox. If MJ is not running, the following commands will be ignored.
mjextman.exe /Command Play starts playback of the selected track(s).
mjextman.exe /Command Pause toggles between play and pause states.
mjextman.exe /Command Stop stops playback.
mjextman.exe /Command Next skips to the next track.
mjextman.exe /Command Previous jumps to previous track.
mjextman.exe /Command FastForward jumps 5 seconds forward.
mjextman.exe /Command Rewind jumps 5 seconds back.
mjextman.exe /Command Mute mutes the sound.
mjextman.exe /Command VolumeUp [Value] increases sound by Value. Default is 5%
mjextman.exe /Command VolumeDown [Value] decreases sound by Value. Default by 5%
mjextman.exe /Command VolumeSet [Value] sets main volume. If value is not specified 50% is used.
mjextman.exe /Command ToggleShuffle toggles shuffle mode
mjextman.exe /Command ToggleContinuous toggles continuous mode
Support
If you have questions or concerns not addressed by this SDK, or just have suggestions for making the SDK more understandable, please visit our developer's forum