diff --git a/pkg/onvif/client.go b/pkg/onvif/client.go
index cb6221e1..936f65f6 100644
--- a/pkg/onvif/client.go
+++ b/pkg/onvif/client.go
@@ -159,9 +159,12 @@ func (c *Client) GetServiceCapabilities() ([]byte, error) {
}
func (c *Client) DeviceRequest(operation string) ([]byte, error) {
- if operation == DeviceGetServices {
+ switch operation {
+ case DeviceGetServices:
operation = `true`
- } else {
+ case DeviceGetCapabilities:
+ operation = `All`
+ default:
operation = ``
}
return c.Request(c.deviceURL, operation)