Page 1 of 2
Zoom Player plug-in
Posted: Thu Oct 13, 2011 10:43 pm
by Blight
Hi,
I've updated the Zoom Player plugin for v8 (see attachment below).
To install, you need close event ghost, replace the existing copy, usually residing in "c:\Program Files\EventGhost\plugins\ZoomPlayer\" and restart event ghost.
Please include in next EG release.
Cheers,
Yaron
Re: Zoom Player plug-in
Posted: Wed May 16, 2012 1:13 pm
by Blight
I'm attaching the updated plugin that covers all versions of Zoom Player up to the upcoming v8.2.0 preview 1.
Sadly, the previous update was not included in a new release.
I had the same situation with the PS3 plugin being outdated...
Is anyone doing a once-over to update the plugins and release a new version?
Re: Zoom Player plug-in
Posted: Wed Jan 23, 2013 4:24 pm
by igvk
I noticed that Home and End have the same code:
Code: Select all
('KeyHome', 'Navigational Control Home', '36'),
('KeyEnd', 'Navigational Control End', '36'),
I suppose, End should be 35.
Re: Zoom Player plug-in
Posted: Sun Apr 14, 2013 1:44 am
by Blight
This update also fixes the issue igvk reported.
Re: Zoom Player plug-in
Posted: Sat Sep 14, 2013 1:49 am
by eventspook
Is it possible to tell ZoomPlayer to play a certain file? I see the 'Open' command, but I want to remotely start playing back a certain file.
Re: Zoom Player plug-in
Posted: Mon Dec 16, 2013 2:12 pm
by rchham
Hi,
I use the raw command option to control my Squeezebox.
Is it possible to use eg variables like eg.event.payload or eg.gobals in the raw command?
I can not get it work.
DONE
Solution it is not possible with the standard Plugin - If you need it you have to modify this line in the code FROM self.session.sendall(cmdstr + "\r\n") TO self.session.sendall(eg.ParseString(cmdstr) + "\r\n")
Re: Zoom Player plug-in
Posted: Mon Jan 06, 2014 8:57 am
by faris
I can't seem to duplicate it? Does this attachment work for you?
Re: Zoom Player plug-in
Posted: Mon Nov 16, 2015 12:09 pm
by Blight
Attached is the updated Zoom Player version 11.1 event ghost plug-in.
Re: Zoom Player plug-in
Posted: Mon Jul 10, 2017 11:57 pm
by farbox
Hi guys!
Slight issue that I just cam up against:
I updated to new 0.5.0 rc3, and the 11.1 ZP plugin.
Everything still works ok, but Im getting this error now in the log:
C:\Program Files (x86)\EventGhost\plugins\ZoomPlayer\__init__.py:1185: DeprecationWarning: ZoomPlayerSession.sendall is deprecated. Use ZoomPlayerSession.socket.sendall instead.
self.session.sendall(cmdstr + "\r\n")
I think the string it refers to is this:
Code: Select all
@eg.LogIt
def DoCommand(self, cmdstr):
self.waitFlag.clear()
self.waitStr = cmdstr
if not self.isSessionRunning:
self.session = ZoomPlayerSession(self, (self.host, self.port))
self.isSessionRunning = True
try:
self.session.sendall(cmdstr + "\r\n")
except:
self.isSessionRunning = False
self.TriggerEvent('close')
self.session.close()
self.waitFlag.wait(1.0)
self.waitStr = None
self.waitFlag.set()
Any ideas why? Is it an EG, ZP, or ZPplugin issue?
Also the info dialog of the ZP plugin still shows as version 1.0. I checked the text of the 11.1 plugin _init__.py, and its still listed as 1.0
Is this correct?
Re: Zoom Player plug-in
Posted: Tue Jul 11, 2017 12:18 am
by igvk
Seems that in newest version of EG you need to replace it with self.session.socket.sendall, as suggested.
This, and self.socket.settimeout instead of self.settimeout.
Besides, StreamSelectNav was replaced with StreamSelectionNav in newer ZP versions.
Hope that the author will update this plugin and it will be updated in EG distribution, too.
And if the ZP author reads this, I would also like to see function of reading current volume in the plugin.
Re: Zoom Player plug-in
Posted: Tue Jul 11, 2017 4:27 am
by farbox
Lets hope the author updates it, cuz its a great plugin and I love it!
If not I'll try a manual edit as you suggested....
Re: Zoom Player plug-in
Posted: Tue Jul 11, 2017 1:23 pm
by kgschlosser
Ok this is the second plugin where we came across this. I am going to make a wrapper for it or change how the warnings are printed so you will only see it if degugging is turned on. I will force the depreaction warnings to come up only in the debugging log.
Re: Zoom Player plug-in
Posted: Tue Jul 11, 2017 9:07 pm
by topix
igvk wrote:Seems that in newest version of EG you need to replace it with self.session.socket.sendall, as suggested.
This, and self.socket.settimeout instead of self.settimeout.
Besides, StreamSelectNav was replaced with StreamSelectionNav in newer ZP versions.
Hope that the author will update this plugin and it will be updated in EG distribution, too.
And if the ZP author reads this, I would also like to see function of reading current volume in the plugin.
I'm not the author but i made the changes regarding socket. Please try the attached version.
For reading the current volume, did you try the raw command? I don't have ZoomPlayer and can't test it, but from reading the code it seems 2300 is the command to send.
Re: Zoom Player plug-in
Posted: Tue Jul 11, 2017 9:23 pm
by igvk
topix wrote:For reading the current volume, did you try the raw command? I don't have ZoomPlayer and can't test it, but from reading the code it seems 2300 is the command to send.
Yes, 2300 is the way to go.
Besides that, you also need to trigger event with the value of the current volume to pass it to EG.
I had to make changes to the code of the plugin to implement volume adjustment (e.g., make volume 10 steps higher), but it would be better to do all this centrally.
The latest version of ZP plugin is also not in Git and not in the latest EG installer.
Re: Zoom Player plug-in
Posted: Tue Jul 11, 2017 9:31 pm
by topix
can you show me your code changes and how you generate the volume event?
I will include the new version in the next release.