Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTZ - zmNinja sends start but no stop #880

Closed
alabamatoy opened this issue Dec 27, 2019 · 4 comments
Closed

PTZ - zmNinja sends start but no stop #880

alabamatoy opened this issue Dec 27, 2019 · 4 comments
Labels

Comments

@alabamatoy
Copy link

alabamatoy commented Dec 27, 2019

Platform & OS Version

Android 10

The version of zmNinja you are reporting:

1.3.082

The version and OS of ZoneMinder you are using:

1.30.0, Ubuntu 16.04

Device details:

Pixel2

What is the nature of your issue

bug/enhancement

Details

zmNinja PTZ function apparently sends something which ZM interprets as "onmousedown" event, but does not send "onmouseup". My PTZ script is designed to be press-and-hold to pan, tilt or zoom using onmousedown and onmouseup. It successfully sees the onmousedown and starts the movement, but apparently zmNinja does not send anything that can be interpreted as "onmouseup" when the pan, tilt or zoom touch is released. So the camera just starts moving and either goes to its full endpoint or else just keeps going round and round.

@pliablepixels
Copy link
Member

zmNinja sends standard up/down/left/right commands. The way it works in zmN is if your PTZ script advertises "continuous" movement, zmNinja will use moveConLeft, moveConRight etc commands (instead of moveLeft, moveRight etc). That decision is made here.

zmNinja does have a "stop" button, which you can use to stop the move. The stop translates to moveConStop for PTZ.

@alabamatoy
Copy link
Author

OK. I looked through both the readthedocs and the google docs help, and there seems to be nothing about the PTZ functions or where the "stop" button is. Unless I'm overlooking it, the help document doesnt even list the controls interface, just a bubble stating that it exists. Searching for PTZ produces nothing (apparently the help document is all images, no searchable text?)

Looking at the controls display in the app, there doesnt seem to be anything that intuitively looks like a stop button. Where is this stop button?

I do not mind attempting to embellish and improve the help file, the documentation, or even the code (probably high risk!). Your controls interface is actually pretty darn good implementation given the tiny real estate.

@pliablepixels
Copy link
Member

pliablepixels commented Dec 31, 2019

Stop button:
Screen Shot 2019-12-31 at 8 49 11 AM

Note that in the ZM PTZ config, you can also configure an "Autostop" which will automatically send a stop after X seconds.

@stale
Copy link

stale bot commented Feb 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 14, 2020
@stale stale bot closed this as completed Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants