fix: support multiple TourSpots in PresetTour struct.

TourSpot was defined as a single PTZPresetTourSpot value, making it
impossible to configure a preset tour with more than one stop. The
ONVIF spec allows multiple TourSpot entries per tour, so this changes
the field to a slice.
This commit is contained in:
Mohit Solanki
2026-02-21 18:02:09 +05:30
parent a732b9fa82
commit 174de6954b
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ type GetPresetTours struct {
}
type GetPresetToursResponse struct {
PresetTour onvif.PresetTour
PresetTour []onvif.PresetTour
}
type GetPresetTour struct {

View File

@@ -1176,7 +1176,7 @@ type PresetTour struct {
Status PTZPresetTourStatus `xml:"Status"`
AutoStart xsd.Boolean `xml:"AutoStart"`
StartingCondition PTZPresetTourStartingCondition `xml:"StartingCondition"`
TourSpot PTZPresetTourSpot `xml:"TourSpot"`
TourSpot []PTZPresetTourSpot `xml:"TourSpot"`
Extension PTZPresetTourExtension `xml:"Extension"`
}