replay.go 212 KB

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