recording.go 246 KB

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