HTML basic player

Here is my first attempt for a web player

I still need the API for Input and Sub player

I currently host it on a raspberry pi with apache

2 Likes

Looks interesting @NikoNy. Will give it a try when I have some time on my hands :slightly_smiling_face:

The brand is Arylic, not Acrylic :rofl:, anyway, good job! What kind of API you want?

Hi, thank you for the feedback. I need the API for Input change (BT, AUX, etc.) and the API to have a unit as a slave. Thank you

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]
2 Likes

Oh, just came across this. That’s a great overview! But what would also be very exciting is an outline of the particular response to a request with all current keys in this response. I have found that the documentation (the PDF) from 2014 differs greatly from what I myself get back from my devices. :smiley:

@zpl1025 While writing the new API documentation, I stumbled accross two commands. These are SlaveMask and SlaveUnMask.

First: The command SlaveMask seem to be missing in you list above.
Second: What exactly do they mean? The PDF describes:

If slave is masked, it will act as a standalone device

Acting as standalone device in multiroom? :thinking:

I’ll find a time to test and check all the commands. Currently I’m also not sure.

1 Like

I made some changes into the player, I have also used jQuery to update IP address, as it’s hardcoded. It will let user input the IP address to connect and also show the status where it’s connect to.

I am still working on it.

1 Like

@arckal keep going. Would like to test soon :slightly_smiling_face:

Please contribute it to the git or send it to me and I’ll update it wit credit