94
1
SW
PLAYER_repeat(nRepeat)
PLAYER_mode(nPlayMode)
PLAYER_fade(nFade)
9.2.1
CONVENTIONS
•
n
indicates number
•
b
indicates Boolean
•
txt
indicates text
9.2.2
PLAYER FUNCTIONS
Access player functions like repeat, fade, etc.
Functions
Function:
Description:
Set the player output mode to stereo or mono
Parameters:
bStereo
–
boolean
, set to true for stereo output, otherwise mono output is selected
Function:
Description:
Set the player fade mode
Arguments:
nFade
–
integer
0-OFF, 1-XFADE, 2-FADE
Function:
Description:
Set the player playlist sequence mode
Arguments:
nPlayMode
–
integer
0-SEQUENTIAL, 1-RANDOM
Function:
Description:
Set the player repeat mode
Arguments:
nRepeat
–
integer
0-PLAY ALL, 1-PLAY ONE, 2-REPEAT ALL, 3-REPEAT ONE
Function:
Description:
Get the player statistics and status
Return:
String
–
xml string containing all the player status
In the next example you could see how to obtain the player stats and how to parse it using
cjson library.
PLAYER_stereo(bStereo)
PLAYER_getStats()
require "PLAYER"