Skip to content

Conversation

@FIGIO55
Copy link
Contributor

@FIGIO55 FIGIO55 commented Dec 19, 2025

I like the onvif discover functinality in the add section, but I wanted some device information.
So I added code to extract the onvif://www.onvif.org/name and onvif://www.onvif.org/hardware fields from the onvif envelope and used it to populate the Info field already present in the api.Source object.
To better present this change, I created the DiscoveryDevice type in pkg/onvif/helpers.go with the fields being:

type DiscoveryDevice struct {
	URL      string
	Name     string
	Hardware string
}

For clarity purposes, I also renamed the function DiscoveryStreamingURLs to DiscoveryStreamingDevices from the same package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant