Using serial commands to create playlists – FOCUS Enhancements 3.2 User Manual

Page 144

Advertising
background image

External Control Commands

130

Using Serial Commands To Create Playlists

You can create a playlist “on the fly” with the mpgLoadDef and
mpgLoadNextDef commands. These two commands are used to
define a “default” (i.e. looping) playlist of MPEG files.

To make a playlist:

call mpgClearDef to clear the old default playlist.

call mpgLoadDef to specify the first file in the list.

call mpgLoadNextDef once for each additional file, the
order they should play.

wait a few seconds for the files to load.

call mpgPlay to start playback.

If you want to create a playlist that only plays once, use the mpgLoad and

mpgLoadNext commands as follows:

call mpgClearDef to clear the old default playlist.

call mpgLoad to specify the first file in the list.

call mpgLoadNext once for each additional file, the order
they should play.

wait a few seconds for the files to load.

call mpgPlay to start playback.

To interactively insert “one time” files into the default playlist you
can use the mpgLoad and mpgLoadNext commands without
calling mpgClearDef. A list of files specified with these commands
will interrupt the default playlist and play once. When the last file
specified ends, the default playlist will resume, from the point
where it was interrupted.
The last value passed to mpgSetInitOnOpen effect the type of
transition when mpgLoad or mpgLoadDef is called. For seamless
transitions, send mpgSetinitOnopen 0 before the load commands.

Advertising