support for HQplayer

Discuss Muso, or get help
Post Reply
antonellocaroli
Posts: 18
Joined: Mon Jun 15, 2015 11:45 am

support for HQplayer

Post by antonellocaroli »

you can add support for HQplayer.
a user has done for foobar with a script:

http://www.computeraudiophile.com/f11-s ... 000-24282/

the script can be downloaded here

https://drive.google.com/uc?export=down ... DlkbC1rbk0
musoware
Site Admin
Posts: 1849
Joined: Fri Sep 14, 2012 6:50 am

Re: support for HQplayer

Post by musoware »

I've never heard of HQPlayer until now. Is this the home page?
http://www.signalyst.com/consumer.html

I can't see any API/SDK info there, but I'll see if I can understand how foobar was linked up.
antonellocaroli
Posts: 18
Joined: Mon Jun 15, 2015 11:45 am

Re: support for HQplayer

Post by antonellocaroli »

Yes that's it !!! software is very famous among audiophiles ....

You should understand in the script as it does to send the play list to HQplayer ...
I'm not a programmer ...

The combination would be fantastic Muso - HQplayer
musoware
Site Admin
Posts: 1849
Joined: Fri Sep 14, 2012 6:50 am

Re: support for HQplayer

Post by musoware »

Looks interesting. I have a concern though that there's no controlled API and that the only way to queue up files is to invoke HQP with arguments. This is from the forum http://www.computeraudiophile.com/f11-s ... sts-20870/ :

"If HQP already is running, calling it from the command line launches a 2nd instance of the application. The only way to add or remove tracks to the playlist via command line is to quit and relaunch HQP."

Is that true of the foobar script? If so then that may be all that's possible from Muso too - ie. kill/relaunch with new playlist rather than being able to add to playlist.
bibo01
Posts: 92
Joined: Mon Jun 15, 2015 10:18 pm

Re: support for HQplayer

Post by bibo01 »

Yes, you are right.
Now the available commands for hqp-control are these ones:
hqp-control <--playlist-remove |--playlist-move-up |--playlist-move-down |--playlist-clear|--select-track |--play|--pause|--stop|--previous|--next|--backward|--forward|--seek |--volume-down|--volume-up|--mute|--volume |--state|--status|uri>
musoware
Site Admin
Posts: 1849
Joined: Fri Sep 14, 2012 6:50 am

Re: support for HQplayer

Post by musoware »

Is hqp-control a beta feature? Where did you find that command list? I'd be interested in seeing more info about this. I don't see anything in there to ADD to an existing playlist though.
antonellocaroli
Posts: 18
Joined: Mon Jun 15, 2015 11:45 am

Re: support for HQplayer

Post by antonellocaroli »

It is still in beta ... I think
for the rest I hope you respond bibo .... that's a lot more than me ;)

THX
bibo01
Posts: 92
Joined: Mon Jun 15, 2015 10:18 pm

Re: support for HQplayer

Post by bibo01 »

The commands were published by the developer of HQPlayer and they are valid for v3.8.0b1 for Win: http://www3.signalyst.com/bins/HQPlayer ... -380b1.exe
HQP-control was initially implemented in v3.7. This is the source code: https://www.signalyst.eu/bins/hqp-control-380b1-src.zip
musoware
Site Admin
Posts: 1849
Joined: Fri Sep 14, 2012 6:50 am

Re: support for HQplayer

Post by musoware »

You may not be aware that Muso supports drag operations, so you can drag albums or individual tracks to HQPlayer to add them to the playlist (providing the filetype is supported, I assume lossy formats like mp3 aren't). If the hqp-control feature doesn't support adding tracks to the playlist then dragging may be the only way to achieve this anyway. Without full control of HQplayer through a managed API, I think having Muso and HQplayer running side-by-side may be the best that can be hoped for, rather than Muso acting as a full front end, so perhaps the drag&drop facility would be a workable solution - and works now.
bibo01
Posts: 92
Joined: Mon Jun 15, 2015 10:18 pm

Re: support for HQplayer

Post by bibo01 »

Drag'n'drop is supported by Explorer too, but this is not the point.
HQP-control supports only adding track or playlist, so if you want to substitute the current playlist you have to clear it first.
You can give four types of content pointers to hqp-control:
1) URI (can point to a file or playlist)
2) Normal local file
3) Normal local directory
4) Local playlist

In all cases, the content is appended to end of the current playlist. To replace something, you need to call clear first, which will clear everything else except currently playing track. There are also commands to rearrange items on the playlist and to retrieve content of the current playlist.
Post Reply