Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Zoom Player plug-in

Questions and comments specific to a particular plugin should go here.
Blight
Posts: 10
Joined: Mon Oct 10, 2011 9:11 pm

Zoom Player plug-in

Post 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
Attachments
ZoomPlayer.zip
Event Ghost Zoom Player v8 plugin
(15.51 KiB) Downloaded 685 times
Yaron Gur
Zoom Player . Lead Developer
Blight
Posts: 10
Joined: Mon Oct 10, 2011 9:11 pm

Re: Zoom Player plug-in

Post 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?
Attachments
zoomplayer820p1.zip
(15.56 KiB) Downloaded 585 times
Yaron Gur
Zoom Player . Lead Developer
igvk
Experienced User
Posts: 60
Joined: Wed Jan 09, 2013 7:22 pm

Re: Zoom Player plug-in

Post 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.
Blight
Posts: 10
Joined: Mon Oct 10, 2011 9:11 pm

Re: Zoom Player plug-in

Post by Blight »

This update also fixes the issue igvk reported.
Attachments
zoomplayer870b5.zip
Updated to v8.7 beta 5
(15.79 KiB) Downloaded 555 times
Yaron Gur
Zoom Player . Lead Developer
eventspook
Posts: 23
Joined: Tue Mar 05, 2013 2:50 pm

Re: Zoom Player plug-in

Post 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.
rchham
Posts: 1
Joined: Mon Dec 16, 2013 2:05 pm

Re: Zoom Player plug-in

Post 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")
faris
Posts: 1
Joined: Mon Jan 06, 2014 8:53 am

Re: Zoom Player plug-in

Post by faris »

I can't seem to duplicate it? Does this attachment work for you?
faris
Blight
Posts: 10
Joined: Mon Oct 10, 2011 9:11 pm

Re: Zoom Player plug-in

Post by Blight »

Attached is the updated Zoom Player version 11.1 event ghost plug-in.
Attachments
zoomplayer1100.zip
(16.64 KiB) Downloaded 436 times
Yaron Gur
Zoom Player . Lead Developer
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Re: Zoom Player plug-in

Post 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?
igvk
Experienced User
Posts: 60
Joined: Wed Jan 09, 2013 7:22 pm

Re: Zoom Player plug-in

Post 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.
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Re: Zoom Player plug-in

Post 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....
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Zoom Player plug-in

Post 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.
If you like the work I have been doing then feel free to Image
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: Zoom Player plug-in

Post 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.
Attachments
ZoomPlayer_1_1.egplugin
Plugin: ZoomPlayer
Version: 1.1
(17.28 KiB) Downloaded 325 times
Last edited by topix on Tue Jul 11, 2017 10:47 pm, edited 1 time in total.
igvk
Experienced User
Posts: 60
Joined: Wed Jan 09, 2013 7:22 pm

Re: Zoom Player plug-in

Post 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.
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: Zoom Player plug-in

Post 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.
Post Reply