search.go 241 KB

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