99
1
SW
9.2.4.1
PRESET VARIABLES
presetNN.settings.bname
Preset name
presetNN.settings.eventList
List of enabled events separated by % (GPI1%GPI2%SILENCE)
presetNN.settings.bPlaylist
1 to overwrite playlist
presetNN.settings.loadPlaylist
url of the playlist. Must be enabled using presetNN.settings.bPlaylist
presetNN.settings.mediaAlias
Alias of the enabled playlist. It appears as source
presetNN.settings.bStatus
1 to overwrite status
presetNN.settings.status
Preset status must be PLAY or STOP
presetNN.settings.bVolume
1 to overwrite preset volume
presetNN.settings.volume
Preset volume in % (from 0 to 100)
presetNN.settings.mute
1 indicates mute, 0 to unmute
presetNN.settings.bPlayMode
1 to overwrite play mode
presetNN.settings.playMode
RANDOM or SEQUENTIAL
presetNN.settings.bRepeatMode 1 to overwrite repeat mode
presetNN.settings.repeatMode
PLAY ALL, PLAY ONE, REPEAT ALL or REPEAT ONE
presetNN.settings.bFadeMode
1 to overwrite fade mode
presetNN.settings.fadeMode
OFF, XFADE or FADE
presetNN.settings.bStereo
1 to overwrite stero/mono mode
presetNN.settings.stereo
MONO or STEREO
•
All variables are optional.
•
NN indicates a number 01 to 20
9.2.4.2
PRESET EXAMPLES
At this moment you can load the configured preset with this instruction:
ep.PLAYER_open({preset=3})
require "PLAYER"
ep = PLAYER.new()
ep.CFG_set("preset03",
"settings",
"bname",
"My
first
preset")
ep.CFG_set("preset03", "settings", "bPlaylist", 1)
ep.CFG_set("preset03", "settings", "mediaAlias", "Alias of my first preset")
ep.CFG_set("preset03", "settings", "bVolume", 1)
ep.CFG_set("preset03",
"settings",
"volume",
100)
ep.CFG_set("preset03",
"settings",
"loadPlaylist",
"mmc://")
ep.CFG_set("preset03", "settings", "eventList", "GPI1%SILENCE")
ep.CFG_commit("preset03")
ep.PRESET_reload(3)