receiver.go 217 KB

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