provisioning.go 221 KB

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