Ecler PLAYER ONE Manual De Usuario página 106

Ocultar thumbs Ver también para PLAYER ONE:
Tabla de contenido

Publicidad

In the next example you could see how to obtain the player stats and how to parse it using
cjson library.
require "PLAYER"
ep=PLAYER.new()
json_text=ep.PLAYER_getStats()
print(json_text)
cjson=require "cjson"
value=cjson.decode(json_text)
print("SourceList[3]=" ..
value.SourceList[3])
output
{"title":"The White Stripes - Seven Nation
Army","counter":"52:52","txtSource":"NET","status":1,"SourceList": ["","MMC","USB","DLNA","AIRPLAY","rock
alternativo"],"source":5,"preset":1,"volume":100,"txtVolume":"0dB","stereo":1,"repeat":2,"playmode":0,"fad
e":1,"
bootpreset1":0,"sp":1,"bitrate":"192","duration":"--:--","freq":"44.1","playlist_index":" 0001 /
0001","playlist_url":"mmc://radiobob-alternativerock-mp3-hq?
sABC=5n6s2sr8%230%23no8617362n29q2o435p17n54928n16s5%23gharva&amsparams=playerid:tunein;s
key:15 17236200","priority":""}
SourceList[3]=USB
Function:
PLAYER_queue(urlNextElem)
Description:
Add next playlist item. Using this function you can compose your own playlist. In order to do
a continous play it is necessary to queue next item prior to the end of the current one.
Arguments:
urlNextElem – url of the item to add
Function:
PLAYER_priority(urlElemePriority)
Description:
Use this function to play priority sounds over the normal playlist. It apply
Return:
String – url of the priority element
Function:
PLAYER_play()
Description:
If the player is paused or stopped use this function to start current loaded item reproduction,
otherwise the player is paused.
Function:
PLAYER_stop()
Description:
Use this function to stop the current player reproduction.
Function:
PLAYER_next()
Description:
Use this function to advance to the next item. It retains the play state after advance is done.
SW
106

Publicidad

Tabla de contenido
loading

Este manual también es adecuado para:

Player zero

Tabla de contenido