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

how to get the device's current ptz datas? #23

Open
ynioba opened this issue Aug 2, 2024 · 1 comment
Open

how to get the device's current ptz datas? #23

ynioba opened this issue Aug 2, 2024 · 1 comment
Labels

Comments

@ynioba
Copy link

ynioba commented Aug 2, 2024

No description provided.

@ynioba ynioba changed the title how 同 how to get current ptz datas? Aug 2, 2024
@ynioba ynioba changed the title how to get current ptz datas? how to get current device's ptz datas? Aug 2, 2024
@ynioba ynioba changed the title how to get current device's ptz datas? how to get the device's current ptz datas? Aug 2, 2024
@jlovald
Copy link

jlovald commented Aug 10, 2024

You need to setup a camera as shown in the README, then use the camera's PTZClient.

var account = new Account("camera_ip", "camera_username", "camera_password");
var camera = Camera.Create(account, ex =>
{
    // exception
});

if (camera != null)
{
   var response = await camera.Ptz.GetStatusAsync();
}

For more info about the specifics of the response:
https://www.onvif.org/specs/srv/ptz/ONVIF-PTZ-Service-Spec-v211.pdf
https://www.onvif.org/wp-content/uploads/2016/12/ONVIF_WG-APG-Application_Programmers_Guide-1.pdf

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

3 participants