2 Star 1 Fork 0

蔡雨生/go-onvif

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
types.go 22.07 KB
一键复制 编辑 原始数据 按行查看 历史
蔡雨生 提交于 2023-06-30 10:21 . init
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
package media
import (
"gitee.com/cai-yusheng/go-onvif/xsd"
"gitee.com/cai-yusheng/go-onvif/xsd/onvif"
)
type Capabilities struct {
SnapshotUri bool `xml:"SnapshotUri,attr"`
Rotation bool `xml:"Rotation,attr"`
VideoSourceMode bool `xml:"VideoSourceMode,attr"`
OSD bool `xml:"OSD,attr"`
TemporaryOSDText bool `xml:"TemporaryOSDText,attr"`
EXICompression bool `xml:"EXICompression,attr"`
ProfileCapabilities ProfileCapabilities
StreamingCapabilities StreamingCapabilities
}
type ProfileCapabilities struct {
MaximumNumberOfProfiles int `xml:"MaximumNumberOfProfiles,attr"`
}
type StreamingCapabilities struct {
RTPMulticast bool `xml:"RTPMulticast,attr"`
RTP_TCP bool `xml:"RTP_TCP,attr"`
RTP_RTSP_TCP bool `xml:"RTP_RTSP_TCP,attr"`
NonAggregateControl bool `xml:"NonAggregateControl,attr"`
NoRTSPStreaming bool `xml:"NoRTSPStreaming,attr"`
}
//Media main types
type GetServiceCapabilities struct {
XMLName string `xml:"trt:GetServiceCapabilities"`
}
type GetServiceCapabilitiesResponse struct {
Capabilities Capabilities
}
type GetVideoSources struct {
XMLName string `xml:"trt:GetVideoSources"`
}
type GetVideoSourcesResponse struct {
VideoSources onvif.VideoSource
}
type GetAudioSources struct {
XMLName string `xml:"trt:GetAudioSources"`
}
type GetAudioSourcesResponse struct {
AudioSources onvif.AudioSource
}
type GetAudioOutputs struct {
XMLName string `xml:"trt:GetAudioOutputs"`
}
type GetAudioOutputsResponse struct {
AudioOutputs onvif.AudioOutput
}
type CreateProfile struct {
XMLName string `xml:"trt:CreateProfile"`
Name onvif.Name `xml:"trt:Name"`
Token onvif.ReferenceToken `xml:"trt:Token"`
}
type CreateProfileResponse struct {
Profile onvif.Profile
}
type GetProfile struct {
XMLName string `xml:"trt:GetProfile"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetProfileResponse struct {
Profile onvif.Profile
}
type GetProfiles struct {
XMLName string `xml:"trt:GetProfiles"`
}
type GetProfilesResponse struct {
Profiles []onvif.Profile
}
type AddVideoEncoderConfiguration struct {
XMLName string `xml:"trt:AddVideoEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddVideoEncoderConfigurationResponse struct {
}
type RemoveVideoEncoderConfiguration struct {
XMLName string `xml:"trt:RemoveVideoEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveVideoEncoderConfigurationResponse struct {
}
type AddVideoSourceConfiguration struct {
XMLName string `xml:"trt:AddVideoSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddVideoSourceConfigurationResponse struct {
}
type RemoveVideoSourceConfiguration struct {
XMLName string `xml:"trt:RemoveVideoSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveVideoSourceConfigurationResponse struct {
}
type AddAudioEncoderConfiguration struct {
XMLName string `xml:"trt:AddAudioEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddAudioEncoderConfigurationResponse struct {
}
type RemoveAudioEncoderConfiguration struct {
XMLName string `xml:"trt:RemoveAudioEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveAudioEncoderConfigurationResponse struct {
}
type AddAudioSourceConfiguration struct {
XMLName string `xml:"trt:AddAudioSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddAudioSourceConfigurationResponse struct {
}
type RemoveAudioSourceConfiguration struct {
XMLName string `xml:"trt:RemoveAudioSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveAudioSourceConfigurationResponse struct {
}
type AddPTZConfiguration struct {
XMLName string `xml:"trt:AddPTZConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddPTZConfigurationResponse struct {
}
type RemovePTZConfiguration struct {
XMLName string `xml:"trt:RemovePTZConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemovePTZConfigurationResponse struct {
}
type AddVideoAnalyticsConfiguration struct {
XMLName string `xml:"trt:AddVideoAnalyticsConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddVideoAnalyticsConfigurationResponse struct {
}
type RemoveVideoAnalyticsConfiguration struct {
XMLName string `xml:"trt:RemoveVideoAnalyticsConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveVideoAnalyticsConfigurationResponse struct {
}
type AddMetadataConfiguration struct {
XMLName string `xml:"trt:AddMetadataConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddMetadataConfigurationResponse struct {
}
type RemoveMetadataConfiguration struct {
XMLName string `xml:"trt:RemoveMetadataConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveMetadataConfigurationResponse struct {
}
type AddAudioOutputConfiguration struct {
XMLName string `xml:"trt:AddAudioOutputConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddAudioOutputConfigurationResponse struct {
}
type RemoveAudioOutputConfiguration struct {
XMLName string `xml:"trt:RemoveAudioOutputConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveAudioOutputConfigurationResponse struct {
}
type AddAudioDecoderConfiguration struct {
XMLName string `xml:"trt:AddAudioDecoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type AddAudioDecoderConfigurationResponse struct {
}
type RemoveAudioDecoderConfiguration struct {
XMLName string `xml:"trt:RemoveAudioDecoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type RemoveAudioDecoderConfigurationResponse struct {
}
type DeleteProfile struct {
XMLName string `xml:"trt:DeleteProfile"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type DeleteProfileResponse struct {
}
type GetVideoSourceConfigurations struct {
XMLName string `xml:"trt:GetVideoSourceConfigurations"`
}
type GetVideoSourceConfigurationsResponse struct {
Configurations onvif.VideoSourceConfiguration
}
type GetVideoEncoderConfigurations struct {
XMLName string `xml:"trt:GetVideoEncoderConfigurations"`
}
type GetVideoEncoderConfigurationsResponse struct {
Configurations onvif.VideoEncoderConfiguration
}
type GetAudioSourceConfigurations struct {
XMLName string `xml:"trt:GetAudioSourceConfigurations"`
}
type GetAudioSourceConfigurationsResponse struct {
Configurations onvif.AudioSourceConfiguration
}
type GetAudioEncoderConfigurations struct {
XMLName string `xml:"trt:GetAudioEncoderConfigurations"`
}
type GetAudioEncoderConfigurationsResponse struct {
Configurations onvif.AudioEncoderConfiguration
}
type GetVideoAnalyticsConfigurations struct {
XMLName string `xml:"trt:GetVideoAnalyticsConfigurations"`
}
type GetVideoAnalyticsConfigurationsResponse struct {
Configurations onvif.VideoAnalyticsConfiguration
}
type GetMetadataConfigurations struct {
XMLName string `xml:"trt:GetMetadataConfigurations"`
}
type GetMetadataConfigurationsResponse struct {
Configurations onvif.MetadataConfiguration
}
type GetAudioOutputConfigurations struct {
XMLName string `xml:"trt:GetAudioOutputConfigurations"`
}
type GetAudioOutputConfigurationsResponse struct {
Configurations onvif.AudioOutputConfiguration
}
type GetAudioDecoderConfigurations struct {
XMLName string `xml:"trt:GetAudioDecoderConfigurations"`
}
type GetAudioDecoderConfigurationsResponse struct {
Configurations onvif.AudioDecoderConfiguration
}
type GetVideoSourceConfiguration struct {
XMLName string `xml:"trt:GetVideoSourceConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetVideoSourceConfigurationResponse struct {
Configuration onvif.VideoSourceConfiguration
}
type GetVideoEncoderConfiguration struct {
XMLName string `xml:"trt:GetVideoEncoderConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetVideoEncoderConfigurationResponse struct {
Configuration onvif.VideoEncoderConfiguration
}
type GetAudioSourceConfiguration struct {
XMLName string `xml:"trt:GetAudioSourceConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioSourceConfigurationResponse struct {
Configuration onvif.AudioSourceConfiguration
}
type GetAudioEncoderConfiguration struct {
XMLName string `xml:"trt:GetAudioEncoderConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioEncoderConfigurationResponse struct {
Configuration onvif.AudioEncoderConfiguration
}
type GetVideoAnalyticsConfiguration struct {
XMLName string `xml:"trt:GetVideoAnalyticsConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetVideoAnalyticsConfigurationResponse struct {
Configuration onvif.VideoAnalyticsConfiguration
}
type GetMetadataConfiguration struct {
XMLName string `xml:"trt:GetMetadataConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetMetadataConfigurationResponse struct {
Configuration onvif.MetadataConfiguration
}
type GetAudioOutputConfiguration struct {
XMLName string `xml:"trt:GetAudioOutputConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioOutputConfigurationResponse struct {
Configuration onvif.AudioOutputConfiguration
}
type GetAudioDecoderConfiguration struct {
XMLName string `xml:"trt:GetAudioDecoderConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioDecoderConfigurationResponse struct {
Configuration onvif.AudioDecoderConfiguration
}
type GetCompatibleVideoEncoderConfigurations struct {
XMLName string `xml:"trt:GetCompatibleVideoEncoderConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleVideoEncoderConfigurationsResponse struct {
Configurations onvif.VideoEncoderConfiguration
}
type GetCompatibleVideoSourceConfigurations struct {
XMLName string `xml:"trt:GetCompatibleVideoSourceConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleVideoSourceConfigurationsResponse struct {
Configurations onvif.VideoSourceConfiguration
}
type GetCompatibleAudioEncoderConfigurations struct {
XMLName string `xml:"trt:GetCompatibleAudioEncoderConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleAudioEncoderConfigurationsResponse struct {
Configurations onvif.AudioEncoderConfiguration
}
type GetCompatibleAudioSourceConfigurations struct {
XMLName string `xml:"trt:GetCompatibleAudioSourceConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleAudioSourceConfigurationsResponse struct {
Configurations onvif.AudioSourceConfiguration
}
type GetCompatibleVideoAnalyticsConfigurations struct {
XMLName string `xml:"trt:GetCompatibleVideoAnalyticsConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleVideoAnalyticsConfigurationsResponse struct {
Configurations onvif.VideoAnalyticsConfiguration
}
type GetCompatibleMetadataConfigurations struct {
XMLName string `xml:"trt:GetCompatibleMetadataConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleMetadataConfigurationsResponse struct {
Configurations onvif.MetadataConfiguration
}
type GetCompatibleAudioOutputConfigurations struct {
XMLName string `xml:"trt:GetCompatibleAudioOutputConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleAudioOutputConfigurationsResponse struct {
Configurations onvif.AudioOutputConfiguration
}
type GetCompatibleAudioDecoderConfigurations struct {
XMLName string `xml:"trt:GetCompatibleAudioDecoderConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetCompatibleAudioDecoderConfigurationsResponse struct {
Configurations onvif.AudioDecoderConfiguration
}
type SetVideoSourceConfiguration struct {
XMLName string `xml:"trt:SetVideoSourceConfiguration"`
Configuration onvif.VideoSourceConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
}
type SetVideoSourceConfigurationResponse struct {
}
type SetVideoEncoderConfiguration struct {
XMLName string `xml:"trt:SetVideoEncoderConfiguration"`
Configuration onvif.VideoEncoderConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
}
type SetVideoEncoderConfigurationResponse struct {
}
type SetAudioSourceConfiguration struct {
XMLName string `xml:"trt:SetAudioSourceConfiguration"`
Configuration onvif.AudioSourceConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
}
type SetAudioSourceConfigurationResponse struct {
}
type SetAudioEncoderConfiguration struct {
XMLName string `xml:"trt:SetAudioEncoderConfiguration"`
Configuration onvif.AudioEncoderConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
}
type SetAudioEncoderConfigurationResponse struct {
}
type SetVideoAnalyticsConfiguration struct {
XMLName string `xml:"trt:SetVideoAnalyticsConfiguration"`
Configuration onvif.VideoAnalyticsConfiguration `xml:"trt:Configuration"`
ForcePersistence bool `xml:"trt:ForcePersistence"`
}
type SetVideoAnalyticsConfigurationResponse struct {
}
type SetMetadataConfiguration struct {
XMLName string `xml:"trt:GetDeviceInformation"`
Configuration onvif.MetadataConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
}
type SetMetadataConfigurationResponse struct {
}
type SetAudioOutputConfiguration struct {
XMLName string `xml:"trt:SetAudioOutputConfiguration"`
Configuration onvif.AudioOutputConfiguration `xml:"trt:Configuration"`
ForcePersistence bool `xml:"trt:ForcePersistence"`
}
type SetAudioOutputConfigurationResponse struct {
}
type SetAudioDecoderConfiguration struct {
XMLName string `xml:"trt:SetAudioDecoderConfiguration"`
Configuration onvif.AudioDecoderConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
}
type SetAudioDecoderConfigurationResponse struct {
}
type GetVideoSourceConfigurationOptions struct {
XMLName string `xml:"trt:GetVideoSourceConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetVideoSourceConfigurationOptionsResponse struct {
Options onvif.VideoSourceConfigurationOptions
}
type GetVideoEncoderConfigurationOptions struct {
XMLName string `xml:"trt:GetVideoEncoderConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetVideoEncoderConfigurationOptionsResponse struct {
Options onvif.VideoEncoderConfigurationOptions
}
type GetAudioSourceConfigurationOptions struct {
XMLName string `xml:"trt:GetAudioSourceConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioSourceConfigurationOptionsResponse struct {
Options onvif.AudioSourceConfigurationOptions
}
type GetAudioEncoderConfigurationOptions struct {
XMLName string `xml:"trt:GetAudioEncoderConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioEncoderConfigurationOptionsResponse struct {
Options onvif.AudioEncoderConfigurationOptions
}
type GetMetadataConfigurationOptions struct {
XMLName string `xml:"trt:GetMetadataConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetMetadataConfigurationOptionsResponse struct {
Options onvif.MetadataConfigurationOptions
}
type GetAudioOutputConfigurationOptions struct {
XMLName string `xml:"trt:GetAudioOutputConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioOutputConfigurationOptionsResponse struct {
Options onvif.AudioOutputConfigurationOptions
}
type GetAudioDecoderConfigurationOptions struct {
XMLName string `xml:"trt:GetAudioDecoderConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetAudioDecoderConfigurationOptionsResponse struct {
Options onvif.AudioDecoderConfigurationOptions
}
type GetGuaranteedNumberOfVideoEncoderInstances struct {
XMLName string `xml:"trt:GetGuaranteedNumberOfVideoEncoderInstances"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetGuaranteedNumberOfVideoEncoderInstancesResponse struct {
TotalNumber int
JPEG int
H264 int
MPEG4 int
}
type GetStreamUri struct {
XMLName string `xml:"trt:GetStreamUri"`
StreamSetup onvif.StreamSetup `xml:"trt:StreamSetup"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetStreamUriResponse struct {
MediaUri onvif.MediaUri
}
type StartMulticastStreaming struct {
XMLName string `xml:"trt:StartMulticastStreaming"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type StartMulticastStreamingResponse struct {
}
type StopMulticastStreaming struct {
XMLName string `xml:"trt:StopMulticastStreaming"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type StopMulticastStreamingResponse struct {
}
type SetSynchronizationPoint struct {
XMLName string `xml:"trt:SetSynchronizationPoint"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type SetSynchronizationPointResponse struct {
}
type GetSnapshotUri struct {
XMLName string `xml:"trt:GetSnapshotUri"`
ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
}
type GetSnapshotUriResponse struct {
MediaUri onvif.MediaUri
}
type GetVideoSourceModes struct {
XMLName string `xml:"trt:GetVideoSourceModes"`
VideoSourceToken onvif.ReferenceToken `xml:"trt:VideoSourceToken"`
}
type GetVideoSourceModesResponse struct {
VideoSourceModes onvif.VideoSourceMode
}
type SetVideoSourceMode struct {
XMLName string `xml:"trt:SetVideoSourceMode"`
VideoSourceToken onvif.ReferenceToken `xml:"trt:VideoSourceToken"`
VideoSourceModeToken onvif.ReferenceToken `xml:"trt:VideoSourceModeToken"`
}
type SetVideoSourceModeResponse struct {
Reboot bool
}
type GetOSDs struct {
XMLName string `xml:"trt:GetOSDs"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetOSDsResponse struct {
OSDs onvif.OSDConfiguration
}
type GetOSD struct {
XMLName string `xml:"trt:GetOSD"`
OSDToken onvif.ReferenceToken `xml:"trt:OSDToken"`
}
type GetOSDResponse struct {
OSD onvif.OSDConfiguration
}
type GetOSDOptions struct {
XMLName string `xml:"trt:GetOSDOptions"`
ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
}
type GetOSDOptionsResponse struct {
OSDOptions onvif.OSDConfigurationOptions
}
type SetOSD struct {
XMLName string `xml:"trt:SetOSD"`
OSD onvif.OSDConfiguration `xml:"trt:OSD"`
}
type SetOSDResponse struct {
}
type CreateOSD struct {
XMLName string `xml:"trt:CreateOSD"`
OSD onvif.OSDConfiguration `xml:"trt:OSD"`
}
type CreateOSDResponse struct {
OSDToken onvif.ReferenceToken
}
type DeleteOSD struct {
XMLName string `xml:"trt:DeleteOSD"`
OSDToken onvif.ReferenceToken `xml:"trt:OSDToken"`
}
type DeleteOSDResponse struct {
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/cai-yusheng/go-onvif.git
git@gitee.com:cai-yusheng/go-onvif.git
cai-yusheng
go-onvif
go-onvif
v0.0.4

搜索帮助

D67c1975 1850385 1daf7b77 1850385