HTML basic player

This is the current summerized HTTPAPI, should be no difficult for programmer :slight_smile:

httpapi.asp?command=getStatusEx
httpapi.asp?command=getPlayerStatus
httpapi.asp?command=setPlayerCmd:pause
httpapi.asp?command=setPlayerCmd:resume
httpapi.asp?command=setPlayerCmd:onepause
httpapi.asp?command=setPlayerCmd:prev
httpapi.asp?command=setPlayerCmd:next
httpapi.asp?command=setPlayerCmd:seek:SECONDS
	SECONDS: seconds to seek to, should be less than duration
httpapi.asp?command=setPlayerCmd:vol:VOL
	VOL: [0,100] volume
httpapi.asp?command=setPlayerCmd:mute:MUTE
	MUTE: [0,1]
		0:un-mute
		1:mute
httpapi.asp?command=setPlayerCmd:loopmode:MODE
	MODE: [0,1,2,3,4]
		0:sequence+loop
		1:single+loop
		2:shuffle+loop
		3:shuffle
		4:sequence
httpapi.asp?command=setPlayerCmd:play:URL
	URL: url encoded URL
httpapi.asp?command=getFileInfo:INDEX:RANGE
	* output might be cut 
httpapi.asp?command=setPlayerCmd:slave_vol:VOL
httpapi.asp?command=setPlayerCmd:slave_mute:MUTE
httpapi.asp?command=setPlayerCmd:playLocalList:INDEX
httpapi.asp?command=setPlayerCmd:slave_channel:CHANNEL
	CHANNEL: [0,2]
		0:STEREO
		1:LEFT
		2:RIGHT
httpapi.asp?command=ConnectMasterAp:ssid=SSID:ch=4:auth=OPEN:encry=NONE:pwd=:chext=0
	Direct connect mode, SSID: HEX encoded wifi ssid, eg: ABC = 414243
httpapi.asp?command=ConnectMasterAp:JoinGroupMaster:eth192.168.0.124:wifi0.0.0.0
	Router mode, slave device will remain the local address
httpapi.asp?command=setMultiroomLogic:LOGIC
	LOGIC: [0,2]
		0:Ethernet first, then WIFI direct
		1:Ethernet first, then Router mode, then WIFI direct mode
		2:Reserved.
httpapi.asp?command=multiroom:Ungroup
httpapi.asp?command=multiroom:SlaveVolume:SLAVE_IP:VOL
	SLAVE_IP: IP of slave device, can get from command getSlaveList
httpapi.asp?command=multiroom:SlaveMute:SLAVE_IP:MUTE
httpapi.asp?command=multiroom:getSlaveList
httpapi.asp?command=multiroom:SlaveUnMask:SLAVE_IP
httpapi.asp?command=multiroom:SlaveKickout:SLAVE_IP
httpapi.asp?command=multiroom:SlaveChannel:SLAVE_IP:CHANNEL
httpapi.asp?command=setShutdown:SECONDS
	SECONDS: [-1|0|N]
		-1:cancel
		0:immediately 
		N:shutdown after N seconds
httpapi.asp?command=getShutdown
httpapi.asp?command=setPlayerCmd:switchmode:SRC
	SRC: [line-in|line-in2|bluetooth|optical|RCA|udisk|wifi|co-axial]
httpapi.asp?command=PromptEnable
httpapi.asp?command=PromptDisable
httpapi.asp?command=setDeviceName:NAME
httpapi.asp?command=restoreToDefault
httpapi.asp?command=setSSID:SSID
httpapi.asp?command=MCUKeyShortClick:PRESET
	PRESET: [0,10]
3 Likes