Merge pull request #4 from mohitsolanki026/fix/preset-tour-multiple-spots

fix: support multiple TourSpots in PresetTour struct.
This commit is contained in:
Cédric Verstraeten
2026-07-07 13:51:05 +02:00
committed by GitHub
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"`
}