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]
3 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

I’m testing it and it works great, although the configuration section is asking me a password.

@acarrasquero Welcome to the forum.

Try this link Arylic Audio HTTP API

Started, Designed & Arranged by @phranck, I contributed and then Arylic published :slight_smile:

Regards, Kevin

1 Like

@acarrasquero AS @NWT.Stuff already mentioned, please use the (now) official URL to read all documentations. The one I initially published is no longer available.

Btw: As I didn’t do it in the past, I have to say a big thank you to @NWT.Stuff for your contribution and really great work! :pray:t3:

1 Like

It was a really good experience for me (with your guidance :)) Your vision, effort, tenacity & hard work made this happen in non favourable working conditions (e.g. @zpl1025 and Arylic being so busy, me being not github compliant :joy:). I see regular evidence that this documentation is being used so you should be proud of yourself for kicking this off and in particular the end result.

1 Like

I solved an issue with the bluethoot with that documentation, thanks guys! I hope this keeps improving, I will do my best to contribute with it.

1 Like

@acarrasquero Alejandro

No worries, that’s the objective and you obviously have the right approach. Good luck with your projects.

It’s the “Power of this Forum” :muscle:

1 Like