-
Notifications
You must be signed in to change notification settings - Fork 243
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 move issues #267
Comments
update: using underlying private methods in const profileToken = cam.defaultProfile.['PTZConfiguration']?.['token'] || '';
const velocity = { panTilt: { x, y }, zoom: { x: zoom } };
cam.onvif.ptz.continuousMove({ profileToken, velocity, timeout: 1000 }); |
@vladmandic Hi! Can you send the xml error responses from |
Oh I guess that's the problem @RogerHardiman mentioned here: https://github.com/agsh/onvif/blob/master/lib/ptz.js#L471 |
callback for err: Error: ONVIF SOAP Fault: {"value":"SOAP-ENV:Sender"}
at rs (/home/vlado/branches/onvif/src/utils.ts:106:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5),
data: undefined
similar :) |
Wow! You are using a new version written in typescript, as I can see 😄 throw new Error(`ONVIF SOAP Fault: ${reason}${detail} ${rawXml}`); |
yeah, sorry :)
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> |
This is ok, thank you for your interest!) I'm just try to rewrite the old js code with callbacks into typescript and promises. And any bug reports are welcome) |
That's what I thought - seems ReoLink capabilities are quite limited. Anyhow, I just did a clean http digest auth (zero dependencies) so i can actually use what's behind |
totally off-topic, i just noticed your |
Hi. Many of the small CCTV cameras have basic (and sometimes buggy) ONVIF support especially if the electronics inside were made by a Chinese company called XM. |
I'm interested in the RTSP to browser work too |
@RogerHardiman issue here is different:
and quite likely, issue is related to new (unreleased) typescript branch |
Oh, this is my mistake in compatibility module here, I suppose: https://github.com/agsh/onvif/blob/v1/src/compatibility/cam.ts#L248 |
i have ptz move issues with reolink c2-pro
first,
absoluteMove
does not work at all, returns SOAP error.instead using
continousMove
which does work, but - only if bothx
andy
are present and non-zero.for example:
which basically means i can only move diagonally (pan & tilt at the same time), i cannot just pan or just tilt.
any ideas?
The text was updated successfully, but these errors were encountered: