display.go 225 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780
  1. package display
  2. import (
  3. "context"
  4. "encoding/xml"
  5. "time"
  6. "lc/common/onvif/soap"
  7. )
  8. // against "unused imports"
  9. var _ time.Time
  10. var _ xml.Name
  11. // GetServiceCapabilities type
  12. type GetServiceCapabilities struct {
  13. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl GetServiceCapabilities"`
  14. }
  15. // GetServiceCapabilitiesResponse type
  16. type GetServiceCapabilitiesResponse struct {
  17. XMLName xml.Name `xml:"GetServiceCapabilitiesResponse"`
  18. // The capabilities for the display service is returned in the Capabilities element.
  19. Capabilities Capabilities `xml:"Capabilities,omitempty"`
  20. }
  21. // GetLayout type
  22. type GetLayout struct {
  23. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl GetLayout"`
  24. // Token of the Video Output whose Layout is requested
  25. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  26. }
  27. // GetLayoutResponse type
  28. type GetLayoutResponse struct {
  29. XMLName xml.Name `xml:"GetLayoutResponse"`
  30. // Current layout of the video output.
  31. Layout Layout `xml:"Layout,omitempty"`
  32. }
  33. // SetLayout type
  34. type SetLayout struct {
  35. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl SetLayout"`
  36. // Token of the Video Output whose Layout shall be changed.
  37. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  38. // Layout to be set
  39. Layout Layout `xml:"http://www.onvif.org/ver10/display/wsdl Layout,omitempty"`
  40. }
  41. // SetLayoutResponse type
  42. type SetLayoutResponse struct {
  43. XMLName xml.Name `xml:"SetLayoutResponse"`
  44. }
  45. // GetDisplayOptions type
  46. type GetDisplayOptions struct {
  47. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl GetDisplayOptions"`
  48. // Token of the Video Output whose options are requested
  49. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  50. }
  51. // GetDisplayOptionsResponse type
  52. type GetDisplayOptionsResponse struct {
  53. XMLName xml.Name `xml:"GetDisplayOptionsResponse"`
  54. // The LayoutOptions describe the fixed and predefined layouts of a device. If the device does
  55. // not offer fixed layouts and allows setting the layout free this element is empty.
  56. LayoutOptions LayoutOptions `xml:"LayoutOptions,omitempty"`
  57. // decoding and encoding capabilities of the device
  58. CodingCapabilities CodingCapabilities `xml:"CodingCapabilities,omitempty"`
  59. }
  60. // GetPaneConfigurations type
  61. type GetPaneConfigurations struct {
  62. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl GetPaneConfigurations"`
  63. // Reference Token of the Video Output whose Pane Configurations are requested
  64. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  65. }
  66. // GetPaneConfigurationsResponse type
  67. type GetPaneConfigurationsResponse struct {
  68. XMLName xml.Name `xml:"GetPaneConfigurationsResponse"`
  69. // Contains a list of defined Panes of the specified VideoOutput. Each VideoOutput has at least one PaneConfiguration.
  70. PaneConfiguration []PaneConfiguration `xml:"PaneConfiguration,omitempty"`
  71. }
  72. // GetPaneConfiguration type
  73. type GetPaneConfiguration struct {
  74. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl GetPaneConfiguration"`
  75. // Reference Token of the Video Output the requested pane belongs to
  76. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  77. // Reference Token of the Pane whose Configuration is requested
  78. Pane ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Pane,omitempty"`
  79. }
  80. // GetPaneConfigurationResponse type
  81. type GetPaneConfigurationResponse struct {
  82. XMLName xml.Name `xml:"GetPaneConfigurationResponse"`
  83. // returns the configuration of the requested pane.
  84. PaneConfiguration PaneConfiguration `xml:"PaneConfiguration,omitempty"`
  85. }
  86. // SetPaneConfigurations type
  87. type SetPaneConfigurations struct {
  88. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl SetPaneConfigurations"`
  89. // Token of the video output whose panes to set.
  90. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  91. // Pane Configuration to be set.
  92. PaneConfiguration []PaneConfiguration `xml:"http://www.onvif.org/ver10/display/wsdl PaneConfiguration,omitempty"`
  93. }
  94. // SetPaneConfigurationsResponse type
  95. type SetPaneConfigurationsResponse struct {
  96. XMLName xml.Name `xml:"SetPaneConfigurationsResponse"`
  97. }
  98. // SetPaneConfiguration type
  99. type SetPaneConfiguration struct {
  100. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl SetPaneConfiguration"`
  101. // Token of the video output whose panes to set.
  102. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  103. // Pane Configuration to be set.
  104. PaneConfiguration PaneConfiguration `xml:"http://www.onvif.org/ver10/display/wsdl PaneConfiguration,omitempty"`
  105. }
  106. // SetPaneConfigurationResponse type
  107. type SetPaneConfigurationResponse struct {
  108. XMLName xml.Name `xml:"SetPaneConfigurationResponse"`
  109. }
  110. // CreatePaneConfiguration type
  111. type CreatePaneConfiguration struct {
  112. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl CreatePaneConfiguration"`
  113. // Token of the video output where the pane shall be created.
  114. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  115. // Configuration of the pane to be created.
  116. PaneConfiguration PaneConfiguration `xml:"http://www.onvif.org/ver10/display/wsdl PaneConfiguration,omitempty"`
  117. }
  118. // CreatePaneConfigurationResponse type
  119. type CreatePaneConfigurationResponse struct {
  120. XMLName xml.Name `xml:"CreatePaneConfigurationResponse"`
  121. // Token of the new pane configuration.
  122. PaneToken ReferenceToken `xml:"PaneToken,omitempty"`
  123. }
  124. // DeletePaneConfiguration type
  125. type DeletePaneConfiguration struct {
  126. XMLName xml.Name `xml:"http://www.onvif.org/ver10/display/wsdl DeletePaneConfiguration"`
  127. // Token of the video output where the pane shall be deleted.
  128. VideoOutput ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoOutput,omitempty"`
  129. // Token of the pane to be deleted.
  130. PaneToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl PaneToken,omitempty"`
  131. }
  132. // DeletePaneConfigurationResponse type
  133. type DeletePaneConfigurationResponse struct {
  134. XMLName xml.Name `xml:"DeletePaneConfigurationResponse"`
  135. }
  136. // Capabilities type
  137. type Capabilities struct {
  138. // Indication that the SetLayout command supports only predefined layouts.
  139. FixedLayout bool `xml:"http://www.onvif.org/ver10/display/wsdl FixedLayout,attr,omitempty"`
  140. }
  141. // FaultcodeEnum type
  142. type FaultcodeEnum QName
  143. const (
  144. // FaultcodeEnumTnsDataEncodingUnknown const
  145. FaultcodeEnumTnsDataEncodingUnknown FaultcodeEnum = "tns:DataEncodingUnknown"
  146. // FaultcodeEnumTnsMustUnderstand const
  147. FaultcodeEnumTnsMustUnderstand FaultcodeEnum = "tns:MustUnderstand"
  148. // FaultcodeEnumTnsReceiver const
  149. FaultcodeEnumTnsReceiver FaultcodeEnum = "tns:Receiver"
  150. // FaultcodeEnumTnsSender const
  151. FaultcodeEnumTnsSender FaultcodeEnum = "tns:Sender"
  152. // FaultcodeEnumTnsVersionMismatch const
  153. FaultcodeEnumTnsVersionMismatch FaultcodeEnum = "tns:VersionMismatch"
  154. )
  155. // NotUnderstood type
  156. type NotUnderstood NotUnderstoodType
  157. // Upgrade type
  158. type Upgrade UpgradeType
  159. // Envelope type
  160. type Envelope struct {
  161. Header Header `xml:"Header,omitempty"`
  162. Body Body `xml:"Body,omitempty"`
  163. }
  164. // Header type
  165. type Header struct {
  166. }
  167. // Body type
  168. type Body struct {
  169. }
  170. // Fault type
  171. type Fault struct {
  172. Code Faultcode `xml:"Code,omitempty"`
  173. Reason Faultreason `xml:"Reason,omitempty"`
  174. Node AnyURI `xml:"http://www.onvif.org/ver10/schema Node,omitempty"`
  175. Role AnyURI `xml:"http://www.onvif.org/ver10/schema Role,omitempty"`
  176. Detail Detail `xml:"Detail,omitempty"`
  177. }
  178. // Faultreason type
  179. type Faultreason struct {
  180. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultreason"`
  181. Text []Reasontext `xml:"Text,omitempty"`
  182. }
  183. // Reasontext type
  184. type Reasontext struct {
  185. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope reasontext"`
  186. Value string
  187. string `xml:",attr,omitempty"`
  188. }
  189. // Faultcode type
  190. type Faultcode struct {
  191. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultcode"`
  192. Value FaultcodeEnum `xml:"Value,omitempty"`
  193. Subcode *Subcode `xml:"Subcode,omitempty"`
  194. }
  195. // Subcode type
  196. type Subcode struct {
  197. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope subcode"`
  198. Value QName `xml:"http://www.onvif.org/ver10/schema Value,omitempty"`
  199. Subcode *Subcode `xml:"Subcode,omitempty"`
  200. }
  201. // Detail type
  202. type Detail struct {
  203. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope detail"`
  204. }
  205. // NotUnderstoodType type
  206. type NotUnderstoodType struct {
  207. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope NotUnderstood"`
  208. Qname QName `xml:"qname,attr,omitempty"`
  209. }
  210. // SupportedEnvType type
  211. type SupportedEnvType struct {
  212. Qname QName `xml:"qname,attr,omitempty"`
  213. }
  214. // UpgradeType type
  215. type UpgradeType struct {
  216. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Upgrade"`
  217. SupportedEnvelope []SupportedEnvType `xml:"SupportedEnvelope,omitempty"`
  218. }
  219. // RelationshipTypeOpenEnum type
  220. type RelationshipTypeOpenEnum string
  221. // RelationshipType type
  222. type RelationshipType AnyURI
  223. const (
  224. // RelationshipTypeHttpwwww3org200508addressingreply const
  225. RelationshipTypeHttpwwww3org200508addressingreply RelationshipType = "http://www.w3.org/2005/08/addressing/reply"
  226. )
  227. // FaultCodesType type
  228. type FaultCodesType QName
  229. const (
  230. // FaultCodesTypeTnsInvalidAddressingHeader const
  231. FaultCodesTypeTnsInvalidAddressingHeader FaultCodesType = "tns:InvalidAddressingHeader"
  232. // FaultCodesTypeTnsInvalidAddress const
  233. FaultCodesTypeTnsInvalidAddress FaultCodesType = "tns:InvalidAddress"
  234. // FaultCodesTypeTnsInvalidEPR const
  235. FaultCodesTypeTnsInvalidEPR FaultCodesType = "tns:InvalidEPR"
  236. // FaultCodesTypeTnsInvalidCardinality const
  237. FaultCodesTypeTnsInvalidCardinality FaultCodesType = "tns:InvalidCardinality"
  238. // FaultCodesTypeTnsMissingAddressInEPR const
  239. FaultCodesTypeTnsMissingAddressInEPR FaultCodesType = "tns:MissingAddressInEPR"
  240. // FaultCodesTypeTnsDuplicateMessageID const
  241. FaultCodesTypeTnsDuplicateMessageID FaultCodesType = "tns:DuplicateMessageID"
  242. // FaultCodesTypeTnsActionMismatch const
  243. FaultCodesTypeTnsActionMismatch FaultCodesType = "tns:ActionMismatch"
  244. // FaultCodesTypeTnsMessageAddressingHeaderRequired const
  245. FaultCodesTypeTnsMessageAddressingHeaderRequired FaultCodesType = "tns:MessageAddressingHeaderRequired"
  246. // FaultCodesTypeTnsDestinationUnreachable const
  247. FaultCodesTypeTnsDestinationUnreachable FaultCodesType = "tns:DestinationUnreachable"
  248. // FaultCodesTypeTnsActionNotSupported const
  249. FaultCodesTypeTnsActionNotSupported FaultCodesType = "tns:ActionNotSupported"
  250. // FaultCodesTypeTnsEndpointUnavailable const
  251. FaultCodesTypeTnsEndpointUnavailable FaultCodesType = "tns:EndpointUnavailable"
  252. )
  253. // EndpointReference type
  254. type EndpointReference EndpointReferenceType
  255. // Metadata type
  256. type Metadata MetadataType
  257. // RelatesTo type
  258. type RelatesTo RelatesToType
  259. // To type
  260. type To AttributedURIType
  261. // Action type
  262. type Action AttributedURIType
  263. // ProblemAction type
  264. type ProblemAction ProblemActionType
  265. // EndpointReferenceType type
  266. type EndpointReferenceType struct {
  267. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing EndpointReference"`
  268. Address AttributedURIType `xml:"Address,omitempty"`
  269. ReferenceParameters ReferenceParametersType `xml:"ReferenceParameters,omitempty"`
  270. Metadata Metadata `xml:"Metadata,omitempty"`
  271. }
  272. // ReferenceParametersType type
  273. type ReferenceParametersType struct {
  274. }
  275. // MetadataType type
  276. type MetadataType struct {
  277. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing Metadata"`
  278. }
  279. // RelatesToType type
  280. type RelatesToType struct {
  281. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing RelatesTo"`
  282. Value AnyURI
  283. RelationshipType RelationshipTypeOpenEnum `xml:"RelationshipType,attr,omitempty"`
  284. }
  285. // AttributedURIType type
  286. type AttributedURIType struct {
  287. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing MessageID"`
  288. Value AnyURI
  289. }
  290. // ProblemActionType type
  291. type ProblemActionType struct {
  292. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing ProblemAction"`
  293. Action Action `xml:"Action,omitempty"`
  294. SoapAction AnyURI `xml:"http://www.onvif.org/ver10/schema SoapAction,omitempty"`
  295. }
  296. // BaseFault type
  297. type BaseFault BaseFaultType
  298. // BaseFaultType type
  299. type BaseFaultType struct {
  300. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsrf/bf-2 BaseFault"`
  301. Timestamp string `xml:"http://www.onvif.org/ver10/schema Timestamp,omitempty"`
  302. Originator EndpointReferenceType `xml:"Originator,omitempty"`
  303. ErrorCode struct {
  304. Dialect AnyURI `xml:"dialect,attr,omitempty"`
  305. } `xml:"ErrorCode,omitempty"`
  306. Description []struct {
  307. Value string
  308. string `xml:",attr,omitempty"`
  309. } `xml:"Description,omitempty"`
  310. FaultCause struct {
  311. } `xml:"FaultCause,omitempty"`
  312. }
  313. // ConcreteTopicExpression type
  314. type ConcreteTopicExpression string
  315. // SimpleTopicExpression type
  316. type SimpleTopicExpression QName
  317. // TopicNamespace type
  318. type TopicNamespace TopicNamespaceType
  319. // TopicSet type
  320. type TopicSet TopicSetType
  321. // Documentation type
  322. type Documentation struct {
  323. }
  324. // ExtensibleDocumented type
  325. type ExtensibleDocumented struct {
  326. Documentation Documentation `xml:"documentation,omitempty"`
  327. }
  328. // QueryExpressionType type
  329. type QueryExpressionType struct {
  330. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 ProducerProperties"`
  331. Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
  332. }
  333. // TopicNamespaceType type
  334. type TopicNamespaceType struct {
  335. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicNamespace"`
  336. *ExtensibleDocumented
  337. Topic []struct {
  338. *TopicType
  339. Parent ConcreteTopicExpression `xml:"parent,attr,omitempty"`
  340. } `xml:"Topic,omitempty"`
  341. Name NCName `xml:"name,attr,omitempty"`
  342. TargetNamespace AnyURI `xml:"targetNamespace,attr,omitempty"`
  343. Final bool `xml:"final,attr,omitempty"`
  344. }
  345. // TopicType type
  346. type TopicType struct {
  347. *ExtensibleDocumented
  348. MessagePattern QueryExpressionType `xml:"MessagePattern,omitempty"`
  349. Topic []TopicType `xml:"Topic,omitempty"`
  350. Name NCName `xml:"name,attr,omitempty"`
  351. MessageTypes string `xml:"messageTypes,attr,omitempty"`
  352. Final bool `xml:"final,attr,omitempty"`
  353. }
  354. // TopicSetType type
  355. type TopicSetType struct {
  356. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicSet"`
  357. *ExtensibleDocumented
  358. }
  359. // AbsoluteOrRelativeTimeType type
  360. type AbsoluteOrRelativeTimeType string
  361. // TopicExpression type
  362. type TopicExpression TopicExpressionType
  363. // FixedTopicSet type
  364. type FixedTopicSet bool
  365. // TopicExpressionDialect type
  366. type TopicExpressionDialect AnyURI
  367. // ConsumerReference type
  368. type ConsumerReference EndpointReferenceType
  369. // Filter type
  370. type Filter FilterType
  371. // SubscriptionPolicy type
  372. type SubscriptionPolicy SubscriptionPolicyType
  373. // CreationTime type
  374. type CreationTime time.Time
  375. // SubscriptionReference type
  376. type SubscriptionReference EndpointReferenceType
  377. // Topic type
  378. type Topic TopicExpressionType
  379. // ProducerReference type
  380. type ProducerReference EndpointReferenceType
  381. // NotificationMessage type
  382. type NotificationMessage NotificationMessageHolderType
  383. // Notify type
  384. type Notify struct {
  385. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Notify"`
  386. NotificationMessage []NotificationMessage `xml:"NotificationMessage,omitempty"`
  387. }
  388. // CurrentTime type
  389. type CurrentTime time.Time
  390. // TerminationTime type
  391. type TerminationTime time.Time
  392. // Subscribe type
  393. type Subscribe struct {
  394. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Subscribe"`
  395. ConsumerReference EndpointReferenceType `xml:"ConsumerReference,omitempty"`
  396. Filter FilterType `xml:"Filter,omitempty"`
  397. InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"InitialTerminationTime,omitempty"`
  398. SubscriptionPolicy struct {
  399. } `xml:"SubscriptionPolicy,omitempty"`
  400. }
  401. // SubscribeCreationFailedFault type
  402. type SubscribeCreationFailedFault SubscribeCreationFailedFaultType
  403. // InvalidFilterFault type
  404. type InvalidFilterFault InvalidFilterFaultType
  405. // TopicExpressionDialectUnknownFault type
  406. type TopicExpressionDialectUnknownFault TopicExpressionDialectUnknownFaultType
  407. // InvalidTopicExpressionFault type
  408. type InvalidTopicExpressionFault InvalidTopicExpressionFaultType
  409. // TopicNotSupportedFault type
  410. type TopicNotSupportedFault TopicNotSupportedFaultType
  411. // MultipleTopicsSpecifiedFault type
  412. type MultipleTopicsSpecifiedFault MultipleTopicsSpecifiedFaultType
  413. // InvalidProducerPropertiesExpressionFault type
  414. type InvalidProducerPropertiesExpressionFault InvalidProducerPropertiesExpressionFaultType
  415. // InvalidMessageContentExpressionFault type
  416. type InvalidMessageContentExpressionFault InvalidMessageContentExpressionFaultType
  417. // UnrecognizedPolicyRequestFault type
  418. type UnrecognizedPolicyRequestFault UnrecognizedPolicyRequestFaultType
  419. // UnsupportedPolicyRequestFault type
  420. type UnsupportedPolicyRequestFault UnsupportedPolicyRequestFaultType
  421. // NotifyMessageNotSupportedFault type
  422. type NotifyMessageNotSupportedFault NotifyMessageNotSupportedFaultType
  423. // UnacceptableInitialTerminationTimeFault type
  424. type UnacceptableInitialTerminationTimeFault UnacceptableInitialTerminationTimeFaultType
  425. // NoCurrentMessageOnTopicFault type
  426. type NoCurrentMessageOnTopicFault NoCurrentMessageOnTopicFaultType
  427. // UnableToGetMessagesFault type
  428. type UnableToGetMessagesFault UnableToGetMessagesFaultType
  429. // UnableToDestroyPullPointFault type
  430. type UnableToDestroyPullPointFault UnableToDestroyPullPointFaultType
  431. // UnableToCreatePullPointFault type
  432. type UnableToCreatePullPointFault UnableToCreatePullPointFaultType
  433. // UnacceptableTerminationTimeFault type
  434. type UnacceptableTerminationTimeFault UnacceptableTerminationTimeFaultType
  435. // UnableToDestroySubscriptionFault type
  436. type UnableToDestroySubscriptionFault UnableToDestroySubscriptionFaultType
  437. // PauseFailedFault type
  438. type PauseFailedFault PauseFailedFaultType
  439. // ResumeFailedFault type
  440. type ResumeFailedFault ResumeFailedFaultType
  441. // Removed QueryExpressionType
  442. // TopicExpressionType type
  443. type TopicExpressionType struct {
  444. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpression"`
  445. Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
  446. }
  447. // FilterType type
  448. type FilterType struct {
  449. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Filter"`
  450. }
  451. // SubscriptionPolicyType type
  452. type SubscriptionPolicyType struct {
  453. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscriptionPolicy"`
  454. }
  455. // NotificationMessageHolderType type
  456. type NotificationMessageHolderType struct {
  457. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotificationMessage"`
  458. SubscriptionReference SubscriptionReference `xml:"SubscriptionReference,omitempty"`
  459. Topic Topic `xml:"Topic,omitempty"`
  460. ProducerReference ProducerReference `xml:"ProducerReference,omitempty"`
  461. Message struct {
  462. } `xml:"Message,omitempty"`
  463. }
  464. // SubscribeCreationFailedFaultType type
  465. type SubscribeCreationFailedFaultType struct {
  466. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscribeCreationFailedFault"`
  467. *BaseFaultType
  468. }
  469. // InvalidFilterFaultType type
  470. type InvalidFilterFaultType struct {
  471. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidFilterFault"`
  472. *BaseFaultType
  473. UnknownFilter []QName `xml:"http://www.onvif.org/ver10/schema UnknownFilter,omitempty"`
  474. }
  475. // TopicExpressionDialectUnknownFaultType type
  476. type TopicExpressionDialectUnknownFaultType struct {
  477. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpressionDialectUnknownFault"`
  478. *BaseFaultType
  479. }
  480. // InvalidTopicExpressionFaultType type
  481. type InvalidTopicExpressionFaultType struct {
  482. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidTopicExpressionFault"`
  483. *BaseFaultType
  484. }
  485. // TopicNotSupportedFaultType type
  486. type TopicNotSupportedFaultType struct {
  487. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicNotSupportedFault"`
  488. *BaseFaultType
  489. }
  490. // MultipleTopicsSpecifiedFaultType type
  491. type MultipleTopicsSpecifiedFaultType struct {
  492. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 MultipleTopicsSpecifiedFault"`
  493. *BaseFaultType
  494. }
  495. // InvalidProducerPropertiesExpressionFaultType type
  496. type InvalidProducerPropertiesExpressionFaultType struct {
  497. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidProducerPropertiesExpressionFault"`
  498. *BaseFaultType
  499. }
  500. // InvalidMessageContentExpressionFaultType type
  501. type InvalidMessageContentExpressionFaultType struct {
  502. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidMessageContentExpressionFault"`
  503. *BaseFaultType
  504. }
  505. // UnrecognizedPolicyRequestFaultType type
  506. type UnrecognizedPolicyRequestFaultType struct {
  507. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnrecognizedPolicyRequestFault"`
  508. *BaseFaultType
  509. UnrecognizedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnrecognizedPolicy,omitempty"`
  510. }
  511. // UnsupportedPolicyRequestFaultType type
  512. type UnsupportedPolicyRequestFaultType struct {
  513. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnsupportedPolicyRequestFault"`
  514. *BaseFaultType
  515. UnsupportedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnsupportedPolicy,omitempty"`
  516. }
  517. // NotifyMessageNotSupportedFaultType type
  518. type NotifyMessageNotSupportedFaultType struct {
  519. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotifyMessageNotSupportedFault"`
  520. *BaseFaultType
  521. }
  522. // UnacceptableInitialTerminationTimeFaultType type
  523. type UnacceptableInitialTerminationTimeFaultType struct {
  524. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableInitialTerminationTimeFault"`
  525. *BaseFaultType
  526. MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
  527. MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
  528. }
  529. // NoCurrentMessageOnTopicFaultType type
  530. type NoCurrentMessageOnTopicFaultType struct {
  531. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NoCurrentMessageOnTopicFault"`
  532. *BaseFaultType
  533. }
  534. // UnableToGetMessagesFaultType type
  535. type UnableToGetMessagesFaultType struct {
  536. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToGetMessagesFault"`
  537. *BaseFaultType
  538. }
  539. // UnableToDestroyPullPointFaultType type
  540. type UnableToDestroyPullPointFaultType struct {
  541. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroyPullPointFault"`
  542. *BaseFaultType
  543. }
  544. // UnableToCreatePullPointFaultType type
  545. type UnableToCreatePullPointFaultType struct {
  546. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToCreatePullPointFault"`
  547. *BaseFaultType
  548. }
  549. // UnacceptableTerminationTimeFaultType type
  550. type UnacceptableTerminationTimeFaultType struct {
  551. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableTerminationTimeFault"`
  552. *BaseFaultType
  553. MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
  554. MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
  555. }
  556. // UnableToDestroySubscriptionFaultType type
  557. type UnableToDestroySubscriptionFaultType struct {
  558. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroySubscriptionFault"`
  559. *BaseFaultType
  560. }
  561. // PauseFailedFaultType type
  562. type PauseFailedFaultType struct {
  563. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 PauseFailedFault"`
  564. *BaseFaultType
  565. }
  566. // ResumeFailedFaultType type
  567. type ResumeFailedFaultType struct {
  568. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 ResumeFailedFault"`
  569. *BaseFaultType
  570. }
  571. // Include type
  572. type Include struct {
  573. Href AnyURI `xml:"href,attr,omitempty"`
  574. }
  575. // Unique identifier for a physical or logical resource.
  576. // Tokens should be assigned such that they are unique within a device. Tokens must be at least unique within its class.
  577. // Length up to 64 characters.
  578. // ReferenceToken type
  579. type ReferenceToken string
  580. // MoveStatus type
  581. type MoveStatus string
  582. const (
  583. // MoveStatusIDLE const
  584. MoveStatusIDLE MoveStatus = "IDLE"
  585. // MoveStatusMOVING const
  586. MoveStatusMOVING MoveStatus = "MOVING"
  587. // MoveStatusUNKNOWN const
  588. MoveStatusUNKNOWN MoveStatus = "UNKNOWN"
  589. )
  590. // Entity type
  591. type Entity string
  592. const (
  593. // EntityDevice const
  594. EntityDevice Entity = "Device"
  595. // EntityVideoSource const
  596. EntityVideoSource Entity = "VideoSource"
  597. // EntityAudioSource const
  598. EntityAudioSource Entity = "AudioSource"
  599. )
  600. // IntRange type
  601. type IntRange struct {
  602. Min int32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  603. Max int32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  604. }
  605. // Vector2D type
  606. type Vector2D struct {
  607. X float32 `xml:"x,attr,omitempty"`
  608. Y float32 `xml:"y,attr,omitempty"`
  609. //
  610. // Pan/tilt coordinate space selector. The following options are defined:
  611. //
  612. Space AnyURI `xml:"space,attr,omitempty"`
  613. }
  614. // Vector1D type
  615. type Vector1D struct {
  616. X float32 `xml:"x,attr,omitempty"`
  617. //
  618. // Zoom coordinate space selector. The following options are defined:
  619. //
  620. Space AnyURI `xml:"space,attr,omitempty"`
  621. }
  622. // PTZVector type
  623. type PTZVector struct {
  624. // Pan and tilt position. The x component corresponds to pan and the y component to tilt.
  625. PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  626. //
  627. // A zoom position.
  628. //
  629. Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  630. }
  631. // PTZStatus type
  632. type PTZStatus struct {
  633. //
  634. // Specifies the absolute position of the PTZ unit together with the Space references. The default absolute spaces of the corresponding PTZ configuration MUST be referenced within the Position element.
  635. //
  636. Position PTZVector `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  637. //
  638. // Indicates if the Pan/Tilt/Zoom device unit is currently moving, idle or in an unknown state.
  639. //
  640. MoveStatus PTZMoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  641. //
  642. // States a current PTZ error.
  643. //
  644. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  645. //
  646. // Specifies the UTC time when this status was generated.
  647. //
  648. UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,omitempty"`
  649. }
  650. // PTZMoveStatus type
  651. type PTZMoveStatus struct {
  652. PanTilt MoveStatus `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  653. Zoom MoveStatus `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  654. }
  655. // Vector type
  656. type Vector struct {
  657. X float32 `xml:"x,attr,omitempty"`
  658. Y float32 `xml:"y,attr,omitempty"`
  659. }
  660. // Rectangle type
  661. type Rectangle struct {
  662. Bottom float32 `xml:"bottom,attr,omitempty"`
  663. Top float32 `xml:"top,attr,omitempty"`
  664. Right float32 `xml:"right,attr,omitempty"`
  665. Left float32 `xml:"left,attr,omitempty"`
  666. }
  667. // Polygon type
  668. type Polygon struct {
  669. Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
  670. }
  671. // Color type
  672. type Color struct {
  673. X float32 `xml:"http://www.onvif.org/ver10/schema X,attr,omitempty"`
  674. Y float32 `xml:"http://www.onvif.org/ver10/schema Y,attr,omitempty"`
  675. Z float32 `xml:"http://www.onvif.org/ver10/schema Z,attr,omitempty"`
  676. //
  677. // Acceptable values:
  678. //
  679. // If the Colorspace attribute is absent, YCbCr is implied.
  680. //
  681. // Deprecated values:
  682. //
  683. //
  684. Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,attr,omitempty"`
  685. }
  686. // Transformation type
  687. type Transformation struct {
  688. Translate Vector `xml:"http://www.onvif.org/ver10/schema Translate,omitempty"`
  689. Scale Vector `xml:"http://www.onvif.org/ver10/schema Scale,omitempty"`
  690. Extension TransformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  691. }
  692. // TransformationExtension type
  693. type TransformationExtension struct {
  694. }
  695. // User readable name. Length up to 64 characters.
  696. // Name type
  697. type Name string
  698. // IntAttrList type
  699. type IntAttrList []int32
  700. // FloatAttrList type
  701. type FloatAttrList []float32
  702. // StringAttrList type
  703. type StringAttrList []string
  704. // ReferenceTokenList type
  705. type ReferenceTokenList []ReferenceToken
  706. // RotateMode type
  707. type RotateMode string
  708. const (
  709. // Enable the Rotate feature. Degree of rotation is specified Degree parameter.
  710. // RotateModeOFF const
  711. RotateModeOFF RotateMode = "OFF"
  712. // Disable the Rotate feature.
  713. // RotateModeON const
  714. RotateModeON RotateMode = "ON"
  715. // Rotate feature is automatically activated by the device.
  716. // RotateModeAUTO const
  717. RotateModeAUTO RotateMode = "AUTO"
  718. )
  719. // SceneOrientationMode type
  720. type SceneOrientationMode string
  721. const (
  722. // SceneOrientationModeMANUAL const
  723. SceneOrientationModeMANUAL SceneOrientationMode = "MANUAL"
  724. // SceneOrientationModeAUTO const
  725. SceneOrientationModeAUTO SceneOrientationMode = "AUTO"
  726. )
  727. // SceneOrientationOption type
  728. type SceneOrientationOption string
  729. const (
  730. // SceneOrientationOptionBelow const
  731. SceneOrientationOptionBelow SceneOrientationOption = "Below"
  732. // SceneOrientationOptionHorizon const
  733. SceneOrientationOptionHorizon SceneOrientationOption = "Horizon"
  734. // SceneOrientationOptionAbove const
  735. SceneOrientationOptionAbove SceneOrientationOption = "Above"
  736. )
  737. // Source view modes supported by device.
  738. // ViewModes type
  739. type ViewModes string
  740. const (
  741. // Undewarped viewmode from device supporting fisheye lens.
  742. // ViewModesTtFisheye const
  743. ViewModesTtFisheye ViewModes = "tt:Fisheye"
  744. // 360 degree panoramic view.
  745. // ViewModesTt360Panorama const
  746. ViewModesTt360Panorama ViewModes = "tt:360Panorama"
  747. // 180 degree panoramic view.
  748. // ViewModesTt180Panorama const
  749. ViewModesTt180Panorama ViewModes = "tt:180Panorama"
  750. // View mode combining four streams in single Quad, eg., applicable for devices supporting four heads.
  751. // ViewModesTtQuad const
  752. ViewModesTtQuad ViewModes = "tt:Quad"
  753. // Unaltered view from the sensor.
  754. // ViewModesTtOriginal const
  755. ViewModesTtOriginal ViewModes = "tt:Original"
  756. // Viewmode combining the left side sensors, applicable for devices supporting multiple sensors.
  757. // ViewModesTtLeftHalf const
  758. ViewModesTtLeftHalf ViewModes = "tt:LeftHalf"
  759. // Viewmode combining the right side sensors, applicable for devices supporting multiple sensors.
  760. // ViewModesTtRightHalf const
  761. ViewModesTtRightHalf ViewModes = "tt:RightHalf"
  762. // Dewarped view mode for device supporting fisheye lens.
  763. // ViewModesTtDewarp const
  764. ViewModesTtDewarp ViewModes = "tt:Dewarp"
  765. )
  766. // VideoEncoding type
  767. type VideoEncoding string
  768. const (
  769. // VideoEncodingJPEG const
  770. VideoEncodingJPEG VideoEncoding = "JPEG"
  771. // VideoEncodingMPEG4 const
  772. VideoEncodingMPEG4 VideoEncoding = "MPEG4"
  773. // VideoEncodingH264 const
  774. VideoEncodingH264 VideoEncoding = "H264"
  775. )
  776. // Mpeg4Profile type
  777. type Mpeg4Profile string
  778. const (
  779. // Mpeg4ProfileSP const
  780. Mpeg4ProfileSP Mpeg4Profile = "SP"
  781. // Mpeg4ProfileASP const
  782. Mpeg4ProfileASP Mpeg4Profile = "ASP"
  783. )
  784. // H264Profile type
  785. type H264Profile string
  786. const (
  787. // H264ProfileBaseline const
  788. H264ProfileBaseline H264Profile = "Baseline"
  789. // H264ProfileMain const
  790. H264ProfileMain H264Profile = "Main"
  791. // H264ProfileExtended const
  792. H264ProfileExtended H264Profile = "Extended"
  793. // H264ProfileHigh const
  794. H264ProfileHigh H264Profile = "High"
  795. )
  796. // Video Media Subtypes as referenced by IANA (without the leading "video/" Video Media Type). See also .
  797. // VideoEncodingMimeNames type
  798. type VideoEncodingMimeNames string
  799. const (
  800. // VideoEncodingMimeNamesJPEG const
  801. VideoEncodingMimeNamesJPEG VideoEncodingMimeNames = "JPEG"
  802. // VideoEncodingMimeNamesMPV4ES const
  803. VideoEncodingMimeNamesMPV4ES VideoEncodingMimeNames = "MPV4-ES"
  804. // VideoEncodingMimeNamesH264 const
  805. VideoEncodingMimeNamesH264 VideoEncodingMimeNames = "H264"
  806. // VideoEncodingMimeNamesH265 const
  807. VideoEncodingMimeNamesH265 VideoEncodingMimeNames = "H265"
  808. )
  809. // VideoEncodingProfiles type
  810. type VideoEncodingProfiles string
  811. const (
  812. // VideoEncodingProfilesSimple const
  813. VideoEncodingProfilesSimple VideoEncodingProfiles = "Simple"
  814. // VideoEncodingProfilesAdvancedSimple const
  815. VideoEncodingProfilesAdvancedSimple VideoEncodingProfiles = "AdvancedSimple"
  816. // VideoEncodingProfilesBaseline const
  817. VideoEncodingProfilesBaseline VideoEncodingProfiles = "Baseline"
  818. // VideoEncodingProfilesMain const
  819. VideoEncodingProfilesMain VideoEncodingProfiles = "Main"
  820. // VideoEncodingProfilesMain10 const
  821. VideoEncodingProfilesMain10 VideoEncodingProfiles = "Main10"
  822. // VideoEncodingProfilesExtended const
  823. VideoEncodingProfilesExtended VideoEncodingProfiles = "Extended"
  824. // VideoEncodingProfilesHigh const
  825. VideoEncodingProfilesHigh VideoEncodingProfiles = "High"
  826. )
  827. // AudioEncoding type
  828. type AudioEncoding string
  829. const (
  830. // AudioEncodingG711 const
  831. AudioEncodingG711 AudioEncoding = "G711"
  832. // AudioEncodingG726 const
  833. AudioEncodingG726 AudioEncoding = "G726"
  834. // AudioEncodingAAC const
  835. AudioEncodingAAC AudioEncoding = "AAC"
  836. )
  837. // Audio Media Subtypes as referenced by IANA (without the leading "audio/" Audio Media Type). See also .
  838. // AudioEncodingMimeNames type
  839. type AudioEncodingMimeNames string
  840. const (
  841. // AudioEncodingMimeNamesPCMU const
  842. AudioEncodingMimeNamesPCMU AudioEncodingMimeNames = "PCMU"
  843. // AudioEncodingMimeNamesG726 const
  844. AudioEncodingMimeNamesG726 AudioEncodingMimeNames = "G726"
  845. // AudioEncodingMimeNamesMP4ALATM const
  846. AudioEncodingMimeNamesMP4ALATM AudioEncodingMimeNames = "MP4A-LATM"
  847. // AudioEncodingMimeNamesMpeg4generic const
  848. AudioEncodingMimeNamesMpeg4generic AudioEncodingMimeNames = "mpeg4-generic"
  849. )
  850. // MetadataCompressionType type
  851. type MetadataCompressionType string
  852. const (
  853. // MetadataCompressionTypeNone const
  854. MetadataCompressionTypeNone MetadataCompressionType = "None"
  855. // MetadataCompressionTypeGZIP const
  856. MetadataCompressionTypeGZIP MetadataCompressionType = "GZIP"
  857. // MetadataCompressionTypeEXI const
  858. MetadataCompressionTypeEXI MetadataCompressionType = "EXI"
  859. )
  860. // StreamType type
  861. type StreamType string
  862. const (
  863. // StreamTypeRTPUnicast const
  864. StreamTypeRTPUnicast StreamType = "RTP-Unicast"
  865. // StreamTypeRTPMulticast const
  866. StreamTypeRTPMulticast StreamType = "RTP-Multicast"
  867. )
  868. // TransportProtocol type
  869. type TransportProtocol string
  870. const (
  871. // TransportProtocolUDP const
  872. TransportProtocolUDP TransportProtocol = "UDP"
  873. // This value is deprecated.
  874. // TransportProtocolTCP const
  875. TransportProtocolTCP TransportProtocol = "TCP"
  876. // TransportProtocolRTSP const
  877. TransportProtocolRTSP TransportProtocol = "RTSP"
  878. // TransportProtocolHTTP const
  879. TransportProtocolHTTP TransportProtocol = "HTTP"
  880. )
  881. // ScopeDefinition type
  882. type ScopeDefinition string
  883. const (
  884. // ScopeDefinitionFixed const
  885. ScopeDefinitionFixed ScopeDefinition = "Fixed"
  886. // ScopeDefinitionConfigurable const
  887. ScopeDefinitionConfigurable ScopeDefinition = "Configurable"
  888. )
  889. // DiscoveryMode type
  890. type DiscoveryMode string
  891. const (
  892. // DiscoveryModeDiscoverable const
  893. DiscoveryModeDiscoverable DiscoveryMode = "Discoverable"
  894. // DiscoveryModeNonDiscoverable const
  895. DiscoveryModeNonDiscoverable DiscoveryMode = "NonDiscoverable"
  896. )
  897. // NetworkInterfaceConfigPriority type
  898. type NetworkInterfaceConfigPriority int32
  899. // Duplex type
  900. type Duplex string
  901. const (
  902. // DuplexFull const
  903. DuplexFull Duplex = "Full"
  904. // DuplexHalf const
  905. DuplexHalf Duplex = "Half"
  906. )
  907. // IANAIfTypes type
  908. type IANAIfTypes int32
  909. // IPv6DHCPConfiguration type
  910. type IPv6DHCPConfiguration string
  911. const (
  912. // IPv6DHCPConfigurationAuto const
  913. IPv6DHCPConfigurationAuto IPv6DHCPConfiguration = "Auto"
  914. // IPv6DHCPConfigurationStateful const
  915. IPv6DHCPConfigurationStateful IPv6DHCPConfiguration = "Stateful"
  916. // IPv6DHCPConfigurationStateless const
  917. IPv6DHCPConfigurationStateless IPv6DHCPConfiguration = "Stateless"
  918. // IPv6DHCPConfigurationOff const
  919. IPv6DHCPConfigurationOff IPv6DHCPConfiguration = "Off"
  920. )
  921. // NetworkProtocolType type
  922. type NetworkProtocolType string
  923. const (
  924. // NetworkProtocolTypeHTTP const
  925. NetworkProtocolTypeHTTP NetworkProtocolType = "HTTP"
  926. // NetworkProtocolTypeHTTPS const
  927. NetworkProtocolTypeHTTPS NetworkProtocolType = "HTTPS"
  928. // NetworkProtocolTypeRTSP const
  929. NetworkProtocolTypeRTSP NetworkProtocolType = "RTSP"
  930. )
  931. // NetworkHostType type
  932. type NetworkHostType string
  933. const (
  934. // NetworkHostTypeIPv4 const
  935. NetworkHostTypeIPv4 NetworkHostType = "IPv4"
  936. // NetworkHostTypeIPv6 const
  937. NetworkHostTypeIPv6 NetworkHostType = "IPv6"
  938. // NetworkHostTypeDNS const
  939. NetworkHostTypeDNS NetworkHostType = "DNS"
  940. )
  941. // IPv4Address type
  942. type IPv4Address string
  943. // IPv6Address type
  944. type IPv6Address string
  945. // HwAddress type
  946. type HwAddress string
  947. // IPType type
  948. type IPType string
  949. const (
  950. // IPTypeIPv4 const
  951. IPTypeIPv4 IPType = "IPv4"
  952. // IPTypeIPv6 const
  953. IPTypeIPv6 IPType = "IPv6"
  954. )
  955. // DNSName type
  956. type DNSName string
  957. // IPAddressFilterType type
  958. type IPAddressFilterType string
  959. const (
  960. // IPAddressFilterTypeAllow const
  961. IPAddressFilterTypeAllow IPAddressFilterType = "Allow"
  962. // IPAddressFilterTypeDeny const
  963. IPAddressFilterTypeDeny IPAddressFilterType = "Deny"
  964. )
  965. // DynamicDNSType type
  966. type DynamicDNSType string
  967. const (
  968. // DynamicDNSTypeNoUpdate const
  969. DynamicDNSTypeNoUpdate DynamicDNSType = "NoUpdate"
  970. // DynamicDNSTypeClientUpdates const
  971. DynamicDNSTypeClientUpdates DynamicDNSType = "ClientUpdates"
  972. // DynamicDNSTypeServerUpdates const
  973. DynamicDNSTypeServerUpdates DynamicDNSType = "ServerUpdates"
  974. )
  975. // Dot11SSIDType type
  976. type Dot11SSIDType []byte
  977. // Dot11StationMode type
  978. type Dot11StationMode string
  979. const (
  980. // Dot11StationModeAdhoc const
  981. Dot11StationModeAdhoc Dot11StationMode = "Ad-hoc"
  982. // Dot11StationModeInfrastructure const
  983. Dot11StationModeInfrastructure Dot11StationMode = "Infrastructure"
  984. // Dot11StationModeExtended const
  985. Dot11StationModeExtended Dot11StationMode = "Extended"
  986. )
  987. // Dot11SecurityMode type
  988. type Dot11SecurityMode string
  989. const (
  990. // Dot11SecurityModeNone const
  991. Dot11SecurityModeNone Dot11SecurityMode = "None"
  992. // Dot11SecurityModeWEP const
  993. Dot11SecurityModeWEP Dot11SecurityMode = "WEP"
  994. // Dot11SecurityModePSK const
  995. Dot11SecurityModePSK Dot11SecurityMode = "PSK"
  996. // Dot11SecurityModeDot1X const
  997. Dot11SecurityModeDot1X Dot11SecurityMode = "Dot1X"
  998. // Dot11SecurityModeExtended const
  999. Dot11SecurityModeExtended Dot11SecurityMode = "Extended"
  1000. )
  1001. // Dot11Cipher type
  1002. type Dot11Cipher string
  1003. const (
  1004. // Dot11CipherCCMP const
  1005. Dot11CipherCCMP Dot11Cipher = "CCMP"
  1006. // Dot11CipherTKIP const
  1007. Dot11CipherTKIP Dot11Cipher = "TKIP"
  1008. // Dot11CipherAny const
  1009. Dot11CipherAny Dot11Cipher = "Any"
  1010. // Dot11CipherExtended const
  1011. Dot11CipherExtended Dot11Cipher = "Extended"
  1012. )
  1013. // Dot11PSK type
  1014. type Dot11PSK []byte
  1015. // Dot11PSKPassphrase type
  1016. type Dot11PSKPassphrase string
  1017. // Dot11SignalStrength type
  1018. type Dot11SignalStrength string
  1019. const (
  1020. // Dot11SignalStrengthNone const
  1021. Dot11SignalStrengthNone Dot11SignalStrength = "None"
  1022. // Dot11SignalStrengthVeryBad const
  1023. Dot11SignalStrengthVeryBad Dot11SignalStrength = "Very Bad"
  1024. // Dot11SignalStrengthBad const
  1025. Dot11SignalStrengthBad Dot11SignalStrength = "Bad"
  1026. // Dot11SignalStrengthGood const
  1027. Dot11SignalStrengthGood Dot11SignalStrength = "Good"
  1028. // Dot11SignalStrengthVeryGood const
  1029. Dot11SignalStrengthVeryGood Dot11SignalStrength = "Very Good"
  1030. // Dot11SignalStrengthExtended const
  1031. Dot11SignalStrengthExtended Dot11SignalStrength = "Extended"
  1032. )
  1033. // Dot11AuthAndMangementSuite type
  1034. type Dot11AuthAndMangementSuite string
  1035. const (
  1036. // Dot11AuthAndMangementSuiteNone const
  1037. Dot11AuthAndMangementSuiteNone Dot11AuthAndMangementSuite = "None"
  1038. // Dot11AuthAndMangementSuiteDot1X const
  1039. Dot11AuthAndMangementSuiteDot1X Dot11AuthAndMangementSuite = "Dot1X"
  1040. // Dot11AuthAndMangementSuitePSK const
  1041. Dot11AuthAndMangementSuitePSK Dot11AuthAndMangementSuite = "PSK"
  1042. // Dot11AuthAndMangementSuiteExtended const
  1043. Dot11AuthAndMangementSuiteExtended Dot11AuthAndMangementSuite = "Extended"
  1044. )
  1045. // CapabilityCategory type
  1046. type CapabilityCategory string
  1047. const (
  1048. // CapabilityCategoryAll const
  1049. CapabilityCategoryAll CapabilityCategory = "All"
  1050. // CapabilityCategoryAnalytics const
  1051. CapabilityCategoryAnalytics CapabilityCategory = "Analytics"
  1052. // CapabilityCategoryDevice const
  1053. CapabilityCategoryDevice CapabilityCategory = "Device"
  1054. // CapabilityCategoryEvents const
  1055. CapabilityCategoryEvents CapabilityCategory = "Events"
  1056. // CapabilityCategoryImaging const
  1057. CapabilityCategoryImaging CapabilityCategory = "Imaging"
  1058. // CapabilityCategoryMedia const
  1059. CapabilityCategoryMedia CapabilityCategory = "Media"
  1060. // CapabilityCategoryPTZ const
  1061. CapabilityCategoryPTZ CapabilityCategory = "PTZ"
  1062. )
  1063. // Enumeration describing the available system log modes.
  1064. // SystemLogType type
  1065. type SystemLogType string
  1066. const (
  1067. // Indicates that a system log is requested.
  1068. // SystemLogTypeSystem const
  1069. SystemLogTypeSystem SystemLogType = "System"
  1070. // Indicates that a access log is requested.
  1071. // SystemLogTypeAccess const
  1072. SystemLogTypeAccess SystemLogType = "Access"
  1073. )
  1074. // Enumeration describing the available factory default modes.
  1075. // FactoryDefaultType type
  1076. type FactoryDefaultType string
  1077. const (
  1078. // Indicates that a hard factory default is requested.
  1079. // FactoryDefaultTypeHard const
  1080. FactoryDefaultTypeHard FactoryDefaultType = "Hard"
  1081. // Indicates that a soft factory default is requested.
  1082. // FactoryDefaultTypeSoft const
  1083. FactoryDefaultTypeSoft FactoryDefaultType = "Soft"
  1084. )
  1085. // SetDateTimeType type
  1086. type SetDateTimeType string
  1087. const (
  1088. // Indicates that the date and time are set manually.
  1089. // SetDateTimeTypeManual const
  1090. SetDateTimeTypeManual SetDateTimeType = "Manual"
  1091. // Indicates that the date and time are set through NTP
  1092. // SetDateTimeTypeNTP const
  1093. SetDateTimeTypeNTP SetDateTimeType = "NTP"
  1094. )
  1095. // UserLevel type
  1096. type UserLevel string
  1097. const (
  1098. // UserLevelAdministrator const
  1099. UserLevelAdministrator UserLevel = "Administrator"
  1100. // UserLevelOperator const
  1101. UserLevelOperator UserLevel = "Operator"
  1102. // UserLevelUser const
  1103. UserLevelUser UserLevel = "User"
  1104. // UserLevelAnonymous const
  1105. UserLevelAnonymous UserLevel = "Anonymous"
  1106. // UserLevelExtended const
  1107. UserLevelExtended UserLevel = "Extended"
  1108. )
  1109. // RelayLogicalState type
  1110. type RelayLogicalState string
  1111. const (
  1112. // RelayLogicalStateActive const
  1113. RelayLogicalStateActive RelayLogicalState = "active"
  1114. // RelayLogicalStateInactive const
  1115. RelayLogicalStateInactive RelayLogicalState = "inactive"
  1116. )
  1117. // RelayIdleState type
  1118. type RelayIdleState string
  1119. const (
  1120. // RelayIdleStateClosed const
  1121. RelayIdleStateClosed RelayIdleState = "closed"
  1122. // RelayIdleStateOpen const
  1123. RelayIdleStateOpen RelayIdleState = "open"
  1124. )
  1125. // RelayMode type
  1126. type RelayMode string
  1127. const (
  1128. // RelayModeMonostable const
  1129. RelayModeMonostable RelayMode = "Monostable"
  1130. // RelayModeBistable const
  1131. RelayModeBistable RelayMode = "Bistable"
  1132. )
  1133. // DigitalIdleState type
  1134. type DigitalIdleState string
  1135. const (
  1136. // DigitalIdleStateClosed const
  1137. DigitalIdleStateClosed DigitalIdleState = "closed"
  1138. // DigitalIdleStateOpen const
  1139. DigitalIdleStateOpen DigitalIdleState = "open"
  1140. )
  1141. // EFlipMode type
  1142. type EFlipMode string
  1143. const (
  1144. // EFlipModeOFF const
  1145. EFlipModeOFF EFlipMode = "OFF"
  1146. // EFlipModeON const
  1147. EFlipModeON EFlipMode = "ON"
  1148. // EFlipModeExtended const
  1149. EFlipModeExtended EFlipMode = "Extended"
  1150. )
  1151. // ReverseMode type
  1152. type ReverseMode string
  1153. const (
  1154. // ReverseModeOFF const
  1155. ReverseModeOFF ReverseMode = "OFF"
  1156. // ReverseModeON const
  1157. ReverseModeON ReverseMode = "ON"
  1158. // ReverseModeAUTO const
  1159. ReverseModeAUTO ReverseMode = "AUTO"
  1160. // ReverseModeExtended const
  1161. ReverseModeExtended ReverseMode = "Extended"
  1162. )
  1163. // AuxiliaryData type
  1164. type AuxiliaryData string
  1165. // PTZPresetTourState type
  1166. type PTZPresetTourState string
  1167. const (
  1168. // PTZPresetTourStateIdle const
  1169. PTZPresetTourStateIdle PTZPresetTourState = "Idle"
  1170. // PTZPresetTourStateTouring const
  1171. PTZPresetTourStateTouring PTZPresetTourState = "Touring"
  1172. // PTZPresetTourStatePaused const
  1173. PTZPresetTourStatePaused PTZPresetTourState = "Paused"
  1174. // PTZPresetTourStateExtended const
  1175. PTZPresetTourStateExtended PTZPresetTourState = "Extended"
  1176. )
  1177. // PTZPresetTourDirection type
  1178. type PTZPresetTourDirection string
  1179. const (
  1180. // PTZPresetTourDirectionForward const
  1181. PTZPresetTourDirectionForward PTZPresetTourDirection = "Forward"
  1182. // PTZPresetTourDirectionBackward const
  1183. PTZPresetTourDirectionBackward PTZPresetTourDirection = "Backward"
  1184. // PTZPresetTourDirectionExtended const
  1185. PTZPresetTourDirectionExtended PTZPresetTourDirection = "Extended"
  1186. )
  1187. // PTZPresetTourOperation type
  1188. type PTZPresetTourOperation string
  1189. const (
  1190. // PTZPresetTourOperationStart const
  1191. PTZPresetTourOperationStart PTZPresetTourOperation = "Start"
  1192. // PTZPresetTourOperationStop const
  1193. PTZPresetTourOperationStop PTZPresetTourOperation = "Stop"
  1194. // PTZPresetTourOperationPause const
  1195. PTZPresetTourOperationPause PTZPresetTourOperation = "Pause"
  1196. // PTZPresetTourOperationExtended const
  1197. PTZPresetTourOperationExtended PTZPresetTourOperation = "Extended"
  1198. )
  1199. // AutoFocusMode type
  1200. type AutoFocusMode string
  1201. const (
  1202. // AutoFocusModeAUTO const
  1203. AutoFocusModeAUTO AutoFocusMode = "AUTO"
  1204. // AutoFocusModeMANUAL const
  1205. AutoFocusModeMANUAL AutoFocusMode = "MANUAL"
  1206. )
  1207. // AFModes type
  1208. type AFModes string
  1209. const (
  1210. // Focus of a moving camera is updated only once after stopping a pan, tilt or zoom movement.
  1211. // AFModesOnceAfterMove const
  1212. AFModesOnceAfterMove AFModes = "OnceAfterMove"
  1213. )
  1214. // WideDynamicMode type
  1215. type WideDynamicMode string
  1216. const (
  1217. // WideDynamicModeOFF const
  1218. WideDynamicModeOFF WideDynamicMode = "OFF"
  1219. // WideDynamicModeON const
  1220. WideDynamicModeON WideDynamicMode = "ON"
  1221. )
  1222. // Enumeration describing the available backlight compenstation modes.
  1223. // BacklightCompensationMode type
  1224. type BacklightCompensationMode string
  1225. const (
  1226. // Backlight compensation is disabled.
  1227. // BacklightCompensationModeOFF const
  1228. BacklightCompensationModeOFF BacklightCompensationMode = "OFF"
  1229. // Backlight compensation is enabled.
  1230. // BacklightCompensationModeON const
  1231. BacklightCompensationModeON BacklightCompensationMode = "ON"
  1232. )
  1233. // ExposurePriority type
  1234. type ExposurePriority string
  1235. const (
  1236. // ExposurePriorityLowNoise const
  1237. ExposurePriorityLowNoise ExposurePriority = "LowNoise"
  1238. // ExposurePriorityFrameRate const
  1239. ExposurePriorityFrameRate ExposurePriority = "FrameRate"
  1240. )
  1241. // ExposureMode type
  1242. type ExposureMode string
  1243. const (
  1244. // ExposureModeAUTO const
  1245. ExposureModeAUTO ExposureMode = "AUTO"
  1246. // ExposureModeMANUAL const
  1247. ExposureModeMANUAL ExposureMode = "MANUAL"
  1248. )
  1249. // Enabled type
  1250. type Enabled string
  1251. const (
  1252. // EnabledENABLED const
  1253. EnabledENABLED Enabled = "ENABLED"
  1254. // EnabledDISABLED const
  1255. EnabledDISABLED Enabled = "DISABLED"
  1256. )
  1257. // WhiteBalanceMode type
  1258. type WhiteBalanceMode string
  1259. const (
  1260. // WhiteBalanceModeAUTO const
  1261. WhiteBalanceModeAUTO WhiteBalanceMode = "AUTO"
  1262. // WhiteBalanceModeMANUAL const
  1263. WhiteBalanceModeMANUAL WhiteBalanceMode = "MANUAL"
  1264. )
  1265. // IrCutFilterMode type
  1266. type IrCutFilterMode string
  1267. const (
  1268. // IrCutFilterModeON const
  1269. IrCutFilterModeON IrCutFilterMode = "ON"
  1270. // IrCutFilterModeOFF const
  1271. IrCutFilterModeOFF IrCutFilterMode = "OFF"
  1272. // IrCutFilterModeAUTO const
  1273. IrCutFilterModeAUTO IrCutFilterMode = "AUTO"
  1274. )
  1275. // ImageStabilizationMode type
  1276. type ImageStabilizationMode string
  1277. const (
  1278. // ImageStabilizationModeOFF const
  1279. ImageStabilizationModeOFF ImageStabilizationMode = "OFF"
  1280. // ImageStabilizationModeON const
  1281. ImageStabilizationModeON ImageStabilizationMode = "ON"
  1282. // ImageStabilizationModeAUTO const
  1283. ImageStabilizationModeAUTO ImageStabilizationMode = "AUTO"
  1284. // ImageStabilizationModeExtended const
  1285. ImageStabilizationModeExtended ImageStabilizationMode = "Extended"
  1286. )
  1287. // IrCutFilterAutoBoundaryType type
  1288. type IrCutFilterAutoBoundaryType string
  1289. const (
  1290. // IrCutFilterAutoBoundaryTypeCommon const
  1291. IrCutFilterAutoBoundaryTypeCommon IrCutFilterAutoBoundaryType = "Common"
  1292. // IrCutFilterAutoBoundaryTypeToOn const
  1293. IrCutFilterAutoBoundaryTypeToOn IrCutFilterAutoBoundaryType = "ToOn"
  1294. // IrCutFilterAutoBoundaryTypeToOff const
  1295. IrCutFilterAutoBoundaryTypeToOff IrCutFilterAutoBoundaryType = "ToOff"
  1296. // IrCutFilterAutoBoundaryTypeExtended const
  1297. IrCutFilterAutoBoundaryTypeExtended IrCutFilterAutoBoundaryType = "Extended"
  1298. )
  1299. // ToneCompensationMode type
  1300. type ToneCompensationMode string
  1301. const (
  1302. // ToneCompensationModeOFF const
  1303. ToneCompensationModeOFF ToneCompensationMode = "OFF"
  1304. // ToneCompensationModeON const
  1305. ToneCompensationModeON ToneCompensationMode = "ON"
  1306. // ToneCompensationModeAUTO const
  1307. ToneCompensationModeAUTO ToneCompensationMode = "AUTO"
  1308. )
  1309. // DefoggingMode type
  1310. type DefoggingMode string
  1311. const (
  1312. // DefoggingModeOFF const
  1313. DefoggingModeOFF DefoggingMode = "OFF"
  1314. // DefoggingModeON const
  1315. DefoggingModeON DefoggingMode = "ON"
  1316. // DefoggingModeAUTO const
  1317. DefoggingModeAUTO DefoggingMode = "AUTO"
  1318. )
  1319. // TopicNamespaceLocation type
  1320. type TopicNamespaceLocation AnyURI
  1321. // PropertyOperation type
  1322. type PropertyOperation string
  1323. const (
  1324. // PropertyOperationInitialized const
  1325. PropertyOperationInitialized PropertyOperation = "Initialized"
  1326. // PropertyOperationDeleted const
  1327. PropertyOperationDeleted PropertyOperation = "Deleted"
  1328. // PropertyOperationChanged const
  1329. PropertyOperationChanged PropertyOperation = "Changed"
  1330. )
  1331. // Direction type
  1332. type Direction string
  1333. const (
  1334. // DirectionLeft const
  1335. DirectionLeft Direction = "Left"
  1336. // DirectionRight const
  1337. DirectionRight Direction = "Right"
  1338. // DirectionAny const
  1339. DirectionAny Direction = "Any"
  1340. )
  1341. //
  1342. // Specifies a receiver connection mode.
  1343. //
  1344. // ReceiverMode type
  1345. type ReceiverMode string
  1346. const (
  1347. // The receiver connects on demand, as required by consumers of the media streams.
  1348. // ReceiverModeAutoConnect const
  1349. ReceiverModeAutoConnect ReceiverMode = "AutoConnect"
  1350. // The receiver attempts to maintain a persistent connection to the configured endpoint.
  1351. // ReceiverModeAlwaysConnect const
  1352. ReceiverModeAlwaysConnect ReceiverMode = "AlwaysConnect"
  1353. // The receiver does not attempt to connect.
  1354. // ReceiverModeNeverConnect const
  1355. ReceiverModeNeverConnect ReceiverMode = "NeverConnect"
  1356. // This case should never happen.
  1357. // ReceiverModeUnknown const
  1358. ReceiverModeUnknown ReceiverMode = "Unknown"
  1359. )
  1360. //
  1361. // Specifies the current connection state of the receiver.
  1362. //
  1363. // ReceiverState type
  1364. type ReceiverState string
  1365. const (
  1366. // The receiver is not connected.
  1367. // ReceiverStateNotConnected const
  1368. ReceiverStateNotConnected ReceiverState = "NotConnected"
  1369. // The receiver is attempting to connect.
  1370. // ReceiverStateConnecting const
  1371. ReceiverStateConnecting ReceiverState = "Connecting"
  1372. // The receiver is connected.
  1373. // ReceiverStateConnected const
  1374. ReceiverStateConnected ReceiverState = "Connected"
  1375. // This case should never happen.
  1376. // ReceiverStateUnknown const
  1377. ReceiverStateUnknown ReceiverState = "Unknown"
  1378. )
  1379. // ReceiverReference type
  1380. type ReceiverReference ReferenceToken
  1381. // RecordingReference type
  1382. type RecordingReference ReferenceToken
  1383. // TrackReference type
  1384. type TrackReference ReferenceToken
  1385. // Description type
  1386. type Description string
  1387. // XPathExpression type
  1388. type XPathExpression string
  1389. // SearchState type
  1390. type SearchState string
  1391. const (
  1392. // The search is queued and not yet started.
  1393. // SearchStateQueued const
  1394. SearchStateQueued SearchState = "Queued"
  1395. // The search is underway and not yet completed.
  1396. // SearchStateSearching const
  1397. SearchStateSearching SearchState = "Searching"
  1398. // The search has been completed and no new results will be found.
  1399. // SearchStateCompleted const
  1400. SearchStateCompleted SearchState = "Completed"
  1401. // The state of the search is unknown. (This is not a valid response from GetSearchState.)
  1402. // SearchStateUnknown const
  1403. SearchStateUnknown SearchState = "Unknown"
  1404. )
  1405. // JobToken type
  1406. type JobToken ReferenceToken
  1407. // RecordingStatus type
  1408. type RecordingStatus string
  1409. const (
  1410. // RecordingStatusInitiated const
  1411. RecordingStatusInitiated RecordingStatus = "Initiated"
  1412. // RecordingStatusRecording const
  1413. RecordingStatusRecording RecordingStatus = "Recording"
  1414. // RecordingStatusStopped const
  1415. RecordingStatusStopped RecordingStatus = "Stopped"
  1416. // RecordingStatusRemoving const
  1417. RecordingStatusRemoving RecordingStatus = "Removing"
  1418. // RecordingStatusRemoved const
  1419. RecordingStatusRemoved RecordingStatus = "Removed"
  1420. // This case should never happen.
  1421. // RecordingStatusUnknown const
  1422. RecordingStatusUnknown RecordingStatus = "Unknown"
  1423. )
  1424. // TrackType type
  1425. type TrackType string
  1426. const (
  1427. // TrackTypeVideo const
  1428. TrackTypeVideo TrackType = "Video"
  1429. // TrackTypeAudio const
  1430. TrackTypeAudio TrackType = "Audio"
  1431. // TrackTypeMetadata const
  1432. TrackTypeMetadata TrackType = "Metadata"
  1433. // Placeholder for future extension.
  1434. // TrackTypeExtended const
  1435. TrackTypeExtended TrackType = "Extended"
  1436. )
  1437. // RecordingJobReference type
  1438. type RecordingJobReference ReferenceToken
  1439. // RecordingJobMode type
  1440. type RecordingJobMode string
  1441. // RecordingJobState type
  1442. type RecordingJobState string
  1443. // ModeOfOperation type
  1444. type ModeOfOperation string
  1445. const (
  1446. // ModeOfOperationIdle const
  1447. ModeOfOperationIdle ModeOfOperation = "Idle"
  1448. // ModeOfOperationActive const
  1449. ModeOfOperationActive ModeOfOperation = "Active"
  1450. // This case should never happen.
  1451. // ModeOfOperationUnknown const
  1452. ModeOfOperationUnknown ModeOfOperation = "Unknown"
  1453. )
  1454. //
  1455. // AudioClassType acceptable values are;
  1456. // gun_shot, scream, glass_breaking, tire_screech
  1457. //
  1458. // AudioClassType type
  1459. type AudioClassType string
  1460. // OSDType type
  1461. type OSDType string
  1462. const (
  1463. // OSDTypeText const
  1464. OSDTypeText OSDType = "Text"
  1465. // OSDTypeImage const
  1466. OSDTypeImage OSDType = "Image"
  1467. // OSDTypeExtended const
  1468. OSDTypeExtended OSDType = "Extended"
  1469. )
  1470. // Message type
  1471. type Message struct {
  1472. XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Message"`
  1473. // Token value pairs that triggered this message. Typically only one item is present.
  1474. Source ItemList `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  1475. Key ItemList `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  1476. Data ItemList `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  1477. Extension MessageExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1478. UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,attr,omitempty"`
  1479. PropertyOperation PropertyOperation `xml:"http://www.onvif.org/ver10/schema PropertyOperation,attr,omitempty"`
  1480. }
  1481. // DeviceEntity type
  1482. type DeviceEntity struct {
  1483. // Unique identifier referencing the physical entity.
  1484. Token ReferenceToken `xml:"token,attr,omitempty"`
  1485. }
  1486. // IntRectangle type
  1487. type IntRectangle struct {
  1488. X int32 `xml:"x,attr,omitempty"`
  1489. Y int32 `xml:"y,attr,omitempty"`
  1490. Width int32 `xml:"width,attr,omitempty"`
  1491. Height int32 `xml:"height,attr,omitempty"`
  1492. }
  1493. // IntRectangleRange type
  1494. type IntRectangleRange struct {
  1495. // Range of X-axis.
  1496. XRange IntRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  1497. // Range of Y-axis.
  1498. YRange IntRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
  1499. // Range of width.
  1500. WidthRange IntRange `xml:"http://www.onvif.org/ver10/schema WidthRange,omitempty"`
  1501. // Range of height.
  1502. HeightRange IntRange `xml:"http://www.onvif.org/ver10/schema HeightRange,omitempty"`
  1503. }
  1504. // FloatRange type
  1505. type FloatRange struct {
  1506. Min float32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  1507. Max float32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  1508. }
  1509. // DurationRange type
  1510. type DurationRange struct {
  1511. Min Duration `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  1512. Max Duration `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  1513. }
  1514. // IntList type
  1515. type IntList struct {
  1516. Items []int32 `xml:"http://www.onvif.org/ver10/schema Items,omitempty"`
  1517. }
  1518. // VideoSource type
  1519. type VideoSource struct {
  1520. *DeviceEntity
  1521. // Frame rate in frames per second.
  1522. Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
  1523. // Horizontal and vertical resolution
  1524. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
  1525. // Optional configuration of the image sensor.
  1526. Imaging ImagingSettings `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
  1527. Extension VideoSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1528. }
  1529. // VideoSourceExtension type
  1530. type VideoSourceExtension struct {
  1531. // Optional configuration of the image sensor. To be used if imaging service 2.00 is supported.
  1532. Imaging ImagingSettings20 `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
  1533. Extension VideoSourceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1534. }
  1535. // VideoSourceExtension2 type
  1536. type VideoSourceExtension2 struct {
  1537. }
  1538. // AudioSource type
  1539. type AudioSource struct {
  1540. *DeviceEntity
  1541. // number of available audio channels. (1: mono, 2: stereo)
  1542. Channels int32 `xml:"http://www.onvif.org/ver10/schema Channels,omitempty"`
  1543. }
  1544. // Profile type
  1545. type Profile struct {
  1546. // User readable name of the profile.
  1547. Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  1548. // Optional configuration of the Video input.
  1549. VideoSourceConfiguration VideoSourceConfiguration `xml:"http://www.onvif.org/ver10/schema VideoSourceConfiguration,omitempty"`
  1550. // Optional configuration of the Audio input.
  1551. AudioSourceConfiguration AudioSourceConfiguration `xml:"http://www.onvif.org/ver10/schema AudioSourceConfiguration,omitempty"`
  1552. // Optional configuration of the Video encoder.
  1553. VideoEncoderConfiguration VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoEncoderConfiguration,omitempty"`
  1554. // Optional configuration of the Audio encoder.
  1555. AudioEncoderConfiguration AudioEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioEncoderConfiguration,omitempty"`
  1556. // Optional configuration of the video analytics module and rule engine.
  1557. VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
  1558. // Optional configuration of the pan tilt zoom unit.
  1559. PTZConfiguration PTZConfiguration `xml:"http://www.onvif.org/ver10/schema PTZConfiguration,omitempty"`
  1560. // Optional configuration of the metadata stream.
  1561. MetadataConfiguration MetadataConfiguration `xml:"http://www.onvif.org/ver10/schema MetadataConfiguration,omitempty"`
  1562. // Extensions defined in ONVIF 2.0
  1563. Extension ProfileExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1564. // Unique identifier of the profile.
  1565. Token ReferenceToken `xml:"token,attr,omitempty"`
  1566. // A value of true signals that the profile cannot be deleted. Default is false.
  1567. Fixed bool `xml:"fixed,attr,omitempty"`
  1568. }
  1569. // ProfileExtension type
  1570. type ProfileExtension struct {
  1571. // Optional configuration of the Audio output.
  1572. AudioOutputConfiguration AudioOutputConfiguration `xml:"http://www.onvif.org/ver10/schema AudioOutputConfiguration,omitempty"`
  1573. // Optional configuration of the Audio decoder.
  1574. AudioDecoderConfiguration AudioDecoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioDecoderConfiguration,omitempty"`
  1575. Extension ProfileExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1576. }
  1577. // ProfileExtension2 type
  1578. type ProfileExtension2 struct {
  1579. }
  1580. // ConfigurationEntity type
  1581. type ConfigurationEntity struct {
  1582. // User readable name. Length up to 64 characters.
  1583. Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  1584. // Number of internal references currently using this configuration.
  1585. UseCount int32 `xml:"http://www.onvif.org/ver10/schema UseCount,omitempty"`
  1586. // Token that uniquely references this configuration. Length up to 64 characters.
  1587. Token ReferenceToken `xml:"token,attr,omitempty"`
  1588. }
  1589. // VideoSourceConfiguration type
  1590. type VideoSourceConfiguration struct {
  1591. *ConfigurationEntity
  1592. // Reference to the physical input.
  1593. SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl SourceToken,omitempty"`
  1594. // Rectangle specifying the Video capturing area. The capturing area shall not be larger than the whole Video source area.
  1595. Bounds IntRectangle `xml:"http://www.onvif.org/ver10/schema Bounds,omitempty"`
  1596. Extension VideoSourceConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1597. // Readonly parameter signalling Source configuration's view mode, for devices supporting different view modes as defined in tt:viewModes.
  1598. ViewMode string `xml:"http://www.onvif.org/ver10/schema ViewMode,attr,omitempty"`
  1599. }
  1600. // VideoSourceConfigurationExtension type
  1601. type VideoSourceConfigurationExtension struct {
  1602. // Optional element to configure rotation of captured image.
  1603. // What resolutions a device supports shall be unaffected by the Rotate parameters.
  1604. // If a device is configured with Rotate=AUTO, the device shall take control over the Degree parameter and automatically update it so that a client can query current rotation.
  1605. // The device shall automatically apply the same rotation to its pan/tilt control direction depending on the following condition:
  1606. // if Reverse=AUTO in PTControlDirection or if the device doesn’t support Reverse in PTControlDirection
  1607. //
  1608. Rotate Rotate `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
  1609. Extension VideoSourceConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1610. }
  1611. // VideoSourceConfigurationExtension2 type
  1612. type VideoSourceConfigurationExtension2 struct {
  1613. // Optional element describing the geometric lens distortion. Multiple instances for future variable lens support.
  1614. LensDescription []LensDescription `xml:"http://www.onvif.org/ver10/schema LensDescription,omitempty"`
  1615. // Optional element describing the scene orientation in the camera’s field of view.
  1616. SceneOrientation SceneOrientation `xml:"http://www.onvif.org/ver10/schema SceneOrientation,omitempty"`
  1617. }
  1618. // Rotate type
  1619. type Rotate struct {
  1620. // Parameter to enable/disable Rotation feature.
  1621. Mode RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  1622. // Optional parameter to configure how much degree of clockwise rotation of image for On mode. Omitting this parameter for On mode means 180 degree rotation.
  1623. Degree int32 `xml:"http://www.onvif.org/ver10/schema Degree,omitempty"`
  1624. Extension RotateExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1625. }
  1626. // RotateExtension type
  1627. type RotateExtension struct {
  1628. }
  1629. // LensProjection type
  1630. type LensProjection struct {
  1631. // Angle of incidence.
  1632. Angle float32 `xml:"http://www.onvif.org/ver10/schema Angle,omitempty"`
  1633. // Mapping radius as a consequence of the emergent angle.
  1634. Radius float32 `xml:"http://www.onvif.org/ver10/schema Radius,omitempty"`
  1635. // Optional ray absorption at the given angle due to vignetting. A value of one means no absorption.
  1636. Transmittance float32 `xml:"http://www.onvif.org/ver10/schema Transmittance,omitempty"`
  1637. }
  1638. // LensOffset type
  1639. type LensOffset struct {
  1640. // Optional horizontal offset of the lens center in normalized coordinates.
  1641. X float32 `xml:"x,attr,omitempty"`
  1642. // Optional vertical offset of the lens center in normalized coordinates.
  1643. Y float32 `xml:"y,attr,omitempty"`
  1644. }
  1645. // LensDescription type
  1646. type LensDescription struct {
  1647. // Offset of the lens center to the imager center in normalized coordinates.
  1648. Offset LensOffset `xml:"http://www.onvif.org/ver10/schema Offset,omitempty"`
  1649. // Radial description of the projection characteristics. The resulting curve is defined by the B-Spline interpolation
  1650. // over the given elements. The element for Radius zero shall not be provided. The projection points shall be ordered with ascending Radius.
  1651. // Items outside the last projection Radius shall be assumed to be invisible (black).
  1652. Projection []LensProjection `xml:"http://www.onvif.org/ver10/schema Projection,omitempty"`
  1653. // Compensation of the x coordinate needed for the ONVIF normalized coordinate system.
  1654. XFactor float32 `xml:"http://www.onvif.org/ver10/schema XFactor,omitempty"`
  1655. // Optional focal length of the optical system.
  1656. FocalLength float32 `xml:"http://www.onvif.org/ver10/schema FocalLength,attr,omitempty"`
  1657. }
  1658. // VideoSourceConfigurationOptions type
  1659. type VideoSourceConfigurationOptions struct {
  1660. //
  1661. // Supported range for the capturing area.
  1662. // Device that does not support cropped streaming shall express BoundsRange option as mentioned below
  1663. // BoundsRange->XRange and BoundsRange->YRange with same Min/Max values HeightRange and WidthRange Min/Max values same as VideoSource Height and Width Limits.
  1664. //
  1665. BoundsRange IntRectangleRange `xml:"http://www.onvif.org/ver10/schema BoundsRange,omitempty"`
  1666. // List of physical inputs.
  1667. VideoSourceTokensAvailable []ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl VideoSourceTokensAvailable,omitempty"`
  1668. Extension VideoSourceConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1669. // Maximum number of profiles.
  1670. MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,attr,omitempty"`
  1671. }
  1672. // VideoSourceConfigurationOptionsExtension type
  1673. type VideoSourceConfigurationOptionsExtension struct {
  1674. // Options of parameters for Rotation feature.
  1675. Rotate RotateOptions `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
  1676. Extension VideoSourceConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1677. }
  1678. // VideoSourceConfigurationOptionsExtension2 type
  1679. type VideoSourceConfigurationOptionsExtension2 struct {
  1680. // Scene orientation modes supported by the device for this configuration.
  1681. SceneOrientationMode []SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema SceneOrientationMode,omitempty"`
  1682. }
  1683. // RotateOptions type
  1684. type RotateOptions struct {
  1685. // Supported options of Rotate mode parameter.
  1686. Mode []RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  1687. // List of supported degree value for rotation.
  1688. DegreeList IntList `xml:"http://www.onvif.org/ver10/schema DegreeList,omitempty"`
  1689. Extension RotateOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1690. // After setting the rotation, if a device starts to reboot this value is true.
  1691. // If a device can handle rotation setting without rebooting this value is false.
  1692. Reboot bool `xml:"http://www.onvif.org/ver10/display/wsdl Reboot,attr,omitempty"`
  1693. }
  1694. // RotateOptionsExtension type
  1695. type RotateOptionsExtension struct {
  1696. }
  1697. // SceneOrientation type
  1698. type SceneOrientation struct {
  1699. //
  1700. // Parameter to assign the way the camera determines the scene orientation.
  1701. //
  1702. Mode SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  1703. //
  1704. // Assigned or determined scene orientation based on the Mode. When assigning the Mode to AUTO, this field
  1705. // is optional and will be ignored by the device. When assigning the Mode to MANUAL, this field is required
  1706. // and the device will return an InvalidArgs fault if missing.
  1707. //
  1708. Orientation string `xml:"http://www.onvif.org/ver10/schema Orientation,omitempty"`
  1709. }
  1710. // VideoEncoderConfiguration type
  1711. type VideoEncoderConfiguration struct {
  1712. *ConfigurationEntity
  1713. // Used video codec, either Jpeg, H.264 or Mpeg4
  1714. Encoding VideoEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  1715. // Configured video resolution
  1716. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
  1717. // Relative value for the video quantizers and the quality of the video. A high value within supported quality range means higher quality
  1718. Quality float32 `xml:"http://www.onvif.org/ver10/schema Quality,omitempty"`
  1719. // Optional element to configure rate control related parameters.
  1720. RateControl VideoRateControl `xml:"http://www.onvif.org/ver10/schema RateControl,omitempty"`
  1721. // Optional element to configure Mpeg4 related parameters.
  1722. MPEG4 Mpeg4Configuration `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
  1723. // Optional element to configure H.264 related parameters.
  1724. H264 H264Configuration `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
  1725. // Defines the multicast settings that could be used for video streaming.
  1726. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  1727. // The rtsp session timeout for the related video stream
  1728. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  1729. //
  1730. // A value of true indicates that frame rate is a fixed value rather than an upper limit,
  1731. // and that the video encoder shall prioritize frame rate over all other adaptable
  1732. // configuration values such as bitrate. Default is false.
  1733. //
  1734. GuaranteedFrameRate bool `xml:"http://www.onvif.org/ver10/display/wsdl GuaranteedFrameRate,attr,omitempty"`
  1735. }
  1736. // VideoResolution type
  1737. type VideoResolution struct {
  1738. // Number of the columns of the Video image.
  1739. Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
  1740. // Number of the lines of the Video image.
  1741. Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
  1742. }
  1743. // VideoRateControl type
  1744. type VideoRateControl struct {
  1745. // Maximum output framerate in fps. If an EncodingInterval is provided the resulting encoded framerate will be reduced by the given factor.
  1746. FrameRateLimit int32 `xml:"http://www.onvif.org/ver10/schema FrameRateLimit,omitempty"`
  1747. // Interval at which images are encoded and transmitted. (A value of 1 means that every frame is encoded, a value of 2 means that every 2nd frame is encoded ...)
  1748. EncodingInterval int32 `xml:"http://www.onvif.org/ver10/schema EncodingInterval,omitempty"`
  1749. // the maximum output bitrate in kbps
  1750. BitrateLimit int32 `xml:"http://www.onvif.org/ver10/schema BitrateLimit,omitempty"`
  1751. }
  1752. // Mpeg4Configuration type
  1753. type Mpeg4Configuration struct {
  1754. // Determines the interval in which the I-Frames will be coded. An entry of 1 indicates I-Frames are continuously generated. An entry of 2 indicates that every 2nd image is an I-Frame, and 3 only every 3rd frame, etc. The frames in between are coded as P or B Frames.
  1755. GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
  1756. // the Mpeg4 profile, either simple profile (SP) or advanced simple profile (ASP)
  1757. Mpeg4Profile Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4Profile,omitempty"`
  1758. }
  1759. // H264Configuration type
  1760. type H264Configuration struct {
  1761. // Group of Video frames length. Determines typically the interval in which the I-Frames will be coded. An entry of 1 indicates I-Frames are continuously generated. An entry of 2 indicates that every 2nd image is an I-Frame, and 3 only every 3rd frame, etc. The frames in between are coded as P or B Frames.
  1762. GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
  1763. // the H.264 profile, either baseline, main, extended or high
  1764. H264Profile H264Profile `xml:"http://www.onvif.org/ver10/schema H264Profile,omitempty"`
  1765. }
  1766. // VideoEncoderOptionsExtension type
  1767. type VideoEncoderOptionsExtension struct {
  1768. // Optional JPEG encoder settings ranges.
  1769. JPEG JpegOptions2 `xml:"http://www.onvif.org/ver10/schema JPEG,omitempty"`
  1770. // Optional MPEG-4 encoder settings ranges.
  1771. MPEG4 Mpeg4Options2 `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
  1772. // Optional H.264 encoder settings ranges.
  1773. H264 H264Options2 `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
  1774. Extension VideoEncoderOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1775. }
  1776. // VideoEncoderOptionsExtension2 type
  1777. type VideoEncoderOptionsExtension2 struct {
  1778. }
  1779. // JpegOptions type
  1780. type JpegOptions struct {
  1781. // List of supported image sizes.
  1782. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1783. // Supported frame rate in fps (frames per second).
  1784. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  1785. // Supported encoding interval range. The encoding interval corresponds to the number of frames devided by the encoded frames. An encoding interval value of "1" means that all frames are encoded.
  1786. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  1787. }
  1788. // JpegOptions2 type
  1789. type JpegOptions2 struct {
  1790. *JpegOptions
  1791. // Supported range of encoded bitrate in kbps.
  1792. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  1793. }
  1794. // Mpeg4Options type
  1795. type Mpeg4Options struct {
  1796. // List of supported image sizes.
  1797. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1798. // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
  1799. GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
  1800. // Supported frame rate in fps (frames per second).
  1801. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  1802. // Supported encoding interval range. The encoding interval corresponds to the number of frames devided by the encoded frames. An encoding interval value of "1" means that all frames are encoded.
  1803. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  1804. // List of supported MPEG-4 profiles.
  1805. Mpeg4ProfilesSupported []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4ProfilesSupported,omitempty"`
  1806. }
  1807. // Mpeg4Options2 type
  1808. type Mpeg4Options2 struct {
  1809. *Mpeg4Options
  1810. // Supported range of encoded bitrate in kbps.
  1811. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  1812. }
  1813. // H264Options type
  1814. type H264Options struct {
  1815. // List of supported image sizes.
  1816. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1817. // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
  1818. GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
  1819. // Supported frame rate in fps (frames per second).
  1820. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  1821. // Supported encoding interval range. The encoding interval corresponds to the number of frames devided by the encoded frames. An encoding interval value of "1" means that all frames are encoded.
  1822. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  1823. // List of supported H.264 profiles.
  1824. H264ProfilesSupported []H264Profile `xml:"http://www.onvif.org/ver10/schema H264ProfilesSupported,omitempty"`
  1825. }
  1826. // H264Options2 type
  1827. type H264Options2 struct {
  1828. *H264Options
  1829. // Supported range of encoded bitrate in kbps.
  1830. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  1831. }
  1832. // AudioSourceConfiguration type
  1833. type AudioSourceConfiguration struct {
  1834. *ConfigurationEntity
  1835. // Token of the Audio Source the configuration applies to
  1836. SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl SourceToken,omitempty"`
  1837. }
  1838. // AudioEncoderConfiguration type
  1839. type AudioEncoderConfiguration struct {
  1840. *ConfigurationEntity
  1841. // Audio codec used for encoding the audio input (either G.711, G.726 or AAC)
  1842. Encoding AudioEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  1843. // The output bitrate in kbps.
  1844. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  1845. // The output sample rate in kHz.
  1846. SampleRate int32 `xml:"http://www.onvif.org/ver10/schema SampleRate,omitempty"`
  1847. // Defines the multicast settings that could be used for video streaming.
  1848. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  1849. // The rtsp session timeout for the related audio stream
  1850. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  1851. }
  1852. // AudioEncoderConfigurationOptions type
  1853. type AudioEncoderConfigurationOptions struct {
  1854. // list of supported AudioEncoderConfigurations
  1855. Options []AudioEncoderConfigurationOption `xml:"http://www.onvif.org/ver10/schema Options,omitempty"`
  1856. }
  1857. // AudioEncoderConfigurationOption type
  1858. type AudioEncoderConfigurationOption struct {
  1859. // The enoding used for audio data (either G.711, G.726 or AAC)
  1860. Encoding AudioEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  1861. // List of supported bitrates in kbps for the specified Encoding
  1862. BitrateList IntList `xml:"http://www.onvif.org/ver10/schema BitrateList,omitempty"`
  1863. // List of supported Sample Rates in kHz for the specified Encoding
  1864. SampleRateList IntList `xml:"http://www.onvif.org/ver10/schema SampleRateList,omitempty"`
  1865. }
  1866. // VideoAnalyticsConfiguration type
  1867. type VideoAnalyticsConfiguration struct {
  1868. *ConfigurationEntity
  1869. AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  1870. RuleEngineConfiguration RuleEngineConfiguration `xml:"http://www.onvif.org/ver10/schema RuleEngineConfiguration,omitempty"`
  1871. }
  1872. // MetadataConfiguration type
  1873. type MetadataConfiguration struct {
  1874. *ConfigurationEntity
  1875. // optional element to configure which PTZ related data is to include in the metadata stream
  1876. PTZStatus PTZFilter `xml:"http://www.onvif.org/ver10/schema PTZStatus,omitempty"`
  1877. // Optional element to configure the streaming of events. A client might be interested in receiving all,
  1878. // none or some of the events produced by the device:
  1879. //
  1880. Events EventSubscription `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
  1881. // Defines whether the streamed metadata will include metadata from the analytics engines (video, cell motion, audio etc.)
  1882. Analytics bool `xml:"http://www.onvif.org/ver10/display/wsdl Analytics,omitempty"`
  1883. // Defines the multicast settings that could be used for video streaming.
  1884. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  1885. // The rtsp session timeout for the related audio stream (when using Media2 Service, this value is deprecated and ignored)
  1886. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  1887. AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  1888. Extension MetadataConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1889. // Optional parameter to configure compression type of Metadata payload. Use values from enumeration MetadataCompressionType.
  1890. CompressionType string `xml:"http://www.onvif.org/ver10/schema CompressionType,attr,omitempty"`
  1891. // Optional parameter to configure if the metadata stream shall contain the Geo Location coordinates of each target.
  1892. GeoLocation bool `xml:"http://www.onvif.org/ver10/display/wsdl GeoLocation,attr,omitempty"`
  1893. }
  1894. // MetadataConfigurationExtension type
  1895. type MetadataConfigurationExtension struct {
  1896. }
  1897. // PTZFilter type
  1898. type PTZFilter struct {
  1899. // True if the metadata stream shall contain the PTZ status (IDLE, MOVING or UNKNOWN)
  1900. Status bool `xml:"http://www.onvif.org/ver10/display/wsdl Status,omitempty"`
  1901. // True if the metadata stream shall contain the PTZ position
  1902. Position bool `xml:"http://www.onvif.org/ver10/display/wsdl Position,omitempty"`
  1903. }
  1904. // EventSubscription type
  1905. type EventSubscription struct {
  1906. Filter FilterType `xml:"Filter,omitempty"`
  1907. SubscriptionPolicy struct {
  1908. } `xml:"SubscriptionPolicy,omitempty"`
  1909. }
  1910. // MetadataConfigurationOptions type
  1911. type MetadataConfigurationOptions struct {
  1912. PTZStatusFilterOptions PTZStatusFilterOptions `xml:"http://www.onvif.org/ver10/schema PTZStatusFilterOptions,omitempty"`
  1913. Extension MetadataConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1914. // True if the device is able to stream the Geo Located positions of each target.
  1915. GeoLocation bool `xml:"http://www.onvif.org/ver10/display/wsdl GeoLocation,attr,omitempty"`
  1916. }
  1917. // MetadataConfigurationOptionsExtension type
  1918. type MetadataConfigurationOptionsExtension struct {
  1919. // List of supported metadata compression type. Its options shall be chosen from tt:MetadataCompressionType.
  1920. CompressionType []string `xml:"http://www.onvif.org/ver10/schema CompressionType,omitempty"`
  1921. Extension MetadataConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1922. }
  1923. // MetadataConfigurationOptionsExtension2 type
  1924. type MetadataConfigurationOptionsExtension2 struct {
  1925. }
  1926. // PTZStatusFilterOptions type
  1927. type PTZStatusFilterOptions struct {
  1928. // True if the device is able to stream pan or tilt status information.
  1929. PanTiltStatusSupported bool `xml:"http://www.onvif.org/ver10/display/wsdl PanTiltStatusSupported,omitempty"`
  1930. // True if the device is able to stream zoom status inforamtion.
  1931. ZoomStatusSupported bool `xml:"http://www.onvif.org/ver10/display/wsdl ZoomStatusSupported,omitempty"`
  1932. // True if the device is able to stream the pan or tilt position.
  1933. PanTiltPositionSupported bool `xml:"http://www.onvif.org/ver10/display/wsdl PanTiltPositionSupported,omitempty"`
  1934. // True if the device is able to stream zoom position information.
  1935. ZoomPositionSupported bool `xml:"http://www.onvif.org/ver10/display/wsdl ZoomPositionSupported,omitempty"`
  1936. Extension PTZStatusFilterOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1937. }
  1938. // PTZStatusFilterOptionsExtension type
  1939. type PTZStatusFilterOptionsExtension struct {
  1940. }
  1941. // VideoOutput type
  1942. type VideoOutput struct {
  1943. *DeviceEntity
  1944. Layout Layout `xml:"http://www.onvif.org/ver10/display/wsdl Layout,omitempty"`
  1945. // Resolution of the display in Pixel.
  1946. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
  1947. // Refresh rate of the display in Hertz.
  1948. RefreshRate float32 `xml:"http://www.onvif.org/ver10/schema RefreshRate,omitempty"`
  1949. // Aspect ratio of the display as physical extent of width divided by height.
  1950. AspectRatio float32 `xml:"http://www.onvif.org/ver10/schema AspectRatio,omitempty"`
  1951. Extension VideoOutputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1952. }
  1953. // VideoOutputExtension type
  1954. type VideoOutputExtension struct {
  1955. }
  1956. // VideoDecoderConfigurationOptions type
  1957. type VideoDecoderConfigurationOptions struct {
  1958. // If the device is able to decode Jpeg streams this element describes the supported codecs and configurations
  1959. JpegDecOptions JpegDecOptions `xml:"http://www.onvif.org/ver10/schema JpegDecOptions,omitempty"`
  1960. // If the device is able to decode H.264 streams this element describes the supported codecs and configurations
  1961. H264DecOptions H264DecOptions `xml:"http://www.onvif.org/ver10/schema H264DecOptions,omitempty"`
  1962. // If the device is able to decode Mpeg4 streams this element describes the supported codecs and configurations
  1963. Mpeg4DecOptions Mpeg4DecOptions `xml:"http://www.onvif.org/ver10/schema Mpeg4DecOptions,omitempty"`
  1964. Extension VideoDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1965. }
  1966. // H264DecOptions type
  1967. type H264DecOptions struct {
  1968. // List of supported H.264 Video Resolutions
  1969. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1970. // List of supported H264 Profiles (either baseline, main, extended or high)
  1971. SupportedH264Profiles []H264Profile `xml:"http://www.onvif.org/ver10/schema SupportedH264Profiles,omitempty"`
  1972. // Supported H.264 bitrate range in kbps
  1973. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  1974. // Supported H.264 framerate range in fps
  1975. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  1976. }
  1977. // JpegDecOptions type
  1978. type JpegDecOptions struct {
  1979. // List of supported Jpeg Video Resolutions
  1980. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1981. // Supported Jpeg bitrate range in kbps
  1982. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  1983. // Supported Jpeg framerate range in fps
  1984. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  1985. }
  1986. // Mpeg4DecOptions type
  1987. type Mpeg4DecOptions struct {
  1988. // List of supported Mpeg4 Video Resolutions
  1989. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1990. // List of supported Mpeg4 Profiles (either SP or ASP)
  1991. SupportedMpeg4Profiles []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema SupportedMpeg4Profiles,omitempty"`
  1992. // Supported Mpeg4 bitrate range in kbps
  1993. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  1994. // Supported Mpeg4 framerate range in fps
  1995. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  1996. }
  1997. // VideoDecoderConfigurationOptionsExtension type
  1998. type VideoDecoderConfigurationOptionsExtension struct {
  1999. }
  2000. // AudioOutput type
  2001. type AudioOutput struct {
  2002. *DeviceEntity
  2003. }
  2004. // AudioOutputConfiguration type
  2005. type AudioOutputConfiguration struct {
  2006. *ConfigurationEntity
  2007. // Token of the phsycial Audio output.
  2008. OutputToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl OutputToken,omitempty"`
  2009. //
  2010. // An audio channel MAY support different types of audio transmission. While for full duplex
  2011. // operation no special handling is required, in half duplex operation the transmission direction
  2012. // needs to be switched.
  2013. // The optional SendPrimacy parameter inside the AudioOutputConfiguration indicates which
  2014. // direction is currently active. An NVC can switch between different modes by setting the
  2015. // AudioOutputConfiguration.
  2016. // The following modes for the Send-Primacy are defined:
  2017. // Acoustic echo cancellation is out of ONVIF scope.
  2018. SendPrimacy AnyURI `xml:"http://www.onvif.org/ver10/schema SendPrimacy,omitempty"`
  2019. // Volume setting of the output. The applicable range is defined via the option AudioOutputOptions.OutputLevelRange.
  2020. OutputLevel int32 `xml:"http://www.onvif.org/ver10/schema OutputLevel,omitempty"`
  2021. }
  2022. // AudioDecoderConfiguration type
  2023. type AudioDecoderConfiguration struct {
  2024. *ConfigurationEntity
  2025. }
  2026. // AudioDecoderConfigurationOptions type
  2027. type AudioDecoderConfigurationOptions struct {
  2028. // If the device is able to decode AAC encoded audio this section describes the supported configurations
  2029. AACDecOptions AACDecOptions `xml:"http://www.onvif.org/ver10/schema AACDecOptions,omitempty"`
  2030. // If the device is able to decode G711 encoded audio this section describes the supported configurations
  2031. G711DecOptions G711DecOptions `xml:"http://www.onvif.org/ver10/schema G711DecOptions,omitempty"`
  2032. // If the device is able to decode G726 encoded audio this section describes the supported configurations
  2033. G726DecOptions G726DecOptions `xml:"http://www.onvif.org/ver10/schema G726DecOptions,omitempty"`
  2034. Extension AudioDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2035. }
  2036. // G711DecOptions type
  2037. type G711DecOptions struct {
  2038. // List of supported bitrates in kbps
  2039. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2040. // List of supported sample rates in kHz
  2041. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2042. }
  2043. // AACDecOptions type
  2044. type AACDecOptions struct {
  2045. // List of supported bitrates in kbps
  2046. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2047. // List of supported sample rates in kHz
  2048. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2049. }
  2050. // G726DecOptions type
  2051. type G726DecOptions struct {
  2052. // List of supported bitrates in kbps
  2053. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2054. // List of supported sample rates in kHz
  2055. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2056. }
  2057. // AudioDecoderConfigurationOptionsExtension type
  2058. type AudioDecoderConfigurationOptionsExtension struct {
  2059. }
  2060. // MulticastConfiguration type
  2061. type MulticastConfiguration struct {
  2062. // The multicast address (if this address is set to 0 no multicast streaming is enaled)
  2063. Address IPAddress `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  2064. // The RTP mutlicast destination port. A device may support RTCP. In this case the port value shall be even to allow the corresponding RTCP stream to be mapped to the next higher (odd) destination port number as defined in the RTSP specification.
  2065. Port int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
  2066. // In case of IPv6 the TTL value is assumed as the hop limit. Note that for IPV6 and administratively scoped IPv4 multicast the primary use for hop limit / TTL is to prevent packets from (endlessly) circulating and not limiting scope. In these cases the address contains the scope.
  2067. TTL int32 `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
  2068. // Read only property signalling that streaming is persistant. Use the methods StartMulticastStreaming and StopMulticastStreaming to switch its state.
  2069. AutoStart bool `xml:"http://www.onvif.org/ver10/display/wsdl AutoStart,omitempty"`
  2070. }
  2071. // StreamSetup type
  2072. type StreamSetup struct {
  2073. // Defines if a multicast or unicast stream is requested
  2074. Stream StreamType `xml:"http://www.onvif.org/ver10/schema Stream,omitempty"`
  2075. Transport Transport `xml:"http://www.onvif.org/ver10/schema Transport,omitempty"`
  2076. }
  2077. // Transport type
  2078. type Transport struct {
  2079. // Defines the network protocol for streaming, either UDP=RTP/UDP, RTSP=RTP/RTSP/TCP or HTTP=RTP/RTSP/HTTP/TCP
  2080. Protocol TransportProtocol `xml:"http://www.onvif.org/ver10/schema Protocol,omitempty"`
  2081. // Optional element to describe further tunnel options. This element is normally not needed
  2082. Tunnel *Transport `xml:"http://www.onvif.org/ver10/schema Tunnel,omitempty"`
  2083. }
  2084. // Scope type
  2085. type Scope struct {
  2086. // Indicates if the scope is fixed or configurable.
  2087. ScopeDef ScopeDefinition `xml:"http://www.onvif.org/ver10/schema ScopeDef,omitempty"`
  2088. // Scope item URI.
  2089. ScopeItem AnyURI `xml:"http://www.onvif.org/ver10/schema ScopeItem,omitempty"`
  2090. }
  2091. // NetworkInterface type
  2092. type NetworkInterface struct {
  2093. *DeviceEntity
  2094. // Indicates whether or not an interface is enabled.
  2095. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2096. // Network interface information
  2097. Info NetworkInterfaceInfo `xml:"http://www.onvif.org/ver10/schema Info,omitempty"`
  2098. // Link configuration.
  2099. Link NetworkInterfaceLink `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
  2100. // IPv4 network interface configuration.
  2101. IPv4 IPv4NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
  2102. // IPv6 network interface configuration.
  2103. IPv6 IPv6NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
  2104. Extension NetworkInterfaceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2105. }
  2106. // NetworkInterfaceExtension type
  2107. type NetworkInterfaceExtension struct {
  2108. InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
  2109. // Extension point prepared for future 802.3 configuration.
  2110. Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
  2111. Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
  2112. Extension NetworkInterfaceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2113. }
  2114. // Dot3Configuration type
  2115. type Dot3Configuration struct {
  2116. }
  2117. // NetworkInterfaceExtension2 type
  2118. type NetworkInterfaceExtension2 struct {
  2119. }
  2120. // NetworkInterfaceLink type
  2121. type NetworkInterfaceLink struct {
  2122. // Configured link settings.
  2123. AdminSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema AdminSettings,omitempty"`
  2124. // Current active link settings.
  2125. OperSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema OperSettings,omitempty"`
  2126. // Integer indicating interface type, for example: 6 is ethernet.
  2127. InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
  2128. }
  2129. // NetworkInterfaceConnectionSetting type
  2130. type NetworkInterfaceConnectionSetting struct {
  2131. // Auto negotiation on/off.
  2132. AutoNegotiation bool `xml:"http://www.onvif.org/ver10/display/wsdl AutoNegotiation,omitempty"`
  2133. // Speed.
  2134. Speed int32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  2135. // Duplex type, Half or Full.
  2136. Duplex Duplex `xml:"http://www.onvif.org/ver10/schema Duplex,omitempty"`
  2137. }
  2138. // NetworkInterfaceInfo type
  2139. type NetworkInterfaceInfo struct {
  2140. // Network interface name, for example eth0.
  2141. Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  2142. // Network interface MAC address.
  2143. HwAddress HwAddress `xml:"http://www.onvif.org/ver10/schema HwAddress,omitempty"`
  2144. // Maximum transmission unit.
  2145. MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
  2146. }
  2147. // IPv6NetworkInterface type
  2148. type IPv6NetworkInterface struct {
  2149. // Indicates whether or not IPv6 is enabled.
  2150. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2151. // IPv6 configuration.
  2152. Config IPv6Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
  2153. }
  2154. // IPv4NetworkInterface type
  2155. type IPv4NetworkInterface struct {
  2156. // Indicates whether or not IPv4 is enabled.
  2157. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2158. // IPv4 configuration.
  2159. Config IPv4Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
  2160. }
  2161. // IPv4Configuration type
  2162. type IPv4Configuration struct {
  2163. // List of manually added IPv4 addresses.
  2164. Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2165. // Link local address.
  2166. LinkLocal PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
  2167. // IPv4 address configured by using DHCP.
  2168. FromDHCP PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
  2169. // Indicates whether or not DHCP is used.
  2170. DHCP bool `xml:"http://www.onvif.org/ver10/display/wsdl DHCP,omitempty"`
  2171. }
  2172. // IPv6Configuration type
  2173. type IPv6Configuration struct {
  2174. // Indicates whether router advertisment is used.
  2175. AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/display/wsdl AcceptRouterAdvert,omitempty"`
  2176. // DHCP configuration.
  2177. DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
  2178. // List of manually entered IPv6 addresses.
  2179. Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2180. // List of link local IPv6 addresses.
  2181. LinkLocal []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
  2182. // List of IPv6 addresses configured by using DHCP.
  2183. FromDHCP []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
  2184. // List of IPv6 addresses configured by using router advertisment.
  2185. FromRA []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromRA,omitempty"`
  2186. Extension IPv6ConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2187. }
  2188. // IPv6ConfigurationExtension type
  2189. type IPv6ConfigurationExtension struct {
  2190. }
  2191. // NetworkProtocol type
  2192. type NetworkProtocol struct {
  2193. // Network protocol type string.
  2194. Name NetworkProtocolType `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  2195. // Indicates if the protocol is enabled or not.
  2196. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2197. // The port that is used by the protocol.
  2198. Port []int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
  2199. Extension NetworkProtocolExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2200. }
  2201. // NetworkProtocolExtension type
  2202. type NetworkProtocolExtension struct {
  2203. }
  2204. // NetworkHost type
  2205. type NetworkHost struct {
  2206. // Network host type: IPv4, IPv6 or DNS.
  2207. Type NetworkHostType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2208. // IPv4 address.
  2209. IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  2210. // IPv6 address.
  2211. IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  2212. // DNS name.
  2213. DNSname DNSName `xml:"http://www.onvif.org/ver10/schema DNSname,omitempty"`
  2214. Extension NetworkHostExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2215. }
  2216. // NetworkHostExtension type
  2217. type NetworkHostExtension struct {
  2218. }
  2219. // IPAddress type
  2220. type IPAddress struct {
  2221. // Indicates if the address is an IPv4 or IPv6 address.
  2222. Type IPType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2223. // IPv4 address.
  2224. IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  2225. // IPv6 address
  2226. IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  2227. }
  2228. // PrefixedIPv4Address type
  2229. type PrefixedIPv4Address struct {
  2230. // IPv4 address
  2231. Address IPv4Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  2232. // Prefix/submask length
  2233. PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
  2234. }
  2235. // PrefixedIPv6Address type
  2236. type PrefixedIPv6Address struct {
  2237. // IPv6 address
  2238. Address IPv6Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  2239. // Prefix/submask length
  2240. PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
  2241. }
  2242. // HostnameInformation type
  2243. type HostnameInformation struct {
  2244. // Indicates whether the hostname is obtained from DHCP or not.
  2245. FromDHCP bool `xml:"http://www.onvif.org/ver10/display/wsdl FromDHCP,omitempty"`
  2246. // Indicates the hostname.
  2247. Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  2248. Extension HostnameInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2249. }
  2250. // HostnameInformationExtension type
  2251. type HostnameInformationExtension struct {
  2252. }
  2253. // DNSInformation type
  2254. type DNSInformation struct {
  2255. // Indicates whether or not DNS information is retrieved from DHCP.
  2256. FromDHCP bool `xml:"http://www.onvif.org/ver10/display/wsdl FromDHCP,omitempty"`
  2257. // Search domain.
  2258. SearchDomain []string `xml:"http://www.onvif.org/ver10/schema SearchDomain,omitempty"`
  2259. // List of DNS addresses received from DHCP.
  2260. DNSFromDHCP []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSFromDHCP,omitempty"`
  2261. // List of manually entered DNS addresses.
  2262. DNSManual []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSManual,omitempty"`
  2263. Extension DNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2264. }
  2265. // DNSInformationExtension type
  2266. type DNSInformationExtension struct {
  2267. }
  2268. // NTPInformation type
  2269. type NTPInformation struct {
  2270. // Indicates if NTP information is to be retrieved by using DHCP.
  2271. FromDHCP bool `xml:"http://www.onvif.org/ver10/display/wsdl FromDHCP,omitempty"`
  2272. // List of NTP addresses retrieved by using DHCP.
  2273. NTPFromDHCP []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPFromDHCP,omitempty"`
  2274. // List of manually entered NTP addresses.
  2275. NTPManual []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPManual,omitempty"`
  2276. Extension NTPInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2277. }
  2278. // NTPInformationExtension type
  2279. type NTPInformationExtension struct {
  2280. }
  2281. // DynamicDNSInformation type
  2282. type DynamicDNSInformation struct {
  2283. // Dynamic DNS type.
  2284. Type DynamicDNSType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2285. // DNS name.
  2286. Name DNSName `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  2287. // Time to live.
  2288. TTL Duration `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
  2289. Extension DynamicDNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2290. }
  2291. // DynamicDNSInformationExtension type
  2292. type DynamicDNSInformationExtension struct {
  2293. }
  2294. // NetworkInterfaceSetConfiguration type
  2295. type NetworkInterfaceSetConfiguration struct {
  2296. // Indicates whether or not an interface is enabled.
  2297. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2298. // Link configuration.
  2299. Link NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
  2300. // Maximum transmission unit.
  2301. MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
  2302. // IPv4 network interface configuration.
  2303. IPv4 IPv4NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
  2304. // IPv6 network interface configuration.
  2305. IPv6 IPv6NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
  2306. Extension NetworkInterfaceSetConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2307. }
  2308. // NetworkInterfaceSetConfigurationExtension type
  2309. type NetworkInterfaceSetConfigurationExtension struct {
  2310. Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
  2311. Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
  2312. Extension NetworkInterfaceSetConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2313. }
  2314. // IPv6NetworkInterfaceSetConfiguration type
  2315. type IPv6NetworkInterfaceSetConfiguration struct {
  2316. // Indicates whether or not IPv6 is enabled.
  2317. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2318. // Indicates whether router advertisment is used.
  2319. AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/display/wsdl AcceptRouterAdvert,omitempty"`
  2320. // List of manually added IPv6 addresses.
  2321. Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2322. // DHCP configuration.
  2323. DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
  2324. }
  2325. // IPv4NetworkInterfaceSetConfiguration type
  2326. type IPv4NetworkInterfaceSetConfiguration struct {
  2327. // Indicates whether or not IPv4 is enabled.
  2328. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2329. // List of manually added IPv4 addresses.
  2330. Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2331. // Indicates whether or not DHCP is used.
  2332. DHCP bool `xml:"http://www.onvif.org/ver10/display/wsdl DHCP,omitempty"`
  2333. }
  2334. // NetworkZeroConfiguration type
  2335. type NetworkZeroConfiguration struct {
  2336. // Unique identifier of network interface.
  2337. InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl InterfaceToken,omitempty"`
  2338. // Indicates whether the zero-configuration is enabled or not.
  2339. Enabled bool `xml:"http://www.onvif.org/ver10/display/wsdl Enabled,omitempty"`
  2340. // The zero-configuration IPv4 address(es)
  2341. Addresses []IPv4Address `xml:"http://www.onvif.org/ver10/schema Addresses,omitempty"`
  2342. Extension *NetworkZeroConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2343. }
  2344. // NetworkZeroConfigurationExtension type
  2345. type NetworkZeroConfigurationExtension struct {
  2346. // Optional array holding the configuration for the second and possibly further interfaces.
  2347. Additional []NetworkZeroConfiguration `xml:"http://www.onvif.org/ver10/schema Additional,omitempty"`
  2348. Extension NetworkZeroConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2349. }
  2350. // NetworkZeroConfigurationExtension2 type
  2351. type NetworkZeroConfigurationExtension2 struct {
  2352. }
  2353. // IPAddressFilter type
  2354. type IPAddressFilter struct {
  2355. Type IPAddressFilterType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2356. IPv4Address []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  2357. IPv6Address []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  2358. Extension IPAddressFilterExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2359. }
  2360. // IPAddressFilterExtension type
  2361. type IPAddressFilterExtension struct {
  2362. }
  2363. // Dot11Configuration type
  2364. type Dot11Configuration struct {
  2365. SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
  2366. Mode Dot11StationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2367. Alias Name `xml:"http://www.onvif.org/ver10/schema Alias,omitempty"`
  2368. Priority NetworkInterfaceConfigPriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  2369. Security Dot11SecurityConfiguration `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
  2370. }
  2371. // Dot11SecurityConfiguration type
  2372. type Dot11SecurityConfiguration struct {
  2373. Mode Dot11SecurityMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2374. Algorithm Dot11Cipher `xml:"http://www.onvif.org/ver10/schema Algorithm,omitempty"`
  2375. PSK Dot11PSKSet `xml:"http://www.onvif.org/ver10/schema PSK,omitempty"`
  2376. Dot1X ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Dot1X,omitempty"`
  2377. Extension Dot11SecurityConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2378. }
  2379. // Dot11SecurityConfigurationExtension type
  2380. type Dot11SecurityConfigurationExtension struct {
  2381. }
  2382. // Dot11PSKSet type
  2383. type Dot11PSKSet struct {
  2384. //
  2385. // According to IEEE802.11-2007 H.4.1 the RSNA PSK consists of 256 bits, or 64 octets when represented in hex
  2386. // Either Key or Passphrase shall be given, if both are supplied Key shall be used by the device and Passphrase ignored.
  2387. //
  2388. Key Dot11PSK `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  2389. //
  2390. // According to IEEE802.11-2007 H.4.1 a pass-phrase is a sequence of between 8 and 63 ASCII-encoded characters and
  2391. // each character in the pass-phrase must have an encoding in the range of 32 to 126 (decimal),inclusive.
  2392. // If only Passpharse is supplied the Key shall be derived using the algorithm described in IEEE802.11-2007 section H.4
  2393. //
  2394. Passphrase Dot11PSKPassphrase `xml:"http://www.onvif.org/ver10/schema Passphrase,omitempty"`
  2395. Extension Dot11PSKSetExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2396. }
  2397. // Dot11PSKSetExtension type
  2398. type Dot11PSKSetExtension struct {
  2399. }
  2400. // NetworkInterfaceSetConfigurationExtension2 type
  2401. type NetworkInterfaceSetConfigurationExtension2 struct {
  2402. }
  2403. // Dot11AvailableNetworks type
  2404. type Dot11AvailableNetworks struct {
  2405. SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
  2406. BSSID string `xml:"http://www.onvif.org/ver10/schema BSSID,omitempty"`
  2407. // See IEEE802.11 7.3.2.25.2 for details.
  2408. AuthAndMangementSuite []Dot11AuthAndMangementSuite `xml:"http://www.onvif.org/ver10/schema AuthAndMangementSuite,omitempty"`
  2409. PairCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema PairCipher,omitempty"`
  2410. GroupCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema GroupCipher,omitempty"`
  2411. SignalStrength Dot11SignalStrength `xml:"http://www.onvif.org/ver10/schema SignalStrength,omitempty"`
  2412. Extension Dot11AvailableNetworksExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2413. }
  2414. // Dot11AvailableNetworksExtension type
  2415. type Dot11AvailableNetworksExtension struct {
  2416. }
  2417. /* Removed type Capabilities struct {
  2418. // Analytics capabilities
  2419. Analytics AnalyticsCapabilities `xml:"http://www.onvif.org/ver10/schema Analytics,omitempty"`
  2420. // Device capabilities
  2421. Device DeviceCapabilities `xml:"http://www.onvif.org/ver10/schema Device,omitempty"`
  2422. // Event capabilities
  2423. Events EventCapabilities `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
  2424. // Imaging capabilities
  2425. Imaging ImagingCapabilities `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
  2426. // Media capabilities
  2427. Media MediaCapabilities `xml:"http://www.onvif.org/ver10/schema Media,omitempty"`
  2428. // PTZ capabilities
  2429. PTZ PTZCapabilities `xml:"http://www.onvif.org/ver10/schema PTZ,omitempty"`
  2430. Extension CapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2431. } Removed*/
  2432. // CapabilitiesExtension type
  2433. type CapabilitiesExtension struct {
  2434. DeviceIO DeviceIOCapabilities `xml:"http://www.onvif.org/ver10/schema DeviceIO,omitempty"`
  2435. Display DisplayCapabilities `xml:"http://www.onvif.org/ver10/schema Display,omitempty"`
  2436. Recording RecordingCapabilities `xml:"http://www.onvif.org/ver10/schema Recording,omitempty"`
  2437. Search SearchCapabilities `xml:"http://www.onvif.org/ver10/schema Search,omitempty"`
  2438. Replay ReplayCapabilities `xml:"http://www.onvif.org/ver10/schema Replay,omitempty"`
  2439. Receiver ReceiverCapabilities `xml:"http://www.onvif.org/ver10/schema Receiver,omitempty"`
  2440. AnalyticsDevice AnalyticsDeviceCapabilities `xml:"http://www.onvif.org/ver10/schema AnalyticsDevice,omitempty"`
  2441. Extensions CapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extensions,omitempty"`
  2442. }
  2443. // CapabilitiesExtension2 type
  2444. type CapabilitiesExtension2 struct {
  2445. }
  2446. // AnalyticsCapabilities type
  2447. type AnalyticsCapabilities struct {
  2448. // Analytics service URI.
  2449. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2450. // Indicates whether or not rules are supported.
  2451. RuleSupport bool `xml:"http://www.onvif.org/ver10/display/wsdl RuleSupport,omitempty"`
  2452. // Indicates whether or not modules are supported.
  2453. AnalyticsModuleSupport bool `xml:"http://www.onvif.org/ver10/display/wsdl AnalyticsModuleSupport,omitempty"`
  2454. }
  2455. // DeviceCapabilities type
  2456. type DeviceCapabilities struct {
  2457. // Device service URI.
  2458. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2459. // Network capabilities.
  2460. Network NetworkCapabilities `xml:"http://www.onvif.org/ver10/schema Network,omitempty"`
  2461. // System capabilities.
  2462. System SystemCapabilities `xml:"http://www.onvif.org/ver10/schema System,omitempty"`
  2463. // I/O capabilities.
  2464. IO IOCapabilities `xml:"http://www.onvif.org/ver10/schema IO,omitempty"`
  2465. // Security capabilities.
  2466. Security SecurityCapabilities `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
  2467. Extension DeviceCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2468. }
  2469. // DeviceCapabilitiesExtension type
  2470. type DeviceCapabilitiesExtension struct {
  2471. }
  2472. // EventCapabilities type
  2473. type EventCapabilities struct {
  2474. // Event service URI.
  2475. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2476. // Indicates whether or not WS Subscription policy is supported.
  2477. WSSubscriptionPolicySupport bool `xml:"http://www.onvif.org/ver10/display/wsdl WSSubscriptionPolicySupport,omitempty"`
  2478. // Indicates whether or not WS Pull Point is supported.
  2479. WSPullPointSupport bool `xml:"http://www.onvif.org/ver10/display/wsdl WSPullPointSupport,omitempty"`
  2480. // Indicates whether or not WS Pausable Subscription Manager Interface is supported.
  2481. WSPausableSubscriptionManagerInterfaceSupport bool `xml:"http://www.onvif.org/ver10/display/wsdl WSPausableSubscriptionManagerInterfaceSupport,omitempty"`
  2482. }
  2483. // IOCapabilities type
  2484. type IOCapabilities struct {
  2485. // Number of input connectors.
  2486. InputConnectors int32 `xml:"http://www.onvif.org/ver10/schema InputConnectors,omitempty"`
  2487. // Number of relay outputs.
  2488. RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
  2489. Extension IOCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2490. }
  2491. // IOCapabilitiesExtension type
  2492. type IOCapabilitiesExtension struct {
  2493. Auxiliary bool `xml:"http://www.onvif.org/ver10/display/wsdl Auxiliary,omitempty"`
  2494. AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
  2495. Extension IOCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2496. }
  2497. // IOCapabilitiesExtension2 type
  2498. type IOCapabilitiesExtension2 struct {
  2499. }
  2500. // MediaCapabilities type
  2501. type MediaCapabilities struct {
  2502. // Media service URI.
  2503. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2504. // Streaming capabilities.
  2505. StreamingCapabilities RealTimeStreamingCapabilities `xml:"http://www.onvif.org/ver10/schema StreamingCapabilities,omitempty"`
  2506. Extension MediaCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2507. }
  2508. // MediaCapabilitiesExtension type
  2509. type MediaCapabilitiesExtension struct {
  2510. ProfileCapabilities ProfileCapabilities `xml:"http://www.onvif.org/ver10/schema ProfileCapabilities,omitempty"`
  2511. }
  2512. // RealTimeStreamingCapabilities type
  2513. type RealTimeStreamingCapabilities struct {
  2514. // Indicates whether or not RTP multicast is supported.
  2515. RTPMulticast bool `xml:"http://www.onvif.org/ver10/display/wsdl RTPMulticast,omitempty"`
  2516. // Indicates whether or not RTP over TCP is supported.
  2517. RTP_TCP bool `xml:"http://www.onvif.org/ver10/display/wsdl RTP_TCP,omitempty"`
  2518. // Indicates whether or not RTP/RTSP/TCP is supported.
  2519. RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/display/wsdl RTP_RTSP_TCP,omitempty"`
  2520. Extension RealTimeStreamingCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2521. }
  2522. // RealTimeStreamingCapabilitiesExtension type
  2523. type RealTimeStreamingCapabilitiesExtension struct {
  2524. }
  2525. // ProfileCapabilities type
  2526. type ProfileCapabilities struct {
  2527. // Maximum number of profiles.
  2528. MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,omitempty"`
  2529. }
  2530. // NetworkCapabilities type
  2531. type NetworkCapabilities struct {
  2532. // Indicates whether or not IP filtering is supported.
  2533. IPFilter bool `xml:"http://www.onvif.org/ver10/display/wsdl IPFilter,omitempty"`
  2534. // Indicates whether or not zeroconf is supported.
  2535. ZeroConfiguration bool `xml:"http://www.onvif.org/ver10/display/wsdl ZeroConfiguration,omitempty"`
  2536. // Indicates whether or not IPv6 is supported.
  2537. IPVersion6 bool `xml:"http://www.onvif.org/ver10/display/wsdl IPVersion6,omitempty"`
  2538. // Indicates whether or not is supported.
  2539. DynDNS bool `xml:"http://www.onvif.org/ver10/display/wsdl DynDNS,omitempty"`
  2540. Extension NetworkCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2541. }
  2542. // NetworkCapabilitiesExtension type
  2543. type NetworkCapabilitiesExtension struct {
  2544. Dot11Configuration bool `xml:"http://www.onvif.org/ver10/display/wsdl Dot11Configuration,omitempty"`
  2545. Extension NetworkCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2546. }
  2547. // NetworkCapabilitiesExtension2 type
  2548. type NetworkCapabilitiesExtension2 struct {
  2549. }
  2550. // SecurityCapabilities type
  2551. type SecurityCapabilities struct {
  2552. // Indicates whether or not TLS 1.1 is supported.
  2553. TLS11 bool `xml:"TLS1.1,omitempty"`
  2554. // Indicates whether or not TLS 1.2 is supported.
  2555. TLS12 bool `xml:"TLS1.2,omitempty"`
  2556. // Indicates whether or not onboard key generation is supported.
  2557. OnboardKeyGeneration bool `xml:"http://www.onvif.org/ver10/display/wsdl OnboardKeyGeneration,omitempty"`
  2558. // Indicates whether or not access policy configuration is supported.
  2559. AccessPolicyConfig bool `xml:"http://www.onvif.org/ver10/display/wsdl AccessPolicyConfig,omitempty"`
  2560. // Indicates whether or not WS-Security X.509 token is supported.
  2561. X509Token bool `xml:"X.509Token,omitempty"`
  2562. // Indicates whether or not WS-Security SAML token is supported.
  2563. SAMLToken bool `xml:"http://www.onvif.org/ver10/display/wsdl SAMLToken,omitempty"`
  2564. // Indicates whether or not WS-Security Kerberos token is supported.
  2565. KerberosToken bool `xml:"http://www.onvif.org/ver10/display/wsdl KerberosToken,omitempty"`
  2566. // Indicates whether or not WS-Security REL token is supported.
  2567. RELToken bool `xml:"http://www.onvif.org/ver10/display/wsdl RELToken,omitempty"`
  2568. Extension SecurityCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2569. }
  2570. // SecurityCapabilitiesExtension type
  2571. type SecurityCapabilitiesExtension struct {
  2572. TLS10 bool `xml:"TLS1.0,omitempty"`
  2573. Extension SecurityCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2574. }
  2575. // SecurityCapabilitiesExtension2 type
  2576. type SecurityCapabilitiesExtension2 struct {
  2577. Dot1X bool `xml:"http://www.onvif.org/ver10/display/wsdl Dot1X,omitempty"`
  2578. // EAP Methods supported by the device. The int values refer to the .
  2579. SupportedEAPMethod []int32 `xml:"http://www.onvif.org/ver10/schema SupportedEAPMethod,omitempty"`
  2580. RemoteUserHandling bool `xml:"http://www.onvif.org/ver10/display/wsdl RemoteUserHandling,omitempty"`
  2581. }
  2582. // SystemCapabilities type
  2583. type SystemCapabilities struct {
  2584. // Indicates whether or not WS Discovery resolve requests are supported.
  2585. DiscoveryResolve bool `xml:"http://www.onvif.org/ver10/display/wsdl DiscoveryResolve,omitempty"`
  2586. // Indicates whether or not WS-Discovery Bye is supported.
  2587. DiscoveryBye bool `xml:"http://www.onvif.org/ver10/display/wsdl DiscoveryBye,omitempty"`
  2588. // Indicates whether or not remote discovery is supported.
  2589. RemoteDiscovery bool `xml:"http://www.onvif.org/ver10/display/wsdl RemoteDiscovery,omitempty"`
  2590. // Indicates whether or not system backup is supported.
  2591. SystemBackup bool `xml:"http://www.onvif.org/ver10/display/wsdl SystemBackup,omitempty"`
  2592. // Indicates whether or not system logging is supported.
  2593. SystemLogging bool `xml:"http://www.onvif.org/ver10/display/wsdl SystemLogging,omitempty"`
  2594. // Indicates whether or not firmware upgrade is supported.
  2595. FirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/display/wsdl FirmwareUpgrade,omitempty"`
  2596. // Indicates supported ONVIF version(s).
  2597. SupportedVersions []OnvifVersion `xml:"http://www.onvif.org/ver10/schema SupportedVersions,omitempty"`
  2598. Extension SystemCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2599. }
  2600. // SystemCapabilitiesExtension type
  2601. type SystemCapabilitiesExtension struct {
  2602. HttpFirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/display/wsdl HttpFirmwareUpgrade,omitempty"`
  2603. HttpSystemBackup bool `xml:"http://www.onvif.org/ver10/display/wsdl HttpSystemBackup,omitempty"`
  2604. HttpSystemLogging bool `xml:"http://www.onvif.org/ver10/display/wsdl HttpSystemLogging,omitempty"`
  2605. HttpSupportInformation bool `xml:"http://www.onvif.org/ver10/display/wsdl HttpSupportInformation,omitempty"`
  2606. Extension SystemCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2607. }
  2608. // SystemCapabilitiesExtension2 type
  2609. type SystemCapabilitiesExtension2 struct {
  2610. }
  2611. // OnvifVersion type
  2612. type OnvifVersion struct {
  2613. // Major version number.
  2614. Major int32 `xml:"http://www.onvif.org/ver10/schema Major,omitempty"`
  2615. //
  2616. // Two digit minor version number.
  2617. // If major version number is less than "16", X.0.1 maps to "01" and X.2.1 maps to "21" where X stands for Major version number.
  2618. // Otherwise, minor number is month of release, such as "06" for June.
  2619. //
  2620. Minor int32 `xml:"http://www.onvif.org/ver10/schema Minor,omitempty"`
  2621. }
  2622. // ImagingCapabilities type
  2623. type ImagingCapabilities struct {
  2624. // Imaging service URI.
  2625. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2626. }
  2627. // PTZCapabilities type
  2628. type PTZCapabilities struct {
  2629. // PTZ service URI.
  2630. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2631. }
  2632. // DeviceIOCapabilities type
  2633. type DeviceIOCapabilities struct {
  2634. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2635. VideoSources int32 `xml:"http://www.onvif.org/ver10/schema VideoSources,omitempty"`
  2636. VideoOutputs int32 `xml:"http://www.onvif.org/ver10/schema VideoOutputs,omitempty"`
  2637. AudioSources int32 `xml:"http://www.onvif.org/ver10/schema AudioSources,omitempty"`
  2638. AudioOutputs int32 `xml:"http://www.onvif.org/ver10/schema AudioOutputs,omitempty"`
  2639. RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
  2640. }
  2641. // DisplayCapabilities type
  2642. type DisplayCapabilities struct {
  2643. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2644. // Indication that the SetLayout command supports only predefined layouts.
  2645. FixedLayout bool `xml:"http://www.onvif.org/ver10/display/wsdl FixedLayout,omitempty"`
  2646. }
  2647. // RecordingCapabilities type
  2648. type RecordingCapabilities struct {
  2649. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2650. ReceiverSource bool `xml:"http://www.onvif.org/ver10/display/wsdl ReceiverSource,omitempty"`
  2651. MediaProfileSource bool `xml:"http://www.onvif.org/ver10/display/wsdl MediaProfileSource,omitempty"`
  2652. DynamicRecordings bool `xml:"http://www.onvif.org/ver10/display/wsdl DynamicRecordings,omitempty"`
  2653. DynamicTracks bool `xml:"http://www.onvif.org/ver10/display/wsdl DynamicTracks,omitempty"`
  2654. MaxStringLength int32 `xml:"http://www.onvif.org/ver10/schema MaxStringLength,omitempty"`
  2655. }
  2656. // SearchCapabilities type
  2657. type SearchCapabilities struct {
  2658. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2659. MetadataSearch bool `xml:"http://www.onvif.org/ver10/display/wsdl MetadataSearch,omitempty"`
  2660. }
  2661. // ReplayCapabilities type
  2662. type ReplayCapabilities struct {
  2663. // The address of the replay service.
  2664. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2665. }
  2666. // ReceiverCapabilities type
  2667. type ReceiverCapabilities struct {
  2668. // The address of the receiver service.
  2669. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2670. // Indicates whether the device can receive RTP multicast streams.
  2671. RTP_Multicast bool `xml:"http://www.onvif.org/ver10/display/wsdl RTP_Multicast,omitempty"`
  2672. // Indicates whether the device can receive RTP/TCP streams
  2673. RTP_TCP bool `xml:"http://www.onvif.org/ver10/display/wsdl RTP_TCP,omitempty"`
  2674. // Indicates whether the device can receive RTP/RTSP/TCP streams.
  2675. RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/display/wsdl RTP_RTSP_TCP,omitempty"`
  2676. // The maximum number of receivers supported by the device.
  2677. SupportedReceivers int32 `xml:"http://www.onvif.org/ver10/schema SupportedReceivers,omitempty"`
  2678. // The maximum allowed length for RTSP URIs.
  2679. MaximumRTSPURILength int32 `xml:"http://www.onvif.org/ver10/schema MaximumRTSPURILength,omitempty"`
  2680. }
  2681. // AnalyticsDeviceCapabilities type
  2682. type AnalyticsDeviceCapabilities struct {
  2683. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2684. // Obsolete property.
  2685. RuleSupport bool `xml:"http://www.onvif.org/ver10/display/wsdl RuleSupport,omitempty"`
  2686. Extension AnalyticsDeviceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2687. }
  2688. // AnalyticsDeviceExtension type
  2689. type AnalyticsDeviceExtension struct {
  2690. }
  2691. // BinaryData type
  2692. type BinaryData struct {
  2693. // base64 encoded binary data.
  2694. Data []byte `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  2695. ContentType string `xml:"contentType,attr,omitempty"`
  2696. }
  2697. // SystemDateTime type
  2698. type SystemDateTime struct {
  2699. // Indicates if the time is set manully or through NTP.
  2700. DateTimeType SetDateTimeType `xml:"http://www.onvif.org/ver10/schema DateTimeType,omitempty"`
  2701. // Informative indicator whether daylight savings is currently on/off.
  2702. DaylightSavings bool `xml:"http://www.onvif.org/ver10/display/wsdl DaylightSavings,omitempty"`
  2703. // Timezone information in Posix format.
  2704. TimeZone TimeZone `xml:"http://www.onvif.org/ver10/schema TimeZone,omitempty"`
  2705. // Current system date and time in UTC format. This field is mandatory since version 2.0.
  2706. UTCDateTime string `xml:"http://www.onvif.org/ver10/schema UTCDateTime,omitempty"`
  2707. // Date and time in local format.
  2708. LocalDateTime string `xml:"http://www.onvif.org/ver10/schema LocalDateTime,omitempty"`
  2709. Extension SystemDateTimeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2710. }
  2711. // SystemDateTimeExtension type
  2712. type SystemDateTimeExtension struct {
  2713. }
  2714. // DateTime type
  2715. type DateTime struct {
  2716. Time string `xml:"http://www.onvif.org/ver10/schema DateTime,omitempty"`
  2717. Date string `xml:"http://www.onvif.org/ver10/schema Date,omitempty"`
  2718. }
  2719. // Date type
  2720. type Date struct {
  2721. Year int32 `xml:"http://www.onvif.org/ver10/schema Year,omitempty"`
  2722. // Range is 1 to 12.
  2723. Month int32 `xml:"http://www.onvif.org/ver10/schema Month,omitempty"`
  2724. // Range is 1 to 31.
  2725. Day int32 `xml:"http://www.onvif.org/ver10/schema Day,omitempty"`
  2726. }
  2727. // Time type
  2728. type Time struct {
  2729. // Range is 0 to 23.
  2730. Hour int32 `xml:"http://www.onvif.org/ver10/schema Hour,omitempty"`
  2731. // Range is 0 to 59.
  2732. Minute int32 `xml:"http://www.onvif.org/ver10/schema Minute,omitempty"`
  2733. // Range is 0 to 61 (typically 59).
  2734. Second int32 `xml:"http://www.onvif.org/ver10/schema Second,omitempty"`
  2735. }
  2736. // TimeZone type
  2737. type TimeZone struct {
  2738. // Posix timezone string.
  2739. TZ string `xml:"http://www.onvif.org/ver10/schema TZ,omitempty"`
  2740. }
  2741. // User type
  2742. type User struct {
  2743. // Username string.
  2744. Username string `xml:"http://www.onvif.org/ver10/schema Username,omitempty"`
  2745. // Password string.
  2746. Password string `xml:"http://www.onvif.org/ver10/schema Password,omitempty"`
  2747. // User level string.
  2748. UserLevel UserLevel `xml:"http://www.onvif.org/ver10/schema UserLevel,omitempty"`
  2749. Extension UserExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2750. }
  2751. // UserExtension type
  2752. type UserExtension struct {
  2753. }
  2754. // CertificateGenerationParameters type
  2755. type CertificateGenerationParameters struct {
  2756. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  2757. Subject string `xml:"http://www.onvif.org/ver10/schema Subject,omitempty"`
  2758. ValidNotBefore string `xml:"http://www.onvif.org/ver10/schema ValidNotBefore,omitempty"`
  2759. ValidNotAfter string `xml:"http://www.onvif.org/ver10/schema ValidNotAfter,omitempty"`
  2760. Extension CertificateGenerationParametersExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2761. }
  2762. // CertificateGenerationParametersExtension type
  2763. type CertificateGenerationParametersExtension struct {
  2764. }
  2765. // Certificate type
  2766. type Certificate struct {
  2767. // Certificate id.
  2768. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  2769. // base64 encoded DER representation of certificate.
  2770. Certificate BinaryData `xml:"http://www.onvif.org/ver10/schema Certificate,omitempty"`
  2771. }
  2772. // CertificateInformation type
  2773. type CertificateInformation struct {
  2774. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  2775. IssuerDN string `xml:"http://www.onvif.org/ver10/schema IssuerDN,omitempty"`
  2776. SubjectDN string `xml:"http://www.onvif.org/ver10/schema SubjectDN,omitempty"`
  2777. KeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema KeyUsage,omitempty"`
  2778. ExtendedKeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema ExtendedKeyUsage,omitempty"`
  2779. KeyLength int32 `xml:"http://www.onvif.org/ver10/schema KeyLength,omitempty"`
  2780. Version string `xml:"http://www.onvif.org/ver10/schema Version,omitempty"`
  2781. SerialNum string `xml:"http://www.onvif.org/ver10/schema SerialNum,omitempty"`
  2782. // Validity Range is from "NotBefore" to "NotAfter"; the corresponding DateTimeRange is from "From" to "Until"
  2783. SignatureAlgorithm string `xml:"http://www.onvif.org/ver10/schema SignatureAlgorithm,omitempty"`
  2784. Validity DateTimeRange `xml:"http://www.onvif.org/ver10/schema Validity,omitempty"`
  2785. Extension CertificateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2786. }
  2787. // CertificateUsage type
  2788. type CertificateUsage struct {
  2789. Value string
  2790. Critical bool `xml:"http://www.onvif.org/ver10/display/wsdl Critical,attr,omitempty"`
  2791. }
  2792. // CertificateInformationExtension type
  2793. type CertificateInformationExtension struct {
  2794. }
  2795. // Dot1XConfiguration type
  2796. type Dot1XConfiguration struct {
  2797. Dot1XConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Dot1XConfigurationToken,omitempty"`
  2798. Identity string `xml:"http://www.onvif.org/ver10/schema Identity,omitempty"`
  2799. AnonymousID string `xml:"http://www.onvif.org/ver10/schema AnonymousID,omitempty"`
  2800. //
  2801. // EAP Method type as defined in .
  2802. //
  2803. EAPMethod int32 `xml:"http://www.onvif.org/ver10/schema EAPMethod,omitempty"`
  2804. CACertificateID []string `xml:"http://www.onvif.org/ver10/schema CACertificateID,omitempty"`
  2805. EAPMethodConfiguration EAPMethodConfiguration `xml:"http://www.onvif.org/ver10/schema EAPMethodConfiguration,omitempty"`
  2806. Extension Dot1XConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2807. }
  2808. // Dot1XConfigurationExtension type
  2809. type Dot1XConfigurationExtension struct {
  2810. }
  2811. // EAPMethodConfiguration type
  2812. type EAPMethodConfiguration struct {
  2813. // Confgiuration information for TLS Method.
  2814. TLSConfiguration TLSConfiguration `xml:"http://www.onvif.org/ver10/schema TLSConfiguration,omitempty"`
  2815. // Password for those EAP Methods that require a password. The password shall never be returned on a get method.
  2816. Password string `xml:"http://www.onvif.org/ver10/schema Password,omitempty"`
  2817. Extension EapMethodExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2818. }
  2819. // EapMethodExtension type
  2820. type EapMethodExtension struct {
  2821. }
  2822. // TLSConfiguration type
  2823. type TLSConfiguration struct {
  2824. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  2825. }
  2826. // RelayOutputSettings type
  2827. type RelayOutputSettings struct {
  2828. //
  2829. // 'Bistable' or 'Monostable'
  2830. //
  2831. //
  2832. Mode RelayMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2833. // Time after which the relay returns to its idle state if it is in monostable mode. If the Mode field is set to bistable mode the value of the parameter can be ignored.
  2834. DelayTime Duration `xml:"http://www.onvif.org/ver10/schema DelayTime,omitempty"`
  2835. //
  2836. // 'open' or 'closed'
  2837. //
  2838. //
  2839. IdleState RelayIdleState `xml:"http://www.onvif.org/ver10/schema IdleState,omitempty"`
  2840. }
  2841. // RelayOutput type
  2842. type RelayOutput struct {
  2843. *DeviceEntity
  2844. Properties RelayOutputSettings `xml:"http://www.onvif.org/ver10/schema Properties,omitempty"`
  2845. }
  2846. // PTZNode type
  2847. type PTZNode struct {
  2848. *DeviceEntity
  2849. //
  2850. // A unique identifier that is used to reference PTZ Nodes.
  2851. //
  2852. Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  2853. //
  2854. // A list of Coordinate Systems available for the PTZ Node. For each Coordinate System, the PTZ Node MUST specify its allowed range.
  2855. //
  2856. SupportedPTZSpaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema SupportedPTZSpaces,omitempty"`
  2857. //
  2858. // All preset operations MUST be available for this PTZ Node if one preset is supported.
  2859. //
  2860. MaximumNumberOfPresets int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresets,omitempty"`
  2861. //
  2862. // A boolean operator specifying the availability of a home position. If set to true, the Home Position Operations MUST be available for this PTZ Node.
  2863. //
  2864. HomeSupported bool `xml:"http://www.onvif.org/ver10/display/wsdl HomeSupported,omitempty"`
  2865. //
  2866. // A list of supported Auxiliary commands. If the list is not empty, the Auxiliary Operations MUST be available for this PTZ Node.
  2867. //
  2868. AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
  2869. Extension PTZNodeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2870. //
  2871. // Indication whether the HomePosition of a Node is fixed or it can be changed via the SetHomePosition command.
  2872. //
  2873. FixedHomePosition bool `xml:"http://www.onvif.org/ver10/display/wsdl FixedHomePosition,attr,omitempty"`
  2874. //
  2875. // Indication whether the Node supports the geo-referenced move command.
  2876. //
  2877. GeoMove bool `xml:"http://www.onvif.org/ver10/display/wsdl GeoMove,attr,omitempty"`
  2878. }
  2879. // PTZNodeExtension type
  2880. type PTZNodeExtension struct {
  2881. //
  2882. // Detail of supported Preset Tour feature.
  2883. //
  2884. SupportedPresetTour PTZPresetTourSupported `xml:"http://www.onvif.org/ver10/schema SupportedPresetTour,omitempty"`
  2885. Extension PTZNodeExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2886. }
  2887. // PTZNodeExtension2 type
  2888. type PTZNodeExtension2 struct {
  2889. }
  2890. // PTZPresetTourSupported type
  2891. type PTZPresetTourSupported struct {
  2892. // Indicates number of preset tours that can be created. Required preset tour operations shall be available for this PTZ Node if one or more preset tour is supported.
  2893. MaximumNumberOfPresetTours int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresetTours,omitempty"`
  2894. // Indicates which preset tour operations are available for this PTZ Node.
  2895. PTZPresetTourOperation []PTZPresetTourOperation `xml:"http://www.onvif.org/ver10/schema PTZPresetTourOperation,omitempty"`
  2896. Extension PTZPresetTourSupportedExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2897. }
  2898. // PTZPresetTourSupportedExtension type
  2899. type PTZPresetTourSupportedExtension struct {
  2900. }
  2901. // PTZConfiguration type
  2902. type PTZConfiguration struct {
  2903. *ConfigurationEntity
  2904. //
  2905. // A mandatory reference to the PTZ Node that the PTZ Configuration belongs to.
  2906. //
  2907. NodeToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl NodeToken,omitempty"`
  2908. //
  2909. // If the PTZ Node supports absolute Pan/Tilt movements, it shall specify one Absolute Pan/Tilt Position Space as default.
  2910. //
  2911. DefaultAbsolutePantTiltPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsolutePantTiltPositionSpace,omitempty"`
  2912. //
  2913. // If the PTZ Node supports absolute zoom movements, it shall specify one Absolute Zoom Position Space as default.
  2914. //
  2915. DefaultAbsoluteZoomPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsoluteZoomPositionSpace,omitempty"`
  2916. //
  2917. // If the PTZ Node supports relative Pan/Tilt movements, it shall specify one RelativePan/Tilt Translation Space as default.
  2918. //
  2919. DefaultRelativePanTiltTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativePanTiltTranslationSpace,omitempty"`
  2920. //
  2921. // If the PTZ Node supports relative zoom movements, it shall specify one Relative Zoom Translation Space as default.
  2922. //
  2923. DefaultRelativeZoomTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativeZoomTranslationSpace,omitempty"`
  2924. //
  2925. // If the PTZ Node supports continuous Pan/Tilt movements, it shall specify one Continuous Pan/Tilt Velocity Space as default.
  2926. //
  2927. DefaultContinuousPanTiltVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousPanTiltVelocitySpace,omitempty"`
  2928. //
  2929. // If the PTZ Node supports continuous zoom movements, it shall specify one Continuous Zoom Velocity Space as default.
  2930. //
  2931. DefaultContinuousZoomVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousZoomVelocitySpace,omitempty"`
  2932. //
  2933. // If the PTZ Node supports absolute or relative PTZ movements, it shall specify corresponding default Pan/Tilt and Zoom speeds.
  2934. //
  2935. DefaultPTZSpeed PTZSpeed `xml:"http://www.onvif.org/ver10/schema DefaultPTZSpeed,omitempty"`
  2936. //
  2937. // If the PTZ Node supports continuous movements, it shall specify a default timeout, after which the movement stops.
  2938. //
  2939. DefaultPTZTimeout Duration `xml:"http://www.onvif.org/ver10/schema DefaultPTZTimeout,omitempty"`
  2940. //
  2941. // The Pan/Tilt limits element should be present for a PTZ Node that supports an absolute Pan/Tilt. If the element is present it signals the support for configurable Pan/Tilt limits. If limits are enabled, the Pan/Tilt movements shall always stay within the specified range. The Pan/Tilt limits are disabled by setting the limits to –INF or +INF.
  2942. //
  2943. PanTiltLimits PanTiltLimits `xml:"http://www.onvif.org/ver10/schema PanTiltLimits,omitempty"`
  2944. //
  2945. // The Zoom limits element should be present for a PTZ Node that supports absolute zoom. If the element is present it signals the supports for configurable Zoom limits. If limits are enabled the zoom movements shall always stay within the specified range. The Zoom limits are disabled by settings the limits to -INF and +INF.
  2946. //
  2947. ZoomLimits ZoomLimits `xml:"http://www.onvif.org/ver10/schema ZoomLimits,omitempty"`
  2948. Extension PTZConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2949. // The optional acceleration ramp used by the device when moving.
  2950. MoveRamp int32 `xml:"http://www.onvif.org/ver10/schema MoveRamp,attr,omitempty"`
  2951. // The optional acceleration ramp used by the device when recalling presets.
  2952. PresetRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetRamp,attr,omitempty"`
  2953. // The optional acceleration ramp used by the device when executing PresetTours.
  2954. PresetTourRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetTourRamp,attr,omitempty"`
  2955. }
  2956. // PTZConfigurationExtension type
  2957. type PTZConfigurationExtension struct {
  2958. // Optional element to configure PT Control Direction related features.
  2959. PTControlDirection PTControlDirection `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
  2960. Extension PTZConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2961. }
  2962. // PTZConfigurationExtension2 type
  2963. type PTZConfigurationExtension2 struct {
  2964. }
  2965. // PTControlDirection type
  2966. type PTControlDirection struct {
  2967. // Optional element to configure related parameters for E-Flip.
  2968. EFlip EFlip `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
  2969. // Optional element to configure related parameters for reversing of PT Control Direction.
  2970. Reverse Reverse `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
  2971. Extension PTControlDirectionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2972. }
  2973. // PTControlDirectionExtension type
  2974. type PTControlDirectionExtension struct {
  2975. }
  2976. // EFlip type
  2977. type EFlip struct {
  2978. // Parameter to enable/disable E-Flip feature.
  2979. Mode EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2980. }
  2981. // Reverse type
  2982. type Reverse struct {
  2983. // Parameter to enable/disable Reverse feature.
  2984. Mode ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2985. }
  2986. // PTZConfigurationOptions type
  2987. type PTZConfigurationOptions struct {
  2988. //
  2989. // A list of supported coordinate systems including their range limitations.
  2990. //
  2991. Spaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema Spaces,omitempty"`
  2992. //
  2993. // A timeout Range within which Timeouts are accepted by the PTZ Node.
  2994. //
  2995. PTZTimeout DurationRange `xml:"http://www.onvif.org/ver10/schema PTZTimeout,omitempty"`
  2996. // Supported options for PT Direction Control.
  2997. PTControlDirection PTControlDirectionOptions `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
  2998. Extension PTZConfigurationOptions2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2999. //
  3000. // The list of acceleration ramps supported by the device. The
  3001. // smallest acceleration value corresponds to the minimal index, the
  3002. // highest acceleration corresponds to the maximum index.
  3003. //
  3004. PTZRamps IntAttrList `xml:"http://www.onvif.org/ver10/schema PTZRamps,attr,omitempty"`
  3005. }
  3006. // PTZConfigurationOptions2 type
  3007. type PTZConfigurationOptions2 struct {
  3008. }
  3009. // PTControlDirectionOptions type
  3010. type PTControlDirectionOptions struct {
  3011. // Supported options for EFlip feature.
  3012. EFlip EFlipOptions `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
  3013. // Supported options for Reverse feature.
  3014. Reverse ReverseOptions `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
  3015. Extension PTControlDirectionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3016. }
  3017. // PTControlDirectionOptionsExtension type
  3018. type PTControlDirectionOptionsExtension struct {
  3019. }
  3020. // EFlipOptions type
  3021. type EFlipOptions struct {
  3022. // Options of EFlip mode parameter.
  3023. Mode []EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3024. Extension EFlipOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3025. }
  3026. // EFlipOptionsExtension type
  3027. type EFlipOptionsExtension struct {
  3028. }
  3029. // ReverseOptions type
  3030. type ReverseOptions struct {
  3031. // Options of Reverse mode parameter.
  3032. Mode []ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3033. Extension ReverseOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3034. }
  3035. // ReverseOptionsExtension type
  3036. type ReverseOptionsExtension struct {
  3037. }
  3038. // PanTiltLimits type
  3039. type PanTiltLimits struct {
  3040. //
  3041. // A range of pan tilt limits.
  3042. //
  3043. Range Space2DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
  3044. }
  3045. // ZoomLimits type
  3046. type ZoomLimits struct {
  3047. //
  3048. // A range of zoom limit
  3049. //
  3050. Range Space1DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
  3051. }
  3052. // PTZSpaces type
  3053. type PTZSpaces struct {
  3054. //
  3055. // The Generic Pan/Tilt Position space is provided by every PTZ node that supports absolute Pan/Tilt, since it does not relate to a specific physical range.
  3056. // Instead, the range should be defined as the full range of the PTZ unit normalized to the range -1 to 1 resulting in the following space description.
  3057. //
  3058. AbsolutePanTiltPositionSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema AbsolutePanTiltPositionSpace,omitempty"`
  3059. //
  3060. // The Generic Zoom Position Space is provided by every PTZ node that supports absolute Zoom, since it does not relate to a specific physical range.
  3061. // Instead, the range should be defined as the full range of the Zoom normalized to the range 0 (wide) to 1 (tele).
  3062. // There is no assumption about how the generic zoom range is mapped to magnification, FOV or other physical zoom dimension.
  3063. //
  3064. AbsoluteZoomPositionSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema AbsoluteZoomPositionSpace,omitempty"`
  3065. //
  3066. // The Generic Pan/Tilt translation space is provided by every PTZ node that supports relative Pan/Tilt, since it does not relate to a specific physical range.
  3067. // Instead, the range should be defined as the full positive and negative translation range of the PTZ unit normalized to the range -1 to 1,
  3068. // where positive translation would mean clockwise rotation or movement in right/up direction resulting in the following space description.
  3069. //
  3070. RelativePanTiltTranslationSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema RelativePanTiltTranslationSpace,omitempty"`
  3071. //
  3072. // The Generic Zoom Translation Space is provided by every PTZ node that supports relative Zoom, since it does not relate to a specific physical range.
  3073. // Instead, the corresponding absolute range should be defined as the full positive and negative translation range of the Zoom normalized to the range -1 to1,
  3074. // where a positive translation maps to a movement in TELE direction. The translation is signed to indicate direction (negative is to wide, positive is to tele).
  3075. // There is no assumption about how the generic zoom range is mapped to magnification, FOV or other physical zoom dimension. This results in the following space description.
  3076. //
  3077. RelativeZoomTranslationSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema RelativeZoomTranslationSpace,omitempty"`
  3078. //
  3079. // The generic Pan/Tilt velocity space shall be provided by every PTZ node, since it does not relate to a specific physical range.
  3080. // Instead, the range should be defined as a range of the PTZ unit’s speed normalized to the range -1 to 1, where a positive velocity would map to clockwise
  3081. // rotation or movement in the right/up direction. A signed speed can be independently specified for the pan and tilt component resulting in the following space description.
  3082. //
  3083. ContinuousPanTiltVelocitySpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousPanTiltVelocitySpace,omitempty"`
  3084. //
  3085. // The generic zoom velocity space specifies a zoom factor velocity without knowing the underlying physical model. The range should be normalized from -1 to 1,
  3086. // where a positive velocity would map to TELE direction. A generic zoom velocity space description resembles the following.
  3087. //
  3088. ContinuousZoomVelocitySpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousZoomVelocitySpace,omitempty"`
  3089. //
  3090. // The speed space specifies the speed for a Pan/Tilt movement when moving to an absolute position or to a relative translation.
  3091. // In contrast to the velocity spaces, speed spaces do not contain any directional information. The speed of a combined Pan/Tilt
  3092. // movement is represented by a single non-negative scalar value.
  3093. //
  3094. PanTiltSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltSpeedSpace,omitempty"`
  3095. //
  3096. // The speed space specifies the speed for a Zoom movement when moving to an absolute position or to a relative translation.
  3097. // In contrast to the velocity spaces, speed spaces do not contain any directional information.
  3098. //
  3099. ZoomSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomSpeedSpace,omitempty"`
  3100. Extension PTZSpacesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3101. }
  3102. // PTZSpacesExtension type
  3103. type PTZSpacesExtension struct {
  3104. }
  3105. // Space2DDescription type
  3106. type Space2DDescription struct {
  3107. //
  3108. // A URI of coordinate systems.
  3109. //
  3110. URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
  3111. //
  3112. // A range of x-axis.
  3113. //
  3114. XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  3115. //
  3116. // A range of y-axis.
  3117. //
  3118. YRange FloatRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
  3119. }
  3120. // Space1DDescription type
  3121. type Space1DDescription struct {
  3122. //
  3123. // A URI of coordinate systems.
  3124. //
  3125. URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
  3126. //
  3127. // A range of x-axis.
  3128. //
  3129. XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  3130. }
  3131. // PTZSpeed type
  3132. type PTZSpeed struct {
  3133. // Pan and tilt speed. The x component corresponds to pan and the y component to tilt. If omitted in a request, the current (if any) PanTilt movement should not be affected.
  3134. PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  3135. //
  3136. // A zoom speed. If omitted in a request, the current (if any) Zoom movement should not be affected.
  3137. //
  3138. Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  3139. }
  3140. // PTZPreset type
  3141. type PTZPreset struct {
  3142. //
  3143. // A list of preset position name.
  3144. //
  3145. Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  3146. //
  3147. // A list of preset position.
  3148. //
  3149. PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
  3150. Token ReferenceToken `xml:"token,attr,omitempty"`
  3151. }
  3152. // PTZPresetTourSpot type
  3153. type PTZPresetTourSpot struct {
  3154. // Detail definition of preset position of the tour spot.
  3155. PresetDetail PTZPresetTourPresetDetail `xml:"http://www.onvif.org/ver10/schema PresetDetail,omitempty"`
  3156. // Optional parameter to specify Pan/Tilt and Zoom speed on moving toward this tour spot.
  3157. Speed PTZSpeed `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3158. // Optional parameter to specify time duration of staying on this tour sport.
  3159. StayTime Duration `xml:"http://www.onvif.org/ver10/schema StayTime,omitempty"`
  3160. Extension PTZPresetTourSpotExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3161. }
  3162. // PTZPresetTourSpotExtension type
  3163. type PTZPresetTourSpotExtension struct {
  3164. }
  3165. // PTZPresetTourPresetDetail type
  3166. type PTZPresetTourPresetDetail struct {
  3167. // Option to specify the preset position with Preset Token defined in advance.
  3168. PresetToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl PresetToken,omitempty"`
  3169. // Option to specify the preset position with the home position of this PTZ Node. "False" to this parameter shall be treated as an invalid argument.
  3170. Home bool `xml:"http://www.onvif.org/ver10/display/wsdl Home,omitempty"`
  3171. // Option to specify the preset position with vector of PTZ node directly.
  3172. PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
  3173. TypeExtension PTZPresetTourTypeExtension `xml:"http://www.onvif.org/ver10/schema TypeExtension,omitempty"`
  3174. }
  3175. // PTZPresetTourTypeExtension type
  3176. type PTZPresetTourTypeExtension struct {
  3177. }
  3178. // PTZPresetTourStatus type
  3179. type PTZPresetTourStatus struct {
  3180. // Indicates state of this preset tour by Idle/Touring/Paused.
  3181. State PTZPresetTourState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  3182. // Indicates a tour spot currently staying.
  3183. CurrentTourSpot PTZPresetTourSpot `xml:"http://www.onvif.org/ver10/schema CurrentTourSpot,omitempty"`
  3184. Extension PTZPresetTourStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3185. }
  3186. // PTZPresetTourStatusExtension type
  3187. type PTZPresetTourStatusExtension struct {
  3188. }
  3189. // PTZPresetTourStartingCondition type
  3190. type PTZPresetTourStartingCondition struct {
  3191. // Optional parameter to specify how many times the preset tour is recurred.
  3192. RecurringTime int32 `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
  3193. // Optional parameter to specify how long time duration the preset tour is recurred.
  3194. RecurringDuration Duration `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
  3195. // Optional parameter to choose which direction the preset tour goes. Forward shall be chosen in case it is omitted.
  3196. Direction PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
  3197. Extension PTZPresetTourStartingConditionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3198. // Execute presets in random order. If set to true and Direction is also present, Direction will be ignored and presets of the Tour will be recalled randomly.
  3199. RandomPresetOrder bool `xml:"http://www.onvif.org/ver10/display/wsdl RandomPresetOrder,attr,omitempty"`
  3200. }
  3201. // PTZPresetTourStartingConditionExtension type
  3202. type PTZPresetTourStartingConditionExtension struct {
  3203. }
  3204. // PTZPresetTourPresetDetailOptions type
  3205. type PTZPresetTourPresetDetailOptions struct {
  3206. // A list of available Preset Tokens for tour spots.
  3207. PresetToken []ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl PresetToken,omitempty"`
  3208. // An option to indicate Home postion for tour spots.
  3209. Home bool `xml:"http://www.onvif.org/ver10/display/wsdl Home,omitempty"`
  3210. // Supported range of Pan and Tilt for tour spots.
  3211. PanTiltPositionSpace Space2DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltPositionSpace,omitempty"`
  3212. // Supported range of Zoom for a tour spot.
  3213. ZoomPositionSpace Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomPositionSpace,omitempty"`
  3214. Extension PTZPresetTourPresetDetailOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3215. }
  3216. // PTZPresetTourPresetDetailOptionsExtension type
  3217. type PTZPresetTourPresetDetailOptionsExtension struct {
  3218. }
  3219. // PTZPresetTourStartingConditionOptions type
  3220. type PTZPresetTourStartingConditionOptions struct {
  3221. // Supported range of Recurring Time.
  3222. RecurringTime IntRange `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
  3223. // Supported range of Recurring Duration.
  3224. RecurringDuration DurationRange `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
  3225. // Supported options for Direction of Preset Tour.
  3226. Direction []PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
  3227. Extension PTZPresetTourStartingConditionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3228. }
  3229. // PTZPresetTourStartingConditionOptionsExtension type
  3230. type PTZPresetTourStartingConditionOptionsExtension struct {
  3231. }
  3232. // ImagingStatus type
  3233. type ImagingStatus struct {
  3234. FocusStatus FocusStatus `xml:"http://www.onvif.org/ver10/schema FocusStatus,omitempty"`
  3235. }
  3236. // FocusStatus type
  3237. type FocusStatus struct {
  3238. //
  3239. // Status of focus position.
  3240. //
  3241. Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  3242. //
  3243. // Status of focus MoveStatus.
  3244. //
  3245. MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  3246. //
  3247. // Error status of focus.
  3248. //
  3249. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  3250. }
  3251. // FocusConfiguration type
  3252. type FocusConfiguration struct {
  3253. AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
  3254. DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  3255. // Parameter to set autofocus near limit (unit: meter).
  3256. NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  3257. // Parameter to set autofocus far limit (unit: meter).
  3258. // If set to 0.0, infinity will be used.
  3259. FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  3260. }
  3261. // ImagingSettings type
  3262. type ImagingSettings struct {
  3263. // Enabled/disabled BLC mode (on/off).
  3264. BacklightCompensation BacklightCompensation `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3265. // Image brightness (unit unspecified).
  3266. Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3267. // Color saturation of the image (unit unspecified).
  3268. ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3269. // Contrast of the image (unit unspecified).
  3270. Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3271. // Exposure mode of the device.
  3272. Exposure Exposure `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3273. // Focus configuration.
  3274. Focus FocusConfiguration `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3275. // Infrared Cutoff Filter settings.
  3276. IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
  3277. // Sharpness of the Video image.
  3278. Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3279. // WDR settings.
  3280. WideDynamicRange WideDynamicRange `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3281. // White balance settings.
  3282. WhiteBalance WhiteBalance `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3283. Extension ImagingSettingsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3284. }
  3285. // ImagingSettingsExtension type
  3286. type ImagingSettingsExtension struct {
  3287. }
  3288. // Exposure type
  3289. type Exposure struct {
  3290. //
  3291. // Exposure Mode
  3292. //
  3293. //
  3294. Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3295. //
  3296. // The exposure priority mode (low noise/framerate).
  3297. //
  3298. Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3299. //
  3300. // Rectangular exposure mask.
  3301. //
  3302. Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
  3303. //
  3304. // Minimum value of exposure time range allowed to be used by the algorithm.
  3305. //
  3306. MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3307. //
  3308. // Maximum value of exposure time range allowed to be used by the algorithm.
  3309. //
  3310. MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3311. //
  3312. // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
  3313. //
  3314. MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3315. //
  3316. // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
  3317. //
  3318. MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3319. //
  3320. // Minimum value of the iris range allowed to be used by the algorithm.
  3321. //
  3322. MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3323. //
  3324. // Maximum value of the iris range allowed to be used by the algorithm.
  3325. //
  3326. MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3327. //
  3328. // The fixed exposure time used by the image sensor (μs).
  3329. //
  3330. ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3331. //
  3332. // The fixed gain used by the image sensor (dB).
  3333. //
  3334. Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3335. //
  3336. // The fixed attenuation of input light affected by the iris (dB). 0dB maps to a fully opened iris.
  3337. //
  3338. Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3339. }
  3340. // WideDynamicRange type
  3341. type WideDynamicRange struct {
  3342. //
  3343. // White dynamic range (on/off)
  3344. //
  3345. Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3346. //
  3347. // Optional level parameter (unitless)
  3348. //
  3349. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3350. }
  3351. // BacklightCompensation type
  3352. type BacklightCompensation struct {
  3353. // Backlight compensation mode (on/off).
  3354. Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3355. // Optional level parameter (unit unspecified).
  3356. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3357. }
  3358. // ImagingOptions type
  3359. type ImagingOptions struct {
  3360. BacklightCompensation BacklightCompensationOptions `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3361. Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3362. ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3363. Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3364. Exposure ExposureOptions `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3365. Focus FocusOptions `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3366. IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
  3367. Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3368. WideDynamicRange WideDynamicRangeOptions `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3369. WhiteBalance WhiteBalanceOptions `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3370. }
  3371. // WideDynamicRangeOptions type
  3372. type WideDynamicRangeOptions struct {
  3373. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3374. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3375. }
  3376. // BacklightCompensationOptions type
  3377. type BacklightCompensationOptions struct {
  3378. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3379. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3380. }
  3381. // FocusOptions type
  3382. type FocusOptions struct {
  3383. AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
  3384. DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  3385. NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  3386. FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  3387. }
  3388. // ExposureOptions type
  3389. type ExposureOptions struct {
  3390. Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3391. Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3392. MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3393. MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3394. MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3395. MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3396. MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3397. MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3398. ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3399. Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3400. Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3401. }
  3402. // WhiteBalanceOptions type
  3403. type WhiteBalanceOptions struct {
  3404. Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3405. YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
  3406. YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
  3407. }
  3408. // WhiteBalance type
  3409. type WhiteBalance struct {
  3410. // Auto whitebalancing mode (auto/manual).
  3411. Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3412. // Rgain (unitless).
  3413. CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
  3414. // Bgain (unitless).
  3415. CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
  3416. }
  3417. // ImagingStatus20 type
  3418. type ImagingStatus20 struct {
  3419. //
  3420. // Status of focus.
  3421. //
  3422. FocusStatus20 FocusStatus20 `xml:"http://www.onvif.org/ver10/schema FocusStatus20,omitempty"`
  3423. Extension ImagingStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3424. }
  3425. // ImagingStatus20Extension type
  3426. type ImagingStatus20Extension struct {
  3427. }
  3428. // FocusStatus20 type
  3429. type FocusStatus20 struct {
  3430. //
  3431. // Status of focus position.
  3432. //
  3433. Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  3434. //
  3435. // Status of focus MoveStatus.
  3436. //
  3437. MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  3438. //
  3439. // Error status of focus.
  3440. //
  3441. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  3442. Extension FocusStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3443. }
  3444. // FocusStatus20Extension type
  3445. type FocusStatus20Extension struct {
  3446. }
  3447. // ImagingSettings20 type
  3448. type ImagingSettings20 struct {
  3449. // Enabled/disabled BLC mode (on/off).
  3450. BacklightCompensation BacklightCompensation20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3451. // Image brightness (unit unspecified).
  3452. Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3453. // Color saturation of the image (unit unspecified).
  3454. ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3455. // Contrast of the image (unit unspecified).
  3456. Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3457. // Exposure mode of the device.
  3458. Exposure Exposure20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3459. // Focus configuration.
  3460. Focus FocusConfiguration20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3461. // Infrared Cutoff Filter settings.
  3462. IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
  3463. // Sharpness of the Video image.
  3464. Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3465. // WDR settings.
  3466. WideDynamicRange WideDynamicRange20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3467. // White balance settings.
  3468. WhiteBalance WhiteBalance20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3469. Extension ImagingSettingsExtension20 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3470. }
  3471. // ImagingSettingsExtension20 type
  3472. type ImagingSettingsExtension20 struct {
  3473. // Optional element to configure Image Stabilization feature.
  3474. ImageStabilization ImageStabilization `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
  3475. Extension ImagingSettingsExtension202 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3476. }
  3477. // ImagingSettingsExtension202 type
  3478. type ImagingSettingsExtension202 struct {
  3479. // An optional parameter applied to only auto mode to adjust timing of toggling Ir cut filter.
  3480. IrCutFilterAutoAdjustment []IrCutFilterAutoAdjustment `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
  3481. Extension ImagingSettingsExtension203 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3482. }
  3483. // ImagingSettingsExtension203 type
  3484. type ImagingSettingsExtension203 struct {
  3485. // Optional element to configure Image Contrast Compensation.
  3486. ToneCompensation ToneCompensation `xml:"http://www.onvif.org/ver10/schema ToneCompensation,omitempty"`
  3487. // Optional element to configure Image Defogging.
  3488. Defogging Defogging `xml:"http://www.onvif.org/ver10/schema Defogging,omitempty"`
  3489. // Optional element to configure Image Noise Reduction.
  3490. NoiseReduction NoiseReduction `xml:"http://www.onvif.org/ver10/schema NoiseReduction,omitempty"`
  3491. Extension ImagingSettingsExtension204 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3492. }
  3493. // ImagingSettingsExtension204 type
  3494. type ImagingSettingsExtension204 struct {
  3495. }
  3496. // ImageStabilization type
  3497. type ImageStabilization struct {
  3498. // Parameter to enable/disable Image Stabilization feature.
  3499. Mode ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3500. // Optional level parameter (unit unspecified)
  3501. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3502. Extension ImageStabilizationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3503. }
  3504. // ImageStabilizationExtension type
  3505. type ImageStabilizationExtension struct {
  3506. }
  3507. // IrCutFilterAutoAdjustment type
  3508. type IrCutFilterAutoAdjustment struct {
  3509. // Specifies which boundaries to automatically toggle Ir cut filter following parameters are applied to. Its options shall be chosen from tt:IrCutFilterAutoBoundaryType.
  3510. BoundaryType string `xml:"http://www.onvif.org/ver10/schema BoundaryType,omitempty"`
  3511. // Adjusts boundary exposure level for toggling Ir cut filter to on/off specified with unitless normalized value from +1.0 to -1.0. Zero is default and -1.0 is the darkest adjustment (Unitless).
  3512. BoundaryOffset float32 `xml:"http://www.onvif.org/ver10/schema BoundaryOffset,omitempty"`
  3513. // Delay time of toggling Ir cut filter to on/off after crossing of the boundary exposure levels.
  3514. ResponseTime Duration `xml:"http://www.onvif.org/ver10/schema ResponseTime,omitempty"`
  3515. Extension IrCutFilterAutoAdjustmentExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3516. }
  3517. // IrCutFilterAutoAdjustmentExtension type
  3518. type IrCutFilterAutoAdjustmentExtension struct {
  3519. }
  3520. // WideDynamicRange20 type
  3521. type WideDynamicRange20 struct {
  3522. // Wide dynamic range mode (on/off).
  3523. Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3524. // Optional level parameter (unit unspecified).
  3525. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3526. }
  3527. // BacklightCompensation20 type
  3528. type BacklightCompensation20 struct {
  3529. // Backlight compensation mode (on/off).
  3530. Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3531. // Optional level parameter (unit unspecified).
  3532. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3533. }
  3534. // Exposure20 type
  3535. type Exposure20 struct {
  3536. //
  3537. // Exposure Mode
  3538. //
  3539. //
  3540. Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3541. //
  3542. // The exposure priority mode (low noise/framerate).
  3543. //
  3544. Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3545. //
  3546. // Rectangular exposure mask.
  3547. //
  3548. Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
  3549. //
  3550. // Minimum value of exposure time range allowed to be used by the algorithm.
  3551. //
  3552. MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3553. //
  3554. // Maximum value of exposure time range allowed to be used by the algorithm.
  3555. //
  3556. MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3557. //
  3558. // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
  3559. //
  3560. MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3561. //
  3562. // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
  3563. //
  3564. MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3565. //
  3566. // Minimum value of the iris range allowed to be used by the algorithm. 0dB maps to a fully opened iris and positive values map to higher attenuation.
  3567. //
  3568. MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3569. //
  3570. // Maximum value of the iris range allowed to be used by the algorithm. 0dB maps to a fully opened iris and positive values map to higher attenuation.
  3571. //
  3572. MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3573. //
  3574. // The fixed exposure time used by the image sensor (μs).
  3575. //
  3576. ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3577. //
  3578. // The fixed gain used by the image sensor (dB).
  3579. //
  3580. Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3581. //
  3582. // The fixed attenuation of input light affected by the iris (dB). 0dB maps to a fully opened iris and positive values map to higher attenuation.
  3583. //
  3584. Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3585. }
  3586. // ToneCompensation type
  3587. type ToneCompensation struct {
  3588. // Parameter to enable/disable or automatic ToneCompensation feature. Its options shall be chosen from tt:ToneCompensationMode Type.
  3589. Mode string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3590. // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
  3591. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3592. Extension ToneCompensationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3593. }
  3594. // ToneCompensationExtension type
  3595. type ToneCompensationExtension struct {
  3596. }
  3597. // Defogging type
  3598. type Defogging struct {
  3599. // Parameter to enable/disable or automatic Defogging feature. Its options shall be chosen from tt:DefoggingMode Type.
  3600. Mode string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3601. // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
  3602. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3603. Extension DefoggingExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3604. }
  3605. // DefoggingExtension type
  3606. type DefoggingExtension struct {
  3607. }
  3608. // NoiseReduction type
  3609. type NoiseReduction struct {
  3610. // Level parameter specified with unitless normalized value from 0.0 to +1.0. Level=0 means no noise reduction or minimal noise reduction.
  3611. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3612. }
  3613. // ImagingOptions20 type
  3614. type ImagingOptions20 struct {
  3615. //
  3616. // Valid range of Backlight Compensation.
  3617. //
  3618. BacklightCompensation BacklightCompensationOptions20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3619. //
  3620. // Valid range of Brightness.
  3621. //
  3622. Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3623. //
  3624. // Valid range of Color Saturation.
  3625. //
  3626. ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3627. //
  3628. // Valid range of Contrast.
  3629. //
  3630. Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3631. //
  3632. // Valid range of Exposure.
  3633. //
  3634. Exposure ExposureOptions20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3635. //
  3636. // Valid range of Focus.
  3637. //
  3638. Focus FocusOptions20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3639. //
  3640. // Valid range of IrCutFilterModes.
  3641. //
  3642. IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
  3643. //
  3644. // Valid range of Sharpness.
  3645. //
  3646. Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3647. //
  3648. // Valid range of WideDynamicRange.
  3649. //
  3650. WideDynamicRange WideDynamicRangeOptions20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3651. //
  3652. // Valid range of WhiteBalance.
  3653. //
  3654. WhiteBalance WhiteBalanceOptions20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3655. Extension ImagingOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3656. }
  3657. // ImagingOptions20Extension type
  3658. type ImagingOptions20Extension struct {
  3659. // Options of parameters for Image Stabilization feature.
  3660. ImageStabilization ImageStabilizationOptions `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
  3661. Extension ImagingOptions20Extension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3662. }
  3663. // ImagingOptions20Extension2 type
  3664. type ImagingOptions20Extension2 struct {
  3665. // Options of parameters for adjustment of Ir cut filter auto mode.
  3666. IrCutFilterAutoAdjustment IrCutFilterAutoAdjustmentOptions `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
  3667. Extension ImagingOptions20Extension3 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3668. }
  3669. // ImagingOptions20Extension3 type
  3670. type ImagingOptions20Extension3 struct {
  3671. // Options of parameters for Tone Compensation feature.
  3672. ToneCompensationOptions ToneCompensationOptions `xml:"http://www.onvif.org/ver10/schema ToneCompensationOptions,omitempty"`
  3673. // Options of parameters for Defogging feature.
  3674. DefoggingOptions DefoggingOptions `xml:"http://www.onvif.org/ver10/schema DefoggingOptions,omitempty"`
  3675. // Options of parameter for Noise Reduction feature.
  3676. NoiseReductionOptions NoiseReductionOptions `xml:"http://www.onvif.org/ver10/schema NoiseReductionOptions,omitempty"`
  3677. Extension ImagingOptions20Extension4 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3678. }
  3679. // ImagingOptions20Extension4 type
  3680. type ImagingOptions20Extension4 struct {
  3681. }
  3682. // ImageStabilizationOptions type
  3683. type ImageStabilizationOptions struct {
  3684. // Supported options of Image Stabilization mode parameter.
  3685. Mode []ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3686. // Valid range of the Image Stabilization.
  3687. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3688. Extension ImageStabilizationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3689. }
  3690. // ImageStabilizationOptionsExtension type
  3691. type ImageStabilizationOptionsExtension struct {
  3692. }
  3693. // IrCutFilterAutoAdjustmentOptions type
  3694. type IrCutFilterAutoAdjustmentOptions struct {
  3695. // Supported options of boundary types for adjustment of Ir cut filter auto mode. The opptions shall be chosen from tt:IrCutFilterAutoBoundaryType.
  3696. BoundaryType []string `xml:"http://www.onvif.org/ver10/schema BoundaryType,omitempty"`
  3697. // Indicates whether or not boundary offset for toggling Ir cut filter is supported.
  3698. BoundaryOffset bool `xml:"http://www.onvif.org/ver10/display/wsdl BoundaryOffset,omitempty"`
  3699. // Supported range of delay time for toggling Ir cut filter.
  3700. ResponseTimeRange DurationRange `xml:"http://www.onvif.org/ver10/schema ResponseTimeRange,omitempty"`
  3701. Extension IrCutFilterAutoAdjustmentOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3702. }
  3703. // IrCutFilterAutoAdjustmentOptionsExtension type
  3704. type IrCutFilterAutoAdjustmentOptionsExtension struct {
  3705. }
  3706. // WideDynamicRangeOptions20 type
  3707. type WideDynamicRangeOptions20 struct {
  3708. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3709. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3710. }
  3711. // BacklightCompensationOptions20 type
  3712. type BacklightCompensationOptions20 struct {
  3713. //
  3714. // 'ON' or 'OFF'
  3715. //
  3716. Mode []BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3717. //
  3718. // Level range of BacklightCompensation.
  3719. //
  3720. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3721. }
  3722. // ExposureOptions20 type
  3723. type ExposureOptions20 struct {
  3724. //
  3725. // Exposure Mode
  3726. //
  3727. //
  3728. Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3729. //
  3730. // The exposure priority mode (low noise/framerate).
  3731. //
  3732. Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3733. //
  3734. // Valid range of the Minimum ExposureTime.
  3735. //
  3736. MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3737. //
  3738. // Valid range of the Maximum ExposureTime.
  3739. //
  3740. MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3741. //
  3742. // Valid range of the Minimum Gain.
  3743. //
  3744. MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3745. //
  3746. // Valid range of the Maximum Gain.
  3747. //
  3748. MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3749. //
  3750. // Valid range of the Minimum Iris.
  3751. //
  3752. MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3753. //
  3754. // Valid range of the Maximum Iris.
  3755. //
  3756. MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3757. //
  3758. // Valid range of the ExposureTime.
  3759. //
  3760. ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3761. //
  3762. // Valid range of the Gain.
  3763. //
  3764. Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3765. //
  3766. // Valid range of the Iris.
  3767. //
  3768. Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3769. }
  3770. // WhiteBalance20 type
  3771. type WhiteBalance20 struct {
  3772. //
  3773. // 'AUTO' or 'MANUAL'
  3774. //
  3775. Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3776. //
  3777. // Rgain (unitless).
  3778. //
  3779. CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
  3780. //
  3781. // Bgain (unitless).
  3782. //
  3783. CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
  3784. Extension WhiteBalance20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3785. }
  3786. // WhiteBalance20Extension type
  3787. type WhiteBalance20Extension struct {
  3788. }
  3789. // FocusConfiguration20 type
  3790. type FocusConfiguration20 struct {
  3791. //
  3792. // Mode of auto focus.
  3793. //
  3794. // Note: for devices supporting both manual and auto operation at the same time manual operation may be supported even if the Mode parameter is set to Auto.
  3795. //
  3796. AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
  3797. DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  3798. // Parameter to set autofocus near limit (unit: meter).
  3799. NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  3800. // Parameter to set autofocus far limit (unit: meter).
  3801. FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  3802. Extension FocusConfiguration20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3803. // Zero or more modes as defined in enumeration tt:AFModes.
  3804. AFMode StringAttrList `xml:"http://www.onvif.org/ver10/schema AFMode,attr,omitempty"`
  3805. }
  3806. // FocusConfiguration20Extension type
  3807. type FocusConfiguration20Extension struct {
  3808. }
  3809. // WhiteBalanceOptions20 type
  3810. type WhiteBalanceOptions20 struct {
  3811. //
  3812. // Mode of WhiteBalance.
  3813. //
  3814. //
  3815. Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3816. YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
  3817. YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
  3818. Extension WhiteBalanceOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3819. }
  3820. // WhiteBalanceOptions20Extension type
  3821. type WhiteBalanceOptions20Extension struct {
  3822. }
  3823. // FocusOptions20 type
  3824. type FocusOptions20 struct {
  3825. //
  3826. // Supported modes for auto focus.
  3827. //
  3828. //
  3829. AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
  3830. //
  3831. // Valid range of DefaultSpeed.
  3832. //
  3833. DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  3834. //
  3835. // Valid range of NearLimit.
  3836. //
  3837. NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  3838. //
  3839. // Valid range of FarLimit.
  3840. //
  3841. FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  3842. Extension FocusOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3843. }
  3844. // FocusOptions20Extension type
  3845. type FocusOptions20Extension struct {
  3846. // Supported options for auto focus. Options shall be chosen from tt:AFModes.
  3847. AFModes StringAttrList `xml:"http://www.onvif.org/ver10/schema AFModes,omitempty"`
  3848. }
  3849. // ToneCompensationOptions type
  3850. type ToneCompensationOptions struct {
  3851. // Supported options for Tone Compensation mode. Its options shall be chosen from tt:ToneCompensationMode Type.
  3852. Mode []string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3853. // Indicates whether or not support Level parameter for Tone Compensation.
  3854. Level bool `xml:"http://www.onvif.org/ver10/display/wsdl Level,omitempty"`
  3855. }
  3856. // DefoggingOptions type
  3857. type DefoggingOptions struct {
  3858. // Supported options for Defogging mode. Its options shall be chosen from tt:DefoggingMode Type.
  3859. Mode []string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3860. // Indicates whether or not support Level parameter for Defogging.
  3861. Level bool `xml:"http://www.onvif.org/ver10/display/wsdl Level,omitempty"`
  3862. }
  3863. // NoiseReductionOptions type
  3864. type NoiseReductionOptions struct {
  3865. // Indicates whether or not support Level parameter for NoiseReduction.
  3866. Level bool `xml:"http://www.onvif.org/ver10/display/wsdl Level,omitempty"`
  3867. }
  3868. // MessageExtension type
  3869. type MessageExtension struct {
  3870. }
  3871. // ItemList type
  3872. type ItemList struct {
  3873. SimpleItem []struct {
  3874. // Item name.
  3875. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  3876. // Item value. The type is defined in the corresponding description.
  3877. Value AnySimpleType `xml:"Value,attr,omitempty"`
  3878. } `xml:"SimpleItem,omitempty"`
  3879. ElementItem []struct {
  3880. // Item name.
  3881. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  3882. } `xml:"ElementItem,omitempty"`
  3883. Extension ItemListExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3884. }
  3885. // ItemListExtension type
  3886. type ItemListExtension struct {
  3887. }
  3888. // MessageDescription type
  3889. type MessageDescription struct {
  3890. // Set of tokens producing this message. The list may only contain SimpleItemDescription items.
  3891. // The set of tokens identify the component within the WS-Endpoint, which is responsible for the producing the message.
  3892. // For analytics events the token set shall include the VideoSourceConfigurationToken, the VideoAnalyticsConfigurationToken
  3893. // and the name of the analytics module or rule.
  3894. //
  3895. Source ItemListDescription `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  3896. // Describes optional message payload parameters that may be used as key. E.g. object IDs of tracked objects are conveyed as key.
  3897. Key ItemListDescription `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  3898. // Describes the payload of the message.
  3899. Data ItemListDescription `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  3900. Extension MessageDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3901. // Must be set to true when the described Message relates to a property. An alternative term of "property" is a "state" in contrast to a pure event, which contains relevant information for only a single point in time.Default is false.
  3902. IsProperty bool `xml:"http://www.onvif.org/ver10/display/wsdl IsProperty,attr,omitempty"`
  3903. }
  3904. // MessageDescriptionExtension type
  3905. type MessageDescriptionExtension struct {
  3906. }
  3907. // ItemListDescription type
  3908. type ItemListDescription struct {
  3909. SimpleItemDescription []struct {
  3910. // Item name. Must be unique within a list.
  3911. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  3912. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  3913. } `xml:"SimpleItemDescription,omitempty"`
  3914. ElementItemDescription []struct {
  3915. // Item name. Must be unique within a list.
  3916. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  3917. // The type of the item. The Type must reference a defined type.
  3918. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  3919. } `xml:"ElementItemDescription,omitempty"`
  3920. Extension ItemListDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3921. }
  3922. // ItemListDescriptionExtension type
  3923. type ItemListDescriptionExtension struct {
  3924. }
  3925. // Polyline type
  3926. type Polyline struct {
  3927. Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
  3928. }
  3929. // AnalyticsEngineConfiguration type
  3930. type AnalyticsEngineConfiguration struct {
  3931. AnalyticsModule []Config `xml:"http://www.onvif.org/ver10/schema AnalyticsModule,omitempty"`
  3932. Extension AnalyticsEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3933. }
  3934. // AnalyticsEngineConfigurationExtension type
  3935. type AnalyticsEngineConfigurationExtension struct {
  3936. }
  3937. // RuleEngineConfiguration type
  3938. type RuleEngineConfiguration struct {
  3939. Rule []Config `xml:"http://www.onvif.org/ver10/schema Rule,omitempty"`
  3940. Extension RuleEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3941. }
  3942. // RuleEngineConfigurationExtension type
  3943. type RuleEngineConfigurationExtension struct {
  3944. }
  3945. // Config type
  3946. type Config struct {
  3947. // List of configuration parameters as defined in the correspding description.
  3948. Parameters ItemList `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
  3949. // Name of the configuration.
  3950. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  3951. // The Type attribute specifies the type of rule and shall be equal to value of one of Name attributes of ConfigDescription elements returned by GetSupportedRules and GetSupportedAnalyticsModules command.
  3952. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  3953. }
  3954. // ConfigDescription type
  3955. type ConfigDescription struct {
  3956. //
  3957. // List describing the configuration parameters. The names of the parameters must be unique. If possible SimpleItems
  3958. // should be used to transport the information to ease parsing of dynamically defined messages by a client
  3959. // application.
  3960. //
  3961. Parameters ItemListDescription `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
  3962. Messages []struct {
  3963. *MessageDescription
  3964. //
  3965. // The ParentTopic labels the message (e.g. "nn:RuleEngine/LineCrossing"). The real message can extend the ParentTopic
  3966. // by for example the name of the instaniated rule (e.g. "nn:RuleEngine/LineCrossing/corssMyFirstLine").
  3967. // Even without knowing the complete topic name, the subscriber will be able to distiguish the
  3968. // messages produced by different rule instances of the same type via the Source fields of the message.
  3969. // There the name of the rule instance, which produced the message, must be listed.
  3970. //
  3971. ParentTopic string `xml:"http://www.onvif.org/ver10/schema ParentTopic,omitempty"`
  3972. } `xml:"Messages,omitempty"`
  3973. Extension ConfigDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3974. // The Name attribute (e.g. "tt::LineDetector") uniquely identifies the type of rule, not a type definition in a schema.
  3975. Name QName `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  3976. // The fixed attribute signals that it is not allowed to add or remove this type of configuration.
  3977. Fixed bool `xml:"fixed,attr,omitempty"`
  3978. // The maxInstances attribute signals the maximum number of instances per configuration.
  3979. MaxInstances int32 `xml:"maxInstances,attr,omitempty"`
  3980. }
  3981. // ConfigDescriptionExtension type
  3982. type ConfigDescriptionExtension struct {
  3983. }
  3984. // SupportedRules type
  3985. type SupportedRules struct {
  3986. // Lists the location of all schemas that are referenced in the rules.
  3987. RuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema RuleContentSchemaLocation,omitempty"`
  3988. // List of rules supported by the Video Analytics configuration..
  3989. RuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema RuleDescription,omitempty"`
  3990. Extension SupportedRulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3991. }
  3992. // SupportedRulesExtension type
  3993. type SupportedRulesExtension struct {
  3994. }
  3995. // SupportedAnalyticsModules type
  3996. type SupportedAnalyticsModules struct {
  3997. // It optionally contains a list of URLs that provide the location of schema files.
  3998. // These schema files describe the types and elements used in the analytics module descriptions.
  3999. // Analytics module descriptions that reference types or elements imported from any ONVIF defined schema files
  4000. // need not explicitly list those schema files.
  4001. AnalyticsModuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleContentSchemaLocation,omitempty"`
  4002. AnalyticsModuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleDescription,omitempty"`
  4003. Extension SupportedAnalyticsModulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4004. }
  4005. // SupportedAnalyticsModulesExtension type
  4006. type SupportedAnalyticsModulesExtension struct {
  4007. }
  4008. // PolylineArray type
  4009. type PolylineArray struct {
  4010. // Contains array of Polyline
  4011. Segment []Polyline `xml:"http://www.onvif.org/ver10/schema Segment,omitempty"`
  4012. Extension PolylineArrayExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4013. }
  4014. // PolylineArrayExtension type
  4015. type PolylineArrayExtension struct {
  4016. }
  4017. // PaneConfiguration type
  4018. type PaneConfiguration struct {
  4019. // Optional name of the pane configuration.
  4020. PaneName string `xml:"http://www.onvif.org/ver10/schema PaneName,omitempty"`
  4021. // If the device has audio outputs, this element contains a pointer to the audio output that is associated with the pane. A client
  4022. // can retrieve the available audio outputs of a device using the GetAudioOutputs command of the DeviceIO service.
  4023. AudioOutputToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl AudioOutputToken,omitempty"`
  4024. // If the device has audio sources, this element contains a pointer to the audio source that is associated with this pane.
  4025. // The audio connection from a decoder device to the NVT is established using the backchannel mechanism. A client can retrieve the available audio sources of a device using the GetAudioSources command of the
  4026. // DeviceIO service.
  4027. AudioSourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl AudioSourceToken,omitempty"`
  4028. // The configuration of the audio encoder including codec, bitrate
  4029. // and sample rate.
  4030. AudioEncoderConfiguration AudioEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioEncoderConfiguration,omitempty"`
  4031. // A pointer to a Receiver that has the necessary information to receive
  4032. // data from a Transmitter. This Receiver can be connected and the network video decoder displays the received data on the specified outputs. A client can retrieve the available Receivers using the
  4033. // GetReceivers command of the Receiver Service.
  4034. ReceiverToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl ReceiverToken,omitempty"`
  4035. // A unique identifier in the display device.
  4036. Token ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Token,omitempty"`
  4037. }
  4038. // PaneLayout type
  4039. type PaneLayout struct {
  4040. // Reference to the configuration of the streaming and coding parameters.
  4041. Pane ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Pane,omitempty"`
  4042. // Describes the location and size of the area on the monitor. The area coordinate values are espressed in normalized units [-1.0, 1.0].
  4043. Area Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
  4044. }
  4045. // Layout type
  4046. type Layout struct {
  4047. // List of panes assembling the display layout.
  4048. PaneLayout []PaneLayout `xml:"http://www.onvif.org/ver10/schema PaneLayout,omitempty"`
  4049. Extension LayoutExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4050. }
  4051. // LayoutExtension type
  4052. type LayoutExtension struct {
  4053. }
  4054. // CodingCapabilities type
  4055. type CodingCapabilities struct {
  4056. // If the device supports audio encoding this section describes the supported codecs and their configuration.
  4057. AudioEncodingCapabilities AudioEncoderConfigurationOptions `xml:"http://www.onvif.org/ver10/schema AudioEncodingCapabilities,omitempty"`
  4058. // If the device supports audio decoding this section describes the supported codecs and their settings.
  4059. AudioDecodingCapabilities AudioDecoderConfigurationOptions `xml:"http://www.onvif.org/ver10/schema AudioDecodingCapabilities,omitempty"`
  4060. // This section describes the supported video codesc and their configuration.
  4061. VideoDecodingCapabilities VideoDecoderConfigurationOptions `xml:"http://www.onvif.org/ver10/schema VideoDecodingCapabilities,omitempty"`
  4062. }
  4063. // LayoutOptions type
  4064. type LayoutOptions struct {
  4065. // Lists the possible Pane Layouts of the Video Output
  4066. PaneLayoutOptions []PaneLayoutOptions `xml:"http://www.onvif.org/ver10/schema PaneLayoutOptions,omitempty"`
  4067. Extension LayoutOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4068. }
  4069. // LayoutOptionsExtension type
  4070. type LayoutOptionsExtension struct {
  4071. }
  4072. // PaneLayoutOptions type
  4073. type PaneLayoutOptions struct {
  4074. // List of areas assembling a layout. Coordinate values are in the range [-1.0, 1.0].
  4075. Area []Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
  4076. Extension PaneOptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4077. }
  4078. // PaneOptionExtension type
  4079. type PaneOptionExtension struct {
  4080. }
  4081. // Receiver type
  4082. type Receiver struct {
  4083. // Unique identifier of the receiver.
  4084. Token ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Token,omitempty"`
  4085. // Describes the configuration of the receiver.
  4086. Configuration ReceiverConfiguration `xml:"http://www.onvif.org/ver10/schema Configuration,omitempty"`
  4087. }
  4088. // ReceiverConfiguration type
  4089. type ReceiverConfiguration struct {
  4090. // The following connection modes are defined:
  4091. Mode ReceiverMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4092. // Details of the URI to which the receiver should connect.
  4093. MediaUri AnyURI `xml:"http://www.onvif.org/ver10/schema MediaUri,omitempty"`
  4094. // Stream connection parameters.
  4095. StreamSetup StreamSetup `xml:"http://www.onvif.org/ver10/schema StreamSetup,omitempty"`
  4096. }
  4097. // SourceReference type
  4098. type SourceReference struct {
  4099. Token ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Token,omitempty"`
  4100. Type AnyURI `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4101. }
  4102. // DateTimeRange type
  4103. type DateTimeRange struct {
  4104. From string `xml:"http://www.onvif.org/ver10/schema From,omitempty"`
  4105. Until string `xml:"http://www.onvif.org/ver10/schema Until,omitempty"`
  4106. }
  4107. // SearchScope type
  4108. type SearchScope struct {
  4109. // A list of sources that are included in the scope. If this list is included, only data from one of these sources shall be searched.
  4110. IncludedSources []SourceReference `xml:"http://www.onvif.org/ver10/schema IncludedSources,omitempty"`
  4111. // A list of recordings that are included in the scope. If this list is included, only data from one of these recordings shall be searched.
  4112. IncludedRecordings []RecordingReference `xml:"http://www.onvif.org/ver10/schema IncludedRecordings,omitempty"`
  4113. // An xpath expression used to specify what recordings to search. Only those recordings with an RecordingInformation structure that matches the filter shall be searched.
  4114. RecordingInformationFilter XPathExpression `xml:"http://www.onvif.org/ver10/schema RecordingInformationFilter,omitempty"`
  4115. // Extension point
  4116. Extension SearchScopeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4117. }
  4118. // SearchScopeExtension type
  4119. type SearchScopeExtension struct {
  4120. }
  4121. // RecordingSourceInformation type
  4122. type RecordingSourceInformation struct {
  4123. //
  4124. // Identifier for the source chosen by the client that creates the structure.
  4125. // This identifier is opaque to the device. Clients may use any type of URI for this field. A device shall support at least 128 characters.
  4126. SourceId AnyURI `xml:"http://www.onvif.org/ver10/schema SourceId,omitempty"`
  4127. // Informative user readable name of the source, e.g. "Camera23". A device shall support at least 20 characters.
  4128. Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  4129. // Informative description of the physical location of the source, e.g. the coordinates on a map.
  4130. Location Description `xml:"http://www.onvif.org/ver10/schema Location,omitempty"`
  4131. // Informative description of the source.
  4132. Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
  4133. // URI provided by the service supplying data to be recorded. A device shall support at least 128 characters.
  4134. Address AnyURI `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  4135. }
  4136. // TrackInformation type
  4137. type TrackInformation struct {
  4138. TrackToken TrackReference `xml:"http://www.onvif.org/ver10/schema TrackToken,omitempty"`
  4139. // Type of the track: "Video", "Audio" or "Metadata".
  4140. // The track shall only be able to hold data of that type.
  4141. TrackType TrackType `xml:"http://www.onvif.org/ver10/schema TrackType,omitempty"`
  4142. // Informative description of the contents of the track.
  4143. Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
  4144. // The start date and time of the oldest recorded data in the track.
  4145. DataFrom string `xml:"http://www.onvif.org/ver10/schema DataFrom,omitempty"`
  4146. // The stop date and time of the newest recorded data in the track.
  4147. DataTo string `xml:"http://www.onvif.org/ver10/schema DataTo,omitempty"`
  4148. }
  4149. // TrackAttributes type
  4150. type TrackAttributes struct {
  4151. // The basic information about the track. Note that a track may represent a single contiguous time span or consist of multiple slices.
  4152. TrackInformation TrackInformation `xml:"http://www.onvif.org/ver10/schema TrackInformation,omitempty"`
  4153. // If the track is a video track, exactly one of this structure shall be present and contain the video attributes.
  4154. VideoAttributes VideoAttributes `xml:"http://www.onvif.org/ver10/schema VideoAttributes,omitempty"`
  4155. // If the track is an audio track, exactly one of this structure shall be present and contain the audio attributes.
  4156. AudioAttributes AudioAttributes `xml:"http://www.onvif.org/ver10/schema AudioAttributes,omitempty"`
  4157. // If the track is an metadata track, exactly one of this structure shall be present and contain the metadata attributes.
  4158. MetadataAttributes MetadataAttributes `xml:"http://www.onvif.org/ver10/schema MetadataAttributes,omitempty"`
  4159. Extension TrackAttributesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4160. }
  4161. // TrackAttributesExtension type
  4162. type TrackAttributesExtension struct {
  4163. }
  4164. // VideoAttributes type
  4165. type VideoAttributes struct {
  4166. // Average bitrate in kbps.
  4167. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  4168. // The width of the video in pixels.
  4169. Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
  4170. // The height of the video in pixels.
  4171. Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
  4172. // Video encoding of the track. Use value from tt:VideoEncoding for MPEG4. Otherwise use values from tt:VideoEncodingMimeNames and .
  4173. Encoding string `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  4174. // Average framerate in frames per second.
  4175. Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
  4176. }
  4177. // AudioAttributes type
  4178. type AudioAttributes struct {
  4179. // The bitrate in kbps.
  4180. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  4181. // Audio encoding of the track. Use values from tt:AudioEncoding for G711 and AAC. Otherwise use values from tt:AudioEncodingMimeNames and .
  4182. Encoding string `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  4183. // The sample rate in kHz.
  4184. Samplerate int32 `xml:"http://www.onvif.org/ver10/schema Samplerate,omitempty"`
  4185. }
  4186. // MetadataAttributes type
  4187. type MetadataAttributes struct {
  4188. // Indicates that there can be PTZ data in the metadata track in the specified time interval.
  4189. CanContainPTZ bool `xml:"http://www.onvif.org/ver10/display/wsdl CanContainPTZ,omitempty"`
  4190. // Indicates that there can be analytics data in the metadata track in the specified time interval.
  4191. CanContainAnalytics bool `xml:"http://www.onvif.org/ver10/display/wsdl CanContainAnalytics,omitempty"`
  4192. // Indicates that there can be notifications in the metadata track in the specified time interval.
  4193. CanContainNotifications bool `xml:"http://www.onvif.org/ver10/display/wsdl CanContainNotifications,omitempty"`
  4194. // List of all PTZ spaces active for recording. Note that events are only recorded on position changes and the actual point of recording may not necessarily contain an event of the specified type.
  4195. PtzSpaces StringAttrList `xml:"http://www.onvif.org/ver10/schema PtzSpaces,attr,omitempty"`
  4196. }
  4197. // RecordingJobConfiguration type
  4198. type RecordingJobConfiguration struct {
  4199. // Identifies the recording to which this job shall store the received data.
  4200. RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
  4201. // The mode of the job. If it is idle, nothing shall happen. If it is active, the device shall try
  4202. // to obtain data from the receivers. A client shall use GetRecordingJobState to determine if data transfer is really taking place.
  4203. // The only valid values for Mode shall be “Idle” and “Active”.
  4204. Mode RecordingJobMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4205. // This shall be a non-negative number. If there are multiple recording jobs that store data to
  4206. // the same track, the device will only store the data for the recording job with the highest
  4207. // priority. The priority is specified per recording job, but the device shall determine the priority
  4208. // of each track individually. If there are two recording jobs with the same priority, the device
  4209. // shall record the data corresponding to the recording job that was activated the latest.
  4210. Priority int32 `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  4211. // Source of the recording.
  4212. Source []RecordingJobSource `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  4213. Extension RecordingJobConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4214. // This attribute adds an additional requirement for activating the recording job.
  4215. // If this optional field is provided the job shall only record if the schedule exists and is active.
  4216. //
  4217. ScheduleToken string `xml:"http://www.onvif.org/ver10/schema ScheduleToken,attr,omitempty"`
  4218. }
  4219. // RecordingJobConfigurationExtension type
  4220. type RecordingJobConfigurationExtension struct {
  4221. }
  4222. // RecordingJobSource type
  4223. type RecordingJobSource struct {
  4224. // This field shall be a reference to the source of the data. The type of the source
  4225. // is determined by the attribute Type in the SourceToken structure. If Type is
  4226. // http://www.onvif.org/ver10/schema/Receiver, the token is a ReceiverReference. In this case
  4227. // the device shall receive the data over the network. If Type is
  4228. // http://www.onvif.org/ver10/schema/Profile, the token identifies a media profile, instructing the
  4229. // device to obtain data from a profile that exists on the local device.
  4230. SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
  4231. // If this field is TRUE, and if the SourceToken is omitted, the device
  4232. // shall create a receiver object (through the receiver service) and assign the
  4233. // ReceiverReference to the SourceToken field. When retrieving the RecordingJobConfiguration
  4234. // from the device, the AutoCreateReceiver field shall never be present.
  4235. AutoCreateReceiver bool `xml:"http://www.onvif.org/ver10/display/wsdl AutoCreateReceiver,omitempty"`
  4236. // List of tracks associated with the recording.
  4237. Tracks []RecordingJobTrack `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
  4238. Extension RecordingJobSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4239. }
  4240. // RecordingJobSourceExtension type
  4241. type RecordingJobSourceExtension struct {
  4242. }
  4243. // RecordingJobTrack type
  4244. type RecordingJobTrack struct {
  4245. // If the received RTSP stream contains multiple tracks of the same type, the
  4246. // SourceTag differentiates between those Tracks. This field can be ignored in case of recording a local source.
  4247. SourceTag string `xml:"http://www.onvif.org/ver10/schema SourceTag,omitempty"`
  4248. // The destination is the tracktoken of the track to which the device shall store the
  4249. // received data.
  4250. Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
  4251. }
  4252. // RecordingJobStateInformation type
  4253. type RecordingJobStateInformation struct {
  4254. // Identification of the recording that the recording job records to.
  4255. RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
  4256. // Holds the aggregated state over the whole RecordingJobInformation structure.
  4257. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  4258. // Identifies the data source of the recording job.
  4259. Sources []RecordingJobStateSource `xml:"http://www.onvif.org/ver10/schema Sources,omitempty"`
  4260. Extension RecordingJobStateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4261. }
  4262. // RecordingJobStateInformationExtension type
  4263. type RecordingJobStateInformationExtension struct {
  4264. }
  4265. // RecordingJobStateSource type
  4266. type RecordingJobStateSource struct {
  4267. // Identifies the data source of the recording job.
  4268. SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
  4269. // Holds the aggregated state over all substructures of RecordingJobStateSource.
  4270. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  4271. // List of track items.
  4272. Tracks RecordingJobStateTracks `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
  4273. }
  4274. // RecordingJobStateTracks type
  4275. type RecordingJobStateTracks struct {
  4276. Track []RecordingJobStateTrack `xml:"http://www.onvif.org/ver10/schema Track,omitempty"`
  4277. }
  4278. // RecordingJobStateTrack type
  4279. type RecordingJobStateTrack struct {
  4280. // Identifies the track of the data source that provides the data.
  4281. SourceTag string `xml:"http://www.onvif.org/ver10/schema SourceTag,omitempty"`
  4282. // Indicates the destination track.
  4283. Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
  4284. // Optionally holds an implementation defined string value that describes the error.
  4285. // The string should be in the English language.
  4286. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  4287. // Provides the job state of the track. The valid
  4288. // values of state shall be “Idle”, “Active” and “Error”. If state equals “Error”, the Error field may be filled in with an implementation defined value.
  4289. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  4290. }
  4291. // AnalyticsEngine type
  4292. type AnalyticsEngine struct {
  4293. *ConfigurationEntity
  4294. AnalyticsEngineConfiguration AnalyticsDeviceEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  4295. }
  4296. // AnalyticsDeviceEngineConfiguration type
  4297. type AnalyticsDeviceEngineConfiguration struct {
  4298. EngineConfiguration []EngineConfiguration `xml:"http://www.onvif.org/ver10/schema EngineConfiguration,omitempty"`
  4299. Extension AnalyticsDeviceEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4300. }
  4301. // AnalyticsDeviceEngineConfigurationExtension type
  4302. type AnalyticsDeviceEngineConfigurationExtension struct {
  4303. }
  4304. // EngineConfiguration type
  4305. type EngineConfiguration struct {
  4306. VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
  4307. AnalyticsEngineInputInfo AnalyticsEngineInputInfo `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineInputInfo,omitempty"`
  4308. }
  4309. // AnalyticsEngineInputInfo type
  4310. type AnalyticsEngineInputInfo struct {
  4311. InputInfo Config `xml:"http://www.onvif.org/ver10/schema InputInfo,omitempty"`
  4312. Extension AnalyticsEngineInputInfoExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4313. }
  4314. // AnalyticsEngineInputInfoExtension type
  4315. type AnalyticsEngineInputInfoExtension struct {
  4316. }
  4317. // AnalyticsEngineInput type
  4318. type AnalyticsEngineInput struct {
  4319. *ConfigurationEntity
  4320. SourceIdentification SourceIdentification `xml:"http://www.onvif.org/ver10/schema SourceIdentification,omitempty"`
  4321. VideoInput VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoInput,omitempty"`
  4322. MetadataInput MetadataInput `xml:"http://www.onvif.org/ver10/schema MetadataInput,omitempty"`
  4323. }
  4324. // SourceIdentification type
  4325. type SourceIdentification struct {
  4326. Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  4327. Token []ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl Token,omitempty"`
  4328. Extension SourceIdentificationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4329. }
  4330. // SourceIdentificationExtension type
  4331. type SourceIdentificationExtension struct {
  4332. }
  4333. // MetadataInput type
  4334. type MetadataInput struct {
  4335. MetadataConfig []Config `xml:"http://www.onvif.org/ver10/schema MetadataConfig,omitempty"`
  4336. Extension MetadataInputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4337. }
  4338. // MetadataInputExtension type
  4339. type MetadataInputExtension struct {
  4340. }
  4341. // ActionEngineEventPayload type
  4342. type ActionEngineEventPayload struct {
  4343. // Request Message
  4344. RequestInfo Envelope `xml:"RequestInfo,omitempty"`
  4345. // Response Message
  4346. ResponseInfo Envelope `xml:"ResponseInfo,omitempty"`
  4347. // Fault Message
  4348. Fault Fault `xml:"Fault,omitempty"`
  4349. Extension ActionEngineEventPayloadExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4350. }
  4351. // ActionEngineEventPayloadExtension type
  4352. type ActionEngineEventPayloadExtension struct {
  4353. }
  4354. // AudioClassCandidate type
  4355. type AudioClassCandidate struct {
  4356. // Indicates audio class label
  4357. Type AudioClassType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4358. // A likelihood/probability that the corresponding audio event belongs to this class. The sum of the likelihoods shall NOT exceed 1
  4359. Likelihood float32 `xml:"http://www.onvif.org/ver10/schema Likelihood,omitempty"`
  4360. }
  4361. // AudioClassDescriptor type
  4362. type AudioClassDescriptor struct {
  4363. // Array of audio class label and class probability
  4364. ClassCandidate []AudioClassCandidate `xml:"http://www.onvif.org/ver10/schema ClassCandidate,omitempty"`
  4365. Extension AudioClassDescriptorExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4366. }
  4367. // AudioClassDescriptorExtension type
  4368. type AudioClassDescriptorExtension struct {
  4369. }
  4370. // ActiveConnection type
  4371. type ActiveConnection struct {
  4372. CurrentBitrate float32 `xml:"http://www.onvif.org/ver10/schema CurrentBitrate,omitempty"`
  4373. CurrentFps float32 `xml:"http://www.onvif.org/ver10/schema CurrentFps,omitempty"`
  4374. }
  4375. // ProfileStatus type
  4376. type ProfileStatus struct {
  4377. ActiveConnections []ActiveConnection `xml:"http://www.onvif.org/ver10/schema ActiveConnections,omitempty"`
  4378. Extension ProfileStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4379. }
  4380. // ProfileStatusExtension type
  4381. type ProfileStatusExtension struct {
  4382. }
  4383. // OSDReference type
  4384. type OSDReference struct {
  4385. Value ReferenceToken
  4386. }
  4387. // OSDPosConfiguration type
  4388. type OSDPosConfiguration struct {
  4389. // For OSD position type, following are the pre-defined:
  4390. //
  4391. Type string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4392. Pos Vector `xml:"http://www.onvif.org/ver10/schema Pos,omitempty"`
  4393. Extension OSDPosConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4394. }
  4395. // OSDPosConfigurationExtension type
  4396. type OSDPosConfigurationExtension struct {
  4397. }
  4398. // OSDColor type
  4399. type OSDColor struct {
  4400. Color Color `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
  4401. Transparent int32 `xml:"http://www.onvif.org/ver10/schema Transparent,attr,omitempty"`
  4402. }
  4403. // OSDTextConfiguration type
  4404. type OSDTextConfiguration struct {
  4405. //
  4406. // The following OSD Text Type are defined:
  4407. //
  4408. Type string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4409. //
  4410. // List of supported OSD date formats. This element shall be present when the value of Type field has Date or DateAndTime. The following DateFormat are defined:
  4411. //
  4412. DateFormat string `xml:"http://www.onvif.org/ver10/schema DateFormat,omitempty"`
  4413. //
  4414. // List of supported OSD time formats. This element shall be present when the value of Type field has Time or DateAndTime. The following TimeFormat are defined:
  4415. //
  4416. TimeFormat string `xml:"http://www.onvif.org/ver10/schema TimeFormat,omitempty"`
  4417. // Font size of the text in pt.
  4418. FontSize int32 `xml:"http://www.onvif.org/ver10/schema FontSize,omitempty"`
  4419. // Font color of the text.
  4420. FontColor OSDColor `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
  4421. // Background color of the text.
  4422. BackgroundColor OSDColor `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
  4423. // The content of text to be displayed.
  4424. PlainText string `xml:"http://www.onvif.org/ver10/schema PlainText,omitempty"`
  4425. Extension OSDTextConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4426. // This flag is applicable for Type Plain and defaults to true. When set to false the PlainText content will not be persistent across device reboots.
  4427. IsPersistentText bool `xml:"http://www.onvif.org/ver10/display/wsdl IsPersistentText,attr,omitempty"`
  4428. }
  4429. // OSDTextConfigurationExtension type
  4430. type OSDTextConfigurationExtension struct {
  4431. }
  4432. // OSDImgConfiguration type
  4433. type OSDImgConfiguration struct {
  4434. // The URI of the image which to be displayed.
  4435. ImgPath AnyURI `xml:"http://www.onvif.org/ver10/schema ImgPath,omitempty"`
  4436. Extension OSDImgConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4437. }
  4438. // OSDImgConfigurationExtension type
  4439. type OSDImgConfigurationExtension struct {
  4440. }
  4441. // ColorspaceRange type
  4442. type ColorspaceRange struct {
  4443. X FloatRange `xml:"http://www.onvif.org/ver10/schema X,omitempty"`
  4444. Y FloatRange `xml:"http://www.onvif.org/ver10/schema Y,omitempty"`
  4445. Z FloatRange `xml:"http://www.onvif.org/ver10/schema Z,omitempty"`
  4446. //
  4447. // Acceptable values are the same as in tt:Color.
  4448. //
  4449. Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,omitempty"`
  4450. }
  4451. // ColorOptions type
  4452. type ColorOptions struct {
  4453. // List the supported color.
  4454. ColorList []Color `xml:"http://www.onvif.org/ver10/schema ColorList,omitempty"`
  4455. // Define the range of color supported.
  4456. ColorspaceRange []ColorspaceRange `xml:"http://www.onvif.org/ver10/schema ColorspaceRange,omitempty"`
  4457. }
  4458. // OSDColorOptions type
  4459. type OSDColorOptions struct {
  4460. // Optional list of supported colors.
  4461. Color ColorOptions `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
  4462. // Range of the transparent level. Larger means more tranparent.
  4463. Transparent IntRange `xml:"http://www.onvif.org/ver10/schema Transparent,omitempty"`
  4464. Extension OSDColorOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4465. }
  4466. // OSDColorOptionsExtension type
  4467. type OSDColorOptionsExtension struct {
  4468. }
  4469. // OSDTextOptions type
  4470. type OSDTextOptions struct {
  4471. // List of supported OSD text type. When a device indicates the supported number relating to Text type in MaximumNumberOfOSDs, the type shall be presented.
  4472. Type []string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4473. // Range of the font size value.
  4474. FontSizeRange IntRange `xml:"http://www.onvif.org/ver10/schema FontSizeRange,omitempty"`
  4475. // List of supported date format.
  4476. DateFormat []string `xml:"http://www.onvif.org/ver10/schema DateFormat,omitempty"`
  4477. // List of supported time format.
  4478. TimeFormat []string `xml:"http://www.onvif.org/ver10/schema TimeFormat,omitempty"`
  4479. // List of supported font color.
  4480. FontColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
  4481. // List of supported background color.
  4482. BackgroundColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
  4483. Extension OSDTextOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4484. }
  4485. // OSDTextOptionsExtension type
  4486. type OSDTextOptionsExtension struct {
  4487. }
  4488. // OSDImgOptions type
  4489. type OSDImgOptions struct {
  4490. // List of available image URIs.
  4491. ImagePath []AnyURI `xml:"http://www.onvif.org/ver10/schema ImagePath,omitempty"`
  4492. Extension OSDImgOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4493. // List of supported image MIME types, such as "image/png".
  4494. FormatsSupported StringAttrList `xml:"http://www.onvif.org/ver10/schema FormatsSupported,attr,omitempty"`
  4495. // The maximum size (in bytes) of the image that can be uploaded.
  4496. MaxSize int32 `xml:"http://www.onvif.org/ver10/schema MaxSize,attr,omitempty"`
  4497. // The maximum width (in pixels) of the image that can be uploaded.
  4498. MaxWidth int32 `xml:"http://www.onvif.org/ver10/schema MaxWidth,attr,omitempty"`
  4499. // The maximum height (in pixels) of the image that can be uploaded.
  4500. MaxHeight int32 `xml:"http://www.onvif.org/ver10/schema MaxHeight,attr,omitempty"`
  4501. }
  4502. // OSDImgOptionsExtension type
  4503. type OSDImgOptionsExtension struct {
  4504. }
  4505. // OSDConfiguration type
  4506. type OSDConfiguration struct {
  4507. *DeviceEntity
  4508. // Reference to the video source configuration.
  4509. VideoSourceConfigurationToken OSDReference `xml:"http://www.onvif.org/ver10/schema VideoSourceConfigurationToken,omitempty"`
  4510. // Type of OSD.
  4511. Type OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4512. // Position configuration of OSD.
  4513. Position OSDPosConfiguration `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  4514. // Text configuration of OSD. It shall be present when the value of Type field is Text.
  4515. TextString OSDTextConfiguration `xml:"http://www.onvif.org/ver10/schema TextString,omitempty"`
  4516. // Image configuration of OSD. It shall be present when the value of Type field is Image
  4517. Image OSDImgConfiguration `xml:"http://www.onvif.org/ver10/schema Image,omitempty"`
  4518. Extension OSDConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4519. }
  4520. // OSDConfigurationExtension type
  4521. type OSDConfigurationExtension struct {
  4522. }
  4523. // MaximumNumberOfOSDs type
  4524. type MaximumNumberOfOSDs struct {
  4525. Total int32 `xml:"http://www.onvif.org/ver10/schema Total,attr,omitempty"`
  4526. Image int32 `xml:"http://www.onvif.org/ver10/schema Image,attr,omitempty"`
  4527. PlainText int32 `xml:"http://www.onvif.org/ver10/schema PlainText,attr,omitempty"`
  4528. Date int32 `xml:"http://www.onvif.org/ver10/schema Date,attr,omitempty"`
  4529. Time int32 `xml:"http://www.onvif.org/ver10/schema DateTime,attr,omitempty"`
  4530. DateAndTime int32 `xml:"http://www.onvif.org/ver10/schema DateAndTime,attr,omitempty"`
  4531. }
  4532. // OSDConfigurationOptions type
  4533. type OSDConfigurationOptions struct {
  4534. // The maximum number of OSD configurations supported for the specified video source configuration. If the configuration does not support OSDs, this value shall be zero and the Type and PositionOption elements are ignored. If a device limits the number of instances by OSDType, it shall indicate the supported number for each type via the related attribute.
  4535. MaximumNumberOfOSDs MaximumNumberOfOSDs `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfOSDs,omitempty"`
  4536. // List supported type of OSD configuration. When a device indicates the supported number for each types in MaximumNumberOfOSDs, related type shall be presented. A device shall return Option element relating to listed type.
  4537. Type []OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4538. // List available OSD position type. Following are the pre-defined:
  4539. //
  4540. PositionOption []string `xml:"http://www.onvif.org/ver10/schema PositionOption,omitempty"`
  4541. // Option of the OSD text configuration. This element shall be returned if the device is signaling the support for Text.
  4542. TextOption OSDTextOptions `xml:"http://www.onvif.org/ver10/schema TextOption,omitempty"`
  4543. // Option of the OSD image configuration. This element shall be returned if the device is signaling the support for Image.
  4544. ImageOption OSDImgOptions `xml:"http://www.onvif.org/ver10/schema ImageOption,omitempty"`
  4545. Extension OSDConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4546. }
  4547. // OSDConfigurationOptionsExtension type
  4548. type OSDConfigurationOptionsExtension struct {
  4549. }
  4550. // FileProgress type
  4551. type FileProgress struct {
  4552. // Exported file name
  4553. FileName string `xml:"http://www.onvif.org/ver10/schema FileName,omitempty"`
  4554. // Normalized percentage completion for uploading the exported file
  4555. Progress float32 `xml:"http://www.onvif.org/ver10/schema Progress,omitempty"`
  4556. }
  4557. // ArrayOfFileProgress type
  4558. type ArrayOfFileProgress struct {
  4559. // Exported file name and export progress information
  4560. FileProgress []FileProgress `xml:"http://www.onvif.org/ver10/schema FileProgress,omitempty"`
  4561. Extension ArrayOfFileProgressExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4562. }
  4563. // ArrayOfFileProgressExtension type
  4564. type ArrayOfFileProgressExtension struct {
  4565. }
  4566. // StorageReferencePath type
  4567. type StorageReferencePath struct {
  4568. // identifier of an existing Storage Configuration.
  4569. StorageToken ReferenceToken `xml:"http://www.onvif.org/ver10/display/wsdl StorageToken,omitempty"`
  4570. // gives the relative directory path on the storage
  4571. RelativePath string `xml:"http://www.onvif.org/ver10/schema RelativePath,omitempty"`
  4572. Extension StorageReferencePathExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4573. }
  4574. // StorageReferencePathExtension type
  4575. type StorageReferencePathExtension struct {
  4576. }
  4577. // DisplayPort type
  4578. type DisplayPort interface {
  4579. /* Returns the capabilities of the display service. The result is returned in a typed answer. */
  4580. GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
  4581. GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
  4582. /* Return the current layout of a video output. The Layout assigns a pane configuration to a certain area of the display. The layout settings
  4583. directly affect a specific video output. The layout consists of a list of PaneConfigurations and
  4584. their associated display areas. */
  4585. GetLayout(request *GetLayout) (*GetLayoutResponse, error)
  4586. GetLayoutContext(ctx context.Context, request *GetLayout) (*GetLayoutResponse, error)
  4587. /* Change the layout of a display (e.g. change from
  4588. single view to split screen view).The Layout assigns a pane configuration to a certain area of the display. The layout settings
  4589. directly affect a specific video output. The layout consists of a list of PaneConfigurations and
  4590. their associated display areas.
  4591. A device implementation shall be tolerant against rounding errors when matching a layout against its fixed set of layouts by accepting differences of at least one percent.
  4592. */
  4593. SetLayout(request *SetLayout) (*SetLayoutResponse, error)
  4594. SetLayoutContext(ctx context.Context, request *SetLayout) (*SetLayoutResponse, error)
  4595. /* The Display Options contain the supported layouts (LayoutOptions) and the decoding and
  4596. encoding capabilities (CodingCapabilities) of the device. The GetDisplayOptions command
  4597. returns both, Layout and Coding Capabilities, of a VideoOutput. */
  4598. GetDisplayOptions(request *GetDisplayOptions) (*GetDisplayOptionsResponse, error)
  4599. GetDisplayOptionsContext(ctx context.Context, request *GetDisplayOptions) (*GetDisplayOptionsResponse, error)
  4600. /* List all currently defined panes of a device for a specified video output
  4601. (regardless if this pane is visible at a moment). A Pane is a display area on the monitor that is attached to a video output. A pane has a
  4602. PaneConfiguration that describes which entities are associated with the pane. A client has to configure the pane according to the connection to be established by setting the
  4603. AudioOutput and/or AudioSourceToken. If a Token is not set, the corresponding session will
  4604. not be established. */
  4605. GetPaneConfigurations(request *GetPaneConfigurations) (*GetPaneConfigurationsResponse, error)
  4606. GetPaneConfigurationsContext(ctx context.Context, request *GetPaneConfigurations) (*GetPaneConfigurationsResponse, error)
  4607. /* Retrieve the pane configuration for a pane token. */
  4608. GetPaneConfiguration(request *GetPaneConfiguration) (*GetPaneConfigurationResponse, error)
  4609. GetPaneConfigurationContext(ctx context.Context, request *GetPaneConfiguration) (*GetPaneConfigurationResponse, error)
  4610. /* Modify one or more configurations of the specified video output.
  4611. This method will only modify the provided configurations and leave the others unchanged.
  4612. Use to remove pane configurations. */
  4613. SetPaneConfigurations(request *SetPaneConfigurations) (*SetPaneConfigurationsResponse, error)
  4614. SetPaneConfigurationsContext(ctx context.Context, request *SetPaneConfigurations) (*SetPaneConfigurationsResponse, error)
  4615. /* This command changes the configuration of the specified pane (tbd) */
  4616. SetPaneConfiguration(request *SetPaneConfiguration) (*SetPaneConfigurationResponse, error)
  4617. SetPaneConfigurationContext(ctx context.Context, request *SetPaneConfiguration) (*SetPaneConfigurationResponse, error)
  4618. /* Create a new pane configuration describing the streaming and coding settings for a display area.
  4619. This optional method is only supported by devices that signal support of dynamic pane creation via their capabilities.
  4620. The content of the Token field may be ignored by the device.
  4621. */
  4622. CreatePaneConfiguration(request *CreatePaneConfiguration) (*CreatePaneConfigurationResponse, error)
  4623. CreatePaneConfigurationContext(ctx context.Context, request *CreatePaneConfiguration) (*CreatePaneConfigurationResponse, error)
  4624. /* Delete a pane configuration. A service must respond with an error if the pane configuration
  4625. is in use by the current layout.
  4626. This optional method is only supported by devices that signal support of dynamic pane creation via their capabilities.
  4627. */
  4628. DeletePaneConfiguration(request *DeletePaneConfiguration) (*DeletePaneConfigurationResponse, error)
  4629. DeletePaneConfigurationContext(ctx context.Context, request *DeletePaneConfiguration) (*DeletePaneConfigurationResponse, error)
  4630. }
  4631. // displayPort type
  4632. type displayPort struct {
  4633. client *soap.Client
  4634. xaddr string
  4635. }
  4636. func NewDisplayPort(client *soap.Client, xaddr string) DisplayPort {
  4637. return &displayPort{
  4638. client: client,
  4639. xaddr: xaddr,
  4640. }
  4641. }
  4642. func (service *displayPort) GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
  4643. response := new(GetServiceCapabilitiesResponse)
  4644. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/GetServiceCapabilities", request, response)
  4645. if err != nil {
  4646. return nil, err
  4647. }
  4648. return response, nil
  4649. }
  4650. func (service *displayPort) GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
  4651. return service.GetServiceCapabilitiesContext(
  4652. context.Background(),
  4653. request,
  4654. )
  4655. }
  4656. func (service *displayPort) GetLayoutContext(ctx context.Context, request *GetLayout) (*GetLayoutResponse, error) {
  4657. response := new(GetLayoutResponse)
  4658. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/GetLayout", request, response)
  4659. if err != nil {
  4660. return nil, err
  4661. }
  4662. return response, nil
  4663. }
  4664. func (service *displayPort) GetLayout(request *GetLayout) (*GetLayoutResponse, error) {
  4665. return service.GetLayoutContext(
  4666. context.Background(),
  4667. request,
  4668. )
  4669. }
  4670. func (service *displayPort) SetLayoutContext(ctx context.Context, request *SetLayout) (*SetLayoutResponse, error) {
  4671. response := new(SetLayoutResponse)
  4672. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/SetLayout", request, response)
  4673. if err != nil {
  4674. return nil, err
  4675. }
  4676. return response, nil
  4677. }
  4678. func (service *displayPort) SetLayout(request *SetLayout) (*SetLayoutResponse, error) {
  4679. return service.SetLayoutContext(
  4680. context.Background(),
  4681. request,
  4682. )
  4683. }
  4684. func (service *displayPort) GetDisplayOptionsContext(ctx context.Context, request *GetDisplayOptions) (*GetDisplayOptionsResponse, error) {
  4685. response := new(GetDisplayOptionsResponse)
  4686. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/GetDisplayOptions", request, response)
  4687. if err != nil {
  4688. return nil, err
  4689. }
  4690. return response, nil
  4691. }
  4692. func (service *displayPort) GetDisplayOptions(request *GetDisplayOptions) (*GetDisplayOptionsResponse, error) {
  4693. return service.GetDisplayOptionsContext(
  4694. context.Background(),
  4695. request,
  4696. )
  4697. }
  4698. func (service *displayPort) GetPaneConfigurationsContext(ctx context.Context, request *GetPaneConfigurations) (*GetPaneConfigurationsResponse, error) {
  4699. response := new(GetPaneConfigurationsResponse)
  4700. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/GetPaneConfigurations", request, response)
  4701. if err != nil {
  4702. return nil, err
  4703. }
  4704. return response, nil
  4705. }
  4706. func (service *displayPort) GetPaneConfigurations(request *GetPaneConfigurations) (*GetPaneConfigurationsResponse, error) {
  4707. return service.GetPaneConfigurationsContext(
  4708. context.Background(),
  4709. request,
  4710. )
  4711. }
  4712. func (service *displayPort) GetPaneConfigurationContext(ctx context.Context, request *GetPaneConfiguration) (*GetPaneConfigurationResponse, error) {
  4713. response := new(GetPaneConfigurationResponse)
  4714. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/GetPaneConfiguration", request, response)
  4715. if err != nil {
  4716. return nil, err
  4717. }
  4718. return response, nil
  4719. }
  4720. func (service *displayPort) GetPaneConfiguration(request *GetPaneConfiguration) (*GetPaneConfigurationResponse, error) {
  4721. return service.GetPaneConfigurationContext(
  4722. context.Background(),
  4723. request,
  4724. )
  4725. }
  4726. func (service *displayPort) SetPaneConfigurationsContext(ctx context.Context, request *SetPaneConfigurations) (*SetPaneConfigurationsResponse, error) {
  4727. response := new(SetPaneConfigurationsResponse)
  4728. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/SetPaneConfigurations", request, response)
  4729. if err != nil {
  4730. return nil, err
  4731. }
  4732. return response, nil
  4733. }
  4734. func (service *displayPort) SetPaneConfigurations(request *SetPaneConfigurations) (*SetPaneConfigurationsResponse, error) {
  4735. return service.SetPaneConfigurationsContext(
  4736. context.Background(),
  4737. request,
  4738. )
  4739. }
  4740. func (service *displayPort) SetPaneConfigurationContext(ctx context.Context, request *SetPaneConfiguration) (*SetPaneConfigurationResponse, error) {
  4741. response := new(SetPaneConfigurationResponse)
  4742. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/SetPaneConfiguration", request, response)
  4743. if err != nil {
  4744. return nil, err
  4745. }
  4746. return response, nil
  4747. }
  4748. func (service *displayPort) SetPaneConfiguration(request *SetPaneConfiguration) (*SetPaneConfigurationResponse, error) {
  4749. return service.SetPaneConfigurationContext(
  4750. context.Background(),
  4751. request,
  4752. )
  4753. }
  4754. func (service *displayPort) CreatePaneConfigurationContext(ctx context.Context, request *CreatePaneConfiguration) (*CreatePaneConfigurationResponse, error) {
  4755. response := new(CreatePaneConfigurationResponse)
  4756. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/CreatePaneConfiguration", request, response)
  4757. if err != nil {
  4758. return nil, err
  4759. }
  4760. return response, nil
  4761. }
  4762. func (service *displayPort) CreatePaneConfiguration(request *CreatePaneConfiguration) (*CreatePaneConfigurationResponse, error) {
  4763. return service.CreatePaneConfigurationContext(
  4764. context.Background(),
  4765. request,
  4766. )
  4767. }
  4768. func (service *displayPort) DeletePaneConfigurationContext(ctx context.Context, request *DeletePaneConfiguration) (*DeletePaneConfigurationResponse, error) {
  4769. response := new(DeletePaneConfigurationResponse)
  4770. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/display/wsdl/DeletePaneConfiguration", request, response)
  4771. if err != nil {
  4772. return nil, err
  4773. }
  4774. return response, nil
  4775. }
  4776. func (service *displayPort) DeletePaneConfiguration(request *DeletePaneConfiguration) (*DeletePaneConfigurationResponse, error) {
  4777. return service.DeletePaneConfigurationContext(
  4778. context.Background(),
  4779. request,
  4780. )
  4781. }
  4782. // AnyURI type
  4783. type AnyURI string
  4784. // Duration type
  4785. type Duration string
  4786. // QName type
  4787. type QName string
  4788. // NCName type
  4789. type NCName string
  4790. // AnySimpleType type
  4791. type AnySimpleType string
  4792. // String type
  4793. type String string