| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652 |
- package receiver
- import (
- "context"
- "encoding/xml"
- "time"
- "lc/common/onvif/soap"
- )
- // against "unused imports"
- var _ time.Time
- var _ xml.Name
- // GetServiceCapabilities type
- type GetServiceCapabilities struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl GetServiceCapabilities"`
- }
- // GetServiceCapabilitiesResponse type
- type GetServiceCapabilitiesResponse struct {
- XMLName xml.Name `xml:"GetServiceCapabilitiesResponse"`
- // The capabilities for the receiver service is returned in the Capabilities element.
- Capabilities Capabilities `xml:"Capabilities,omitempty"`
- }
- // GetReceivers type
- type GetReceivers struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl GetReceivers"`
- }
- // GetReceiversResponse type
- type GetReceiversResponse struct {
- XMLName xml.Name `xml:"GetReceiversResponse"`
- // A list of all receivers that currently exist on the device.
- Receivers []Receiver `xml:"Receivers,omitempty"`
- }
- // GetReceiver type
- type GetReceiver struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl GetReceiver"`
- // The token of the receiver to be retrieved.
- ReceiverToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl ReceiverToken,omitempty"`
- }
- // GetReceiverResponse type
- type GetReceiverResponse struct {
- XMLName xml.Name `xml:"GetReceiverResponse"`
- // The details of the receiver.
- Receiver Receiver `xml:"Receiver,omitempty"`
- }
- // CreateReceiver type
- type CreateReceiver struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl CreateReceiver"`
- // The initial configuration for the new receiver.
- Configuration ReceiverConfiguration `xml:"http://www.onvif.org/ver10/receiver/wsdl Configuration,omitempty"`
- }
- // CreateReceiverResponse type
- type CreateReceiverResponse struct {
- XMLName xml.Name `xml:"CreateReceiverResponse"`
- // The details of the receiver that was created.
- Receiver Receiver `xml:"Receiver,omitempty"`
- }
- // DeleteReceiver type
- type DeleteReceiver struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl DeleteReceiver"`
- // The token of the receiver to be deleted.
- ReceiverToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl ReceiverToken,omitempty"`
- }
- // DeleteReceiverResponse type
- type DeleteReceiverResponse struct {
- XMLName xml.Name `xml:"DeleteReceiverResponse"`
- }
- // ConfigureReceiver type
- type ConfigureReceiver struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl ConfigureReceiver"`
- // The token of the receiver to be configured.
- ReceiverToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl ReceiverToken,omitempty"`
- // The new configuration for the receiver.
- Configuration ReceiverConfiguration `xml:"http://www.onvif.org/ver10/receiver/wsdl Configuration,omitempty"`
- }
- // ConfigureReceiverResponse type
- type ConfigureReceiverResponse struct {
- XMLName xml.Name `xml:"ConfigureReceiverResponse"`
- }
- // SetReceiverMode type
- type SetReceiverMode struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl SetReceiverMode"`
- // The token of the receiver to be changed.
- ReceiverToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl ReceiverToken,omitempty"`
- // The new receiver mode. Options available are:
- Mode ReceiverMode `xml:"http://www.onvif.org/ver10/receiver/wsdl Mode,omitempty"`
- }
- // SetReceiverModeResponse type
- type SetReceiverModeResponse struct {
- XMLName xml.Name `xml:"SetReceiverModeResponse"`
- }
- // GetReceiverState type
- type GetReceiverState struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/receiver/wsdl GetReceiverState"`
- // The token of the receiver to be queried.
- ReceiverToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl ReceiverToken,omitempty"`
- }
- // GetReceiverStateResponse type
- type GetReceiverStateResponse struct {
- XMLName xml.Name `xml:"GetReceiverStateResponse"`
- // Description of the current receiver state.
- ReceiverState ReceiverStateInformation `xml:"ReceiverState,omitempty"`
- }
- // Capabilities type
- type Capabilities struct {
- // Indicates that the device can receive RTP multicast streams.
- RTP_Multicast bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_Multicast,attr,omitempty"`
- // Indicates that the device can receive RTP/TCP streams
- RTP_TCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_TCP,attr,omitempty"`
- // Indicates that the device can receive RTP/RTSP/TCP streams.
- RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_RTSP_TCP,attr,omitempty"`
- // The maximum number of receivers supported by the device.
- SupportedReceivers int32 `xml:"http://www.onvif.org/ver10/schema SupportedReceivers,attr,omitempty"`
- // The maximum allowed length for RTSP URIs (Minimum and default value is 128 octet).
- MaximumRTSPURILength int32 `xml:"http://www.onvif.org/ver10/schema MaximumRTSPURILength,attr,omitempty"`
- }
- // FaultcodeEnum type
- type FaultcodeEnum QName
- const (
- // FaultcodeEnumTnsDataEncodingUnknown const
- FaultcodeEnumTnsDataEncodingUnknown FaultcodeEnum = "tns:DataEncodingUnknown"
- // FaultcodeEnumTnsMustUnderstand const
- FaultcodeEnumTnsMustUnderstand FaultcodeEnum = "tns:MustUnderstand"
- // FaultcodeEnumTnsReceiver const
- FaultcodeEnumTnsReceiver FaultcodeEnum = "tns:Receiver"
- // FaultcodeEnumTnsSender const
- FaultcodeEnumTnsSender FaultcodeEnum = "tns:Sender"
- // FaultcodeEnumTnsVersionMismatch const
- FaultcodeEnumTnsVersionMismatch FaultcodeEnum = "tns:VersionMismatch"
- )
- // NotUnderstood type
- type NotUnderstood NotUnderstoodType
- // Upgrade type
- type Upgrade UpgradeType
- // Envelope type
- type Envelope struct {
- Header Header `xml:"Header,omitempty"`
- Body Body `xml:"Body,omitempty"`
- }
- // Header type
- type Header struct {
- }
- // Body type
- type Body struct {
- }
- // Fault type
- type Fault struct {
- Code Faultcode `xml:"Code,omitempty"`
- Reason Faultreason `xml:"Reason,omitempty"`
- Node AnyURI `xml:"http://www.onvif.org/ver10/schema Node,omitempty"`
- Role AnyURI `xml:"http://www.onvif.org/ver10/schema Role,omitempty"`
- Detail Detail `xml:"Detail,omitempty"`
- }
- // Faultreason type
- type Faultreason struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultreason"`
- Text []Reasontext `xml:"Text,omitempty"`
- }
- // Reasontext type
- type Reasontext struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope reasontext"`
- Value string
- string `xml:",attr,omitempty"`
- }
- // Faultcode type
- type Faultcode struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultcode"`
- Value FaultcodeEnum `xml:"Value,omitempty"`
- Subcode *Subcode `xml:"Subcode,omitempty"`
- }
- // Subcode type
- type Subcode struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope subcode"`
- Value QName `xml:"http://www.onvif.org/ver10/schema Value,omitempty"`
- Subcode *Subcode `xml:"Subcode,omitempty"`
- }
- // Detail type
- type Detail struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope detail"`
- }
- // NotUnderstoodType type
- type NotUnderstoodType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope NotUnderstood"`
- Qname QName `xml:"qname,attr,omitempty"`
- }
- // SupportedEnvType type
- type SupportedEnvType struct {
- Qname QName `xml:"qname,attr,omitempty"`
- }
- // UpgradeType type
- type UpgradeType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Upgrade"`
- SupportedEnvelope []SupportedEnvType `xml:"SupportedEnvelope,omitempty"`
- }
- // RelationshipTypeOpenEnum type
- type RelationshipTypeOpenEnum string
- // RelationshipType type
- type RelationshipType AnyURI
- const (
- // RelationshipTypeHttpwwww3org200508addressingreply const
- RelationshipTypeHttpwwww3org200508addressingreply RelationshipType = "http://www.w3.org/2005/08/addressing/reply"
- )
- // FaultCodesType type
- type FaultCodesType QName
- const (
- // FaultCodesTypeTnsInvalidAddressingHeader const
- FaultCodesTypeTnsInvalidAddressingHeader FaultCodesType = "tns:InvalidAddressingHeader"
- // FaultCodesTypeTnsInvalidAddress const
- FaultCodesTypeTnsInvalidAddress FaultCodesType = "tns:InvalidAddress"
- // FaultCodesTypeTnsInvalidEPR const
- FaultCodesTypeTnsInvalidEPR FaultCodesType = "tns:InvalidEPR"
- // FaultCodesTypeTnsInvalidCardinality const
- FaultCodesTypeTnsInvalidCardinality FaultCodesType = "tns:InvalidCardinality"
- // FaultCodesTypeTnsMissingAddressInEPR const
- FaultCodesTypeTnsMissingAddressInEPR FaultCodesType = "tns:MissingAddressInEPR"
- // FaultCodesTypeTnsDuplicateMessageID const
- FaultCodesTypeTnsDuplicateMessageID FaultCodesType = "tns:DuplicateMessageID"
- // FaultCodesTypeTnsActionMismatch const
- FaultCodesTypeTnsActionMismatch FaultCodesType = "tns:ActionMismatch"
- // FaultCodesTypeTnsMessageAddressingHeaderRequired const
- FaultCodesTypeTnsMessageAddressingHeaderRequired FaultCodesType = "tns:MessageAddressingHeaderRequired"
- // FaultCodesTypeTnsDestinationUnreachable const
- FaultCodesTypeTnsDestinationUnreachable FaultCodesType = "tns:DestinationUnreachable"
- // FaultCodesTypeTnsActionNotSupported const
- FaultCodesTypeTnsActionNotSupported FaultCodesType = "tns:ActionNotSupported"
- // FaultCodesTypeTnsEndpointUnavailable const
- FaultCodesTypeTnsEndpointUnavailable FaultCodesType = "tns:EndpointUnavailable"
- )
- // EndpointReference type
- type EndpointReference EndpointReferenceType
- // Metadata type
- type Metadata MetadataType
- // RelatesTo type
- type RelatesTo RelatesToType
- // To type
- type To AttributedURIType
- // Action type
- type Action AttributedURIType
- // ProblemAction type
- type ProblemAction ProblemActionType
- // EndpointReferenceType type
- type EndpointReferenceType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing EndpointReference"`
- Address AttributedURIType `xml:"Address,omitempty"`
- ReferenceParameters ReferenceParametersType `xml:"ReferenceParameters,omitempty"`
- Metadata Metadata `xml:"Metadata,omitempty"`
- }
- // ReferenceParametersType type
- type ReferenceParametersType struct {
- }
- // MetadataType type
- type MetadataType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing Metadata"`
- }
- // RelatesToType type
- type RelatesToType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing RelatesTo"`
- Value AnyURI
- RelationshipType RelationshipTypeOpenEnum `xml:"RelationshipType,attr,omitempty"`
- }
- // AttributedURIType type
- type AttributedURIType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing MessageID"`
- Value AnyURI
- }
- // ProblemActionType type
- type ProblemActionType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing ProblemAction"`
- Action Action `xml:"Action,omitempty"`
- SoapAction AnyURI `xml:"http://www.onvif.org/ver10/schema SoapAction,omitempty"`
- }
- // BaseFault type
- type BaseFault BaseFaultType
- // BaseFaultType type
- type BaseFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsrf/bf-2 BaseFault"`
- Timestamp string `xml:"http://www.onvif.org/ver10/schema Timestamp,omitempty"`
- Originator EndpointReferenceType `xml:"Originator,omitempty"`
- ErrorCode struct {
- Dialect AnyURI `xml:"dialect,attr,omitempty"`
- } `xml:"ErrorCode,omitempty"`
- Description []struct {
- Value string
- string `xml:",attr,omitempty"`
- } `xml:"Description,omitempty"`
- FaultCause struct {
- } `xml:"FaultCause,omitempty"`
- }
- // ConcreteTopicExpression type
- type ConcreteTopicExpression string
- // SimpleTopicExpression type
- type SimpleTopicExpression QName
- // TopicNamespace type
- type TopicNamespace TopicNamespaceType
- // TopicSet type
- type TopicSet TopicSetType
- // Documentation type
- type Documentation struct {
- }
- // ExtensibleDocumented type
- type ExtensibleDocumented struct {
- Documentation Documentation `xml:"documentation,omitempty"`
- }
- // QueryExpressionType type
- type QueryExpressionType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 ProducerProperties"`
- Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
- }
- // TopicNamespaceType type
- type TopicNamespaceType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicNamespace"`
- *ExtensibleDocumented
- Topic []struct {
- *TopicType
- Parent ConcreteTopicExpression `xml:"parent,attr,omitempty"`
- } `xml:"Topic,omitempty"`
- Name NCName `xml:"name,attr,omitempty"`
- TargetNamespace AnyURI `xml:"targetNamespace,attr,omitempty"`
- Final bool `xml:"final,attr,omitempty"`
- }
- // TopicType type
- type TopicType struct {
- *ExtensibleDocumented
- MessagePattern QueryExpressionType `xml:"MessagePattern,omitempty"`
- Topic []TopicType `xml:"Topic,omitempty"`
- Name NCName `xml:"name,attr,omitempty"`
- MessageTypes string `xml:"messageTypes,attr,omitempty"`
- Final bool `xml:"final,attr,omitempty"`
- }
- // TopicSetType type
- type TopicSetType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicSet"`
- *ExtensibleDocumented
- }
- // AbsoluteOrRelativeTimeType type
- type AbsoluteOrRelativeTimeType string
- // TopicExpression type
- type TopicExpression TopicExpressionType
- // FixedTopicSet type
- type FixedTopicSet bool
- // TopicExpressionDialect type
- type TopicExpressionDialect AnyURI
- // ConsumerReference type
- type ConsumerReference EndpointReferenceType
- // Filter type
- type Filter FilterType
- // SubscriptionPolicy type
- type SubscriptionPolicy SubscriptionPolicyType
- // CreationTime type
- type CreationTime time.Time
- // SubscriptionReference type
- type SubscriptionReference EndpointReferenceType
- // Topic type
- type Topic TopicExpressionType
- // ProducerReference type
- type ProducerReference EndpointReferenceType
- // NotificationMessage type
- type NotificationMessage NotificationMessageHolderType
- // Notify type
- type Notify struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Notify"`
- NotificationMessage []NotificationMessage `xml:"NotificationMessage,omitempty"`
- }
- // CurrentTime type
- type CurrentTime time.Time
- // TerminationTime type
- type TerminationTime time.Time
- // Subscribe type
- type Subscribe struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Subscribe"`
- ConsumerReference EndpointReferenceType `xml:"ConsumerReference,omitempty"`
- Filter FilterType `xml:"Filter,omitempty"`
- InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"InitialTerminationTime,omitempty"`
- SubscriptionPolicy struct {
- } `xml:"SubscriptionPolicy,omitempty"`
- }
- // SubscribeCreationFailedFault type
- type SubscribeCreationFailedFault SubscribeCreationFailedFaultType
- // InvalidFilterFault type
- type InvalidFilterFault InvalidFilterFaultType
- // TopicExpressionDialectUnknownFault type
- type TopicExpressionDialectUnknownFault TopicExpressionDialectUnknownFaultType
- // InvalidTopicExpressionFault type
- type InvalidTopicExpressionFault InvalidTopicExpressionFaultType
- // TopicNotSupportedFault type
- type TopicNotSupportedFault TopicNotSupportedFaultType
- // MultipleTopicsSpecifiedFault type
- type MultipleTopicsSpecifiedFault MultipleTopicsSpecifiedFaultType
- // InvalidProducerPropertiesExpressionFault type
- type InvalidProducerPropertiesExpressionFault InvalidProducerPropertiesExpressionFaultType
- // InvalidMessageContentExpressionFault type
- type InvalidMessageContentExpressionFault InvalidMessageContentExpressionFaultType
- // UnrecognizedPolicyRequestFault type
- type UnrecognizedPolicyRequestFault UnrecognizedPolicyRequestFaultType
- // UnsupportedPolicyRequestFault type
- type UnsupportedPolicyRequestFault UnsupportedPolicyRequestFaultType
- // NotifyMessageNotSupportedFault type
- type NotifyMessageNotSupportedFault NotifyMessageNotSupportedFaultType
- // UnacceptableInitialTerminationTimeFault type
- type UnacceptableInitialTerminationTimeFault UnacceptableInitialTerminationTimeFaultType
- // NoCurrentMessageOnTopicFault type
- type NoCurrentMessageOnTopicFault NoCurrentMessageOnTopicFaultType
- // UnableToGetMessagesFault type
- type UnableToGetMessagesFault UnableToGetMessagesFaultType
- // UnableToDestroyPullPointFault type
- type UnableToDestroyPullPointFault UnableToDestroyPullPointFaultType
- // UnableToCreatePullPointFault type
- type UnableToCreatePullPointFault UnableToCreatePullPointFaultType
- // UnacceptableTerminationTimeFault type
- type UnacceptableTerminationTimeFault UnacceptableTerminationTimeFaultType
- // UnableToDestroySubscriptionFault type
- type UnableToDestroySubscriptionFault UnableToDestroySubscriptionFaultType
- // PauseFailedFault type
- type PauseFailedFault PauseFailedFaultType
- // ResumeFailedFault type
- type ResumeFailedFault ResumeFailedFaultType
- // Removed QueryExpressionType
- // TopicExpressionType type
- type TopicExpressionType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpression"`
- Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
- }
- // FilterType type
- type FilterType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Filter"`
- }
- // SubscriptionPolicyType type
- type SubscriptionPolicyType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscriptionPolicy"`
- }
- // NotificationMessageHolderType type
- type NotificationMessageHolderType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotificationMessage"`
- SubscriptionReference SubscriptionReference `xml:"SubscriptionReference,omitempty"`
- Topic Topic `xml:"Topic,omitempty"`
- ProducerReference ProducerReference `xml:"ProducerReference,omitempty"`
- Message struct {
- } `xml:"Message,omitempty"`
- }
- // SubscribeCreationFailedFaultType type
- type SubscribeCreationFailedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscribeCreationFailedFault"`
- *BaseFaultType
- }
- // InvalidFilterFaultType type
- type InvalidFilterFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidFilterFault"`
- *BaseFaultType
- UnknownFilter []QName `xml:"http://www.onvif.org/ver10/schema UnknownFilter,omitempty"`
- }
- // TopicExpressionDialectUnknownFaultType type
- type TopicExpressionDialectUnknownFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpressionDialectUnknownFault"`
- *BaseFaultType
- }
- // InvalidTopicExpressionFaultType type
- type InvalidTopicExpressionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidTopicExpressionFault"`
- *BaseFaultType
- }
- // TopicNotSupportedFaultType type
- type TopicNotSupportedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicNotSupportedFault"`
- *BaseFaultType
- }
- // MultipleTopicsSpecifiedFaultType type
- type MultipleTopicsSpecifiedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 MultipleTopicsSpecifiedFault"`
- *BaseFaultType
- }
- // InvalidProducerPropertiesExpressionFaultType type
- type InvalidProducerPropertiesExpressionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidProducerPropertiesExpressionFault"`
- *BaseFaultType
- }
- // InvalidMessageContentExpressionFaultType type
- type InvalidMessageContentExpressionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidMessageContentExpressionFault"`
- *BaseFaultType
- }
- // UnrecognizedPolicyRequestFaultType type
- type UnrecognizedPolicyRequestFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnrecognizedPolicyRequestFault"`
- *BaseFaultType
- UnrecognizedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnrecognizedPolicy,omitempty"`
- }
- // UnsupportedPolicyRequestFaultType type
- type UnsupportedPolicyRequestFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnsupportedPolicyRequestFault"`
- *BaseFaultType
- UnsupportedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnsupportedPolicy,omitempty"`
- }
- // NotifyMessageNotSupportedFaultType type
- type NotifyMessageNotSupportedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotifyMessageNotSupportedFault"`
- *BaseFaultType
- }
- // UnacceptableInitialTerminationTimeFaultType type
- type UnacceptableInitialTerminationTimeFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableInitialTerminationTimeFault"`
- *BaseFaultType
- MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
- MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
- }
- // NoCurrentMessageOnTopicFaultType type
- type NoCurrentMessageOnTopicFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NoCurrentMessageOnTopicFault"`
- *BaseFaultType
- }
- // UnableToGetMessagesFaultType type
- type UnableToGetMessagesFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToGetMessagesFault"`
- *BaseFaultType
- }
- // UnableToDestroyPullPointFaultType type
- type UnableToDestroyPullPointFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroyPullPointFault"`
- *BaseFaultType
- }
- // UnableToCreatePullPointFaultType type
- type UnableToCreatePullPointFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToCreatePullPointFault"`
- *BaseFaultType
- }
- // UnacceptableTerminationTimeFaultType type
- type UnacceptableTerminationTimeFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableTerminationTimeFault"`
- *BaseFaultType
- MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
- MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
- }
- // UnableToDestroySubscriptionFaultType type
- type UnableToDestroySubscriptionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroySubscriptionFault"`
- *BaseFaultType
- }
- // PauseFailedFaultType type
- type PauseFailedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 PauseFailedFault"`
- *BaseFaultType
- }
- // ResumeFailedFaultType type
- type ResumeFailedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 ResumeFailedFault"`
- *BaseFaultType
- }
- // Include type
- type Include struct {
- Href AnyURI `xml:"href,attr,omitempty"`
- }
- // Unique identifier for a physical or logical resource.
- // Tokens should be assigned such that they are unique within a device. Tokens must be at least unique within its class.
- // Length up to 64 characters.
- // ReferenceToken type
- type ReferenceToken string
- // MoveStatus type
- type MoveStatus string
- const (
- // MoveStatusIDLE const
- MoveStatusIDLE MoveStatus = "IDLE"
- // MoveStatusMOVING const
- MoveStatusMOVING MoveStatus = "MOVING"
- // MoveStatusUNKNOWN const
- MoveStatusUNKNOWN MoveStatus = "UNKNOWN"
- )
- // Entity type
- type Entity string
- const (
- // EntityDevice const
- EntityDevice Entity = "Device"
- // EntityVideoSource const
- EntityVideoSource Entity = "VideoSource"
- // EntityAudioSource const
- EntityAudioSource Entity = "AudioSource"
- )
- // IntRange type
- type IntRange struct {
- Min int32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
- Max int32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
- }
- // Vector2D type
- type Vector2D struct {
- X float32 `xml:"x,attr,omitempty"`
- Y float32 `xml:"y,attr,omitempty"`
- //
- // Pan/tilt coordinate space selector. The following options are defined:
- //
- Space AnyURI `xml:"space,attr,omitempty"`
- }
- // Vector1D type
- type Vector1D struct {
- X float32 `xml:"x,attr,omitempty"`
- //
- // Zoom coordinate space selector. The following options are defined:
- //
- Space AnyURI `xml:"space,attr,omitempty"`
- }
- // PTZVector type
- type PTZVector struct {
- // Pan and tilt position. The x component corresponds to pan and the y component to tilt.
- PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
- //
- // A zoom position.
- //
- Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
- }
- // PTZStatus type
- type PTZStatus struct {
- //
- // 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.
- //
- Position PTZVector `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- //
- // Indicates if the Pan/Tilt/Zoom device unit is currently moving, idle or in an unknown state.
- //
- MoveStatus PTZMoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
- //
- // States a current PTZ error.
- //
- Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
- //
- // Specifies the UTC time when this status was generated.
- //
- UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,omitempty"`
- }
- // PTZMoveStatus type
- type PTZMoveStatus struct {
- PanTilt MoveStatus `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
- Zoom MoveStatus `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
- }
- // Vector type
- type Vector struct {
- X float32 `xml:"x,attr,omitempty"`
- Y float32 `xml:"y,attr,omitempty"`
- }
- // Rectangle type
- type Rectangle struct {
- Bottom float32 `xml:"bottom,attr,omitempty"`
- Top float32 `xml:"top,attr,omitempty"`
- Right float32 `xml:"right,attr,omitempty"`
- Left float32 `xml:"left,attr,omitempty"`
- }
- // Polygon type
- type Polygon struct {
- Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
- }
- // Color type
- type Color struct {
- X float32 `xml:"http://www.onvif.org/ver10/schema X,attr,omitempty"`
- Y float32 `xml:"http://www.onvif.org/ver10/schema Y,attr,omitempty"`
- Z float32 `xml:"http://www.onvif.org/ver10/schema Z,attr,omitempty"`
- //
- // Acceptable values:
- //
- // If the Colorspace attribute is absent, YCbCr is implied.
- //
- // Deprecated values:
- //
- //
- Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,attr,omitempty"`
- }
- // Transformation type
- type Transformation struct {
- Translate Vector `xml:"http://www.onvif.org/ver10/schema Translate,omitempty"`
- Scale Vector `xml:"http://www.onvif.org/ver10/schema Scale,omitempty"`
- Extension TransformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // TransformationExtension type
- type TransformationExtension struct {
- }
- // User readable name. Length up to 64 characters.
- // Name type
- type Name string
- // IntAttrList type
- type IntAttrList []int32
- // FloatAttrList type
- type FloatAttrList []float32
- // StringAttrList type
- type StringAttrList []string
- // ReferenceTokenList type
- type ReferenceTokenList []ReferenceToken
- // RotateMode type
- type RotateMode string
- const (
- // Enable the Rotate feature. Degree of rotation is specified Degree parameter.
- // RotateModeOFF const
- RotateModeOFF RotateMode = "OFF"
- // Disable the Rotate feature.
- // RotateModeON const
- RotateModeON RotateMode = "ON"
- // Rotate feature is automatically activated by the device.
- // RotateModeAUTO const
- RotateModeAUTO RotateMode = "AUTO"
- )
- // SceneOrientationMode type
- type SceneOrientationMode string
- const (
- // SceneOrientationModeMANUAL const
- SceneOrientationModeMANUAL SceneOrientationMode = "MANUAL"
- // SceneOrientationModeAUTO const
- SceneOrientationModeAUTO SceneOrientationMode = "AUTO"
- )
- // SceneOrientationOption type
- type SceneOrientationOption string
- const (
- // SceneOrientationOptionBelow const
- SceneOrientationOptionBelow SceneOrientationOption = "Below"
- // SceneOrientationOptionHorizon const
- SceneOrientationOptionHorizon SceneOrientationOption = "Horizon"
- // SceneOrientationOptionAbove const
- SceneOrientationOptionAbove SceneOrientationOption = "Above"
- )
- // Source view modes supported by device.
- // ViewModes type
- type ViewModes string
- const (
- // Undewarped viewmode from device supporting fisheye lens.
- // ViewModesTtFisheye const
- ViewModesTtFisheye ViewModes = "tt:Fisheye"
- // 360 degree panoramic view.
- // ViewModesTt360Panorama const
- ViewModesTt360Panorama ViewModes = "tt:360Panorama"
- // 180 degree panoramic view.
- // ViewModesTt180Panorama const
- ViewModesTt180Panorama ViewModes = "tt:180Panorama"
- // View mode combining four streams in single Quad, eg., applicable for devices supporting four heads.
- // ViewModesTtQuad const
- ViewModesTtQuad ViewModes = "tt:Quad"
- // Unaltered view from the sensor.
- // ViewModesTtOriginal const
- ViewModesTtOriginal ViewModes = "tt:Original"
- // Viewmode combining the left side sensors, applicable for devices supporting multiple sensors.
- // ViewModesTtLeftHalf const
- ViewModesTtLeftHalf ViewModes = "tt:LeftHalf"
- // Viewmode combining the right side sensors, applicable for devices supporting multiple sensors.
- // ViewModesTtRightHalf const
- ViewModesTtRightHalf ViewModes = "tt:RightHalf"
- // Dewarped view mode for device supporting fisheye lens.
- // ViewModesTtDewarp const
- ViewModesTtDewarp ViewModes = "tt:Dewarp"
- )
- // VideoEncoding type
- type VideoEncoding string
- const (
- // VideoEncodingJPEG const
- VideoEncodingJPEG VideoEncoding = "JPEG"
- // VideoEncodingMPEG4 const
- VideoEncodingMPEG4 VideoEncoding = "MPEG4"
- // VideoEncodingH264 const
- VideoEncodingH264 VideoEncoding = "H264"
- )
- // Mpeg4Profile type
- type Mpeg4Profile string
- const (
- // Mpeg4ProfileSP const
- Mpeg4ProfileSP Mpeg4Profile = "SP"
- // Mpeg4ProfileASP const
- Mpeg4ProfileASP Mpeg4Profile = "ASP"
- )
- // H264Profile type
- type H264Profile string
- const (
- // H264ProfileBaseline const
- H264ProfileBaseline H264Profile = "Baseline"
- // H264ProfileMain const
- H264ProfileMain H264Profile = "Main"
- // H264ProfileExtended const
- H264ProfileExtended H264Profile = "Extended"
- // H264ProfileHigh const
- H264ProfileHigh H264Profile = "High"
- )
- // Video Media Subtypes as referenced by IANA (without the leading "video/" Video Media Type). See also .
- // VideoEncodingMimeNames type
- type VideoEncodingMimeNames string
- const (
- // VideoEncodingMimeNamesJPEG const
- VideoEncodingMimeNamesJPEG VideoEncodingMimeNames = "JPEG"
- // VideoEncodingMimeNamesMPV4ES const
- VideoEncodingMimeNamesMPV4ES VideoEncodingMimeNames = "MPV4-ES"
- // VideoEncodingMimeNamesH264 const
- VideoEncodingMimeNamesH264 VideoEncodingMimeNames = "H264"
- // VideoEncodingMimeNamesH265 const
- VideoEncodingMimeNamesH265 VideoEncodingMimeNames = "H265"
- )
- // VideoEncodingProfiles type
- type VideoEncodingProfiles string
- const (
- // VideoEncodingProfilesSimple const
- VideoEncodingProfilesSimple VideoEncodingProfiles = "Simple"
- // VideoEncodingProfilesAdvancedSimple const
- VideoEncodingProfilesAdvancedSimple VideoEncodingProfiles = "AdvancedSimple"
- // VideoEncodingProfilesBaseline const
- VideoEncodingProfilesBaseline VideoEncodingProfiles = "Baseline"
- // VideoEncodingProfilesMain const
- VideoEncodingProfilesMain VideoEncodingProfiles = "Main"
- // VideoEncodingProfilesMain10 const
- VideoEncodingProfilesMain10 VideoEncodingProfiles = "Main10"
- // VideoEncodingProfilesExtended const
- VideoEncodingProfilesExtended VideoEncodingProfiles = "Extended"
- // VideoEncodingProfilesHigh const
- VideoEncodingProfilesHigh VideoEncodingProfiles = "High"
- )
- // AudioEncoding type
- type AudioEncoding string
- const (
- // AudioEncodingG711 const
- AudioEncodingG711 AudioEncoding = "G711"
- // AudioEncodingG726 const
- AudioEncodingG726 AudioEncoding = "G726"
- // AudioEncodingAAC const
- AudioEncodingAAC AudioEncoding = "AAC"
- )
- // Audio Media Subtypes as referenced by IANA (without the leading "audio/" Audio Media Type). See also .
- // AudioEncodingMimeNames type
- type AudioEncodingMimeNames string
- const (
- // AudioEncodingMimeNamesPCMU const
- AudioEncodingMimeNamesPCMU AudioEncodingMimeNames = "PCMU"
- // AudioEncodingMimeNamesG726 const
- AudioEncodingMimeNamesG726 AudioEncodingMimeNames = "G726"
- // AudioEncodingMimeNamesMP4ALATM const
- AudioEncodingMimeNamesMP4ALATM AudioEncodingMimeNames = "MP4A-LATM"
- // AudioEncodingMimeNamesMpeg4generic const
- AudioEncodingMimeNamesMpeg4generic AudioEncodingMimeNames = "mpeg4-generic"
- )
- // MetadataCompressionType type
- type MetadataCompressionType string
- const (
- // MetadataCompressionTypeNone const
- MetadataCompressionTypeNone MetadataCompressionType = "None"
- // MetadataCompressionTypeGZIP const
- MetadataCompressionTypeGZIP MetadataCompressionType = "GZIP"
- // MetadataCompressionTypeEXI const
- MetadataCompressionTypeEXI MetadataCompressionType = "EXI"
- )
- // StreamType type
- type StreamType string
- const (
- // StreamTypeRTPUnicast const
- StreamTypeRTPUnicast StreamType = "RTP-Unicast"
- // StreamTypeRTPMulticast const
- StreamTypeRTPMulticast StreamType = "RTP-Multicast"
- )
- // TransportProtocol type
- type TransportProtocol string
- const (
- // TransportProtocolUDP const
- TransportProtocolUDP TransportProtocol = "UDP"
- // This value is deprecated.
- // TransportProtocolTCP const
- TransportProtocolTCP TransportProtocol = "TCP"
- // TransportProtocolRTSP const
- TransportProtocolRTSP TransportProtocol = "RTSP"
- // TransportProtocolHTTP const
- TransportProtocolHTTP TransportProtocol = "HTTP"
- )
- // ScopeDefinition type
- type ScopeDefinition string
- const (
- // ScopeDefinitionFixed const
- ScopeDefinitionFixed ScopeDefinition = "Fixed"
- // ScopeDefinitionConfigurable const
- ScopeDefinitionConfigurable ScopeDefinition = "Configurable"
- )
- // DiscoveryMode type
- type DiscoveryMode string
- const (
- // DiscoveryModeDiscoverable const
- DiscoveryModeDiscoverable DiscoveryMode = "Discoverable"
- // DiscoveryModeNonDiscoverable const
- DiscoveryModeNonDiscoverable DiscoveryMode = "NonDiscoverable"
- )
- // NetworkInterfaceConfigPriority type
- type NetworkInterfaceConfigPriority int32
- // Duplex type
- type Duplex string
- const (
- // DuplexFull const
- DuplexFull Duplex = "Full"
- // DuplexHalf const
- DuplexHalf Duplex = "Half"
- )
- // IANAIfTypes type
- type IANAIfTypes int32
- // IPv6DHCPConfiguration type
- type IPv6DHCPConfiguration string
- const (
- // IPv6DHCPConfigurationAuto const
- IPv6DHCPConfigurationAuto IPv6DHCPConfiguration = "Auto"
- // IPv6DHCPConfigurationStateful const
- IPv6DHCPConfigurationStateful IPv6DHCPConfiguration = "Stateful"
- // IPv6DHCPConfigurationStateless const
- IPv6DHCPConfigurationStateless IPv6DHCPConfiguration = "Stateless"
- // IPv6DHCPConfigurationOff const
- IPv6DHCPConfigurationOff IPv6DHCPConfiguration = "Off"
- )
- // NetworkProtocolType type
- type NetworkProtocolType string
- const (
- // NetworkProtocolTypeHTTP const
- NetworkProtocolTypeHTTP NetworkProtocolType = "HTTP"
- // NetworkProtocolTypeHTTPS const
- NetworkProtocolTypeHTTPS NetworkProtocolType = "HTTPS"
- // NetworkProtocolTypeRTSP const
- NetworkProtocolTypeRTSP NetworkProtocolType = "RTSP"
- )
- // NetworkHostType type
- type NetworkHostType string
- const (
- // NetworkHostTypeIPv4 const
- NetworkHostTypeIPv4 NetworkHostType = "IPv4"
- // NetworkHostTypeIPv6 const
- NetworkHostTypeIPv6 NetworkHostType = "IPv6"
- // NetworkHostTypeDNS const
- NetworkHostTypeDNS NetworkHostType = "DNS"
- )
- // IPv4Address type
- type IPv4Address string
- // IPv6Address type
- type IPv6Address string
- // HwAddress type
- type HwAddress string
- // IPType type
- type IPType string
- const (
- // IPTypeIPv4 const
- IPTypeIPv4 IPType = "IPv4"
- // IPTypeIPv6 const
- IPTypeIPv6 IPType = "IPv6"
- )
- // DNSName type
- type DNSName string
- // IPAddressFilterType type
- type IPAddressFilterType string
- const (
- // IPAddressFilterTypeAllow const
- IPAddressFilterTypeAllow IPAddressFilterType = "Allow"
- // IPAddressFilterTypeDeny const
- IPAddressFilterTypeDeny IPAddressFilterType = "Deny"
- )
- // DynamicDNSType type
- type DynamicDNSType string
- const (
- // DynamicDNSTypeNoUpdate const
- DynamicDNSTypeNoUpdate DynamicDNSType = "NoUpdate"
- // DynamicDNSTypeClientUpdates const
- DynamicDNSTypeClientUpdates DynamicDNSType = "ClientUpdates"
- // DynamicDNSTypeServerUpdates const
- DynamicDNSTypeServerUpdates DynamicDNSType = "ServerUpdates"
- )
- // Dot11SSIDType type
- type Dot11SSIDType []byte
- // Dot11StationMode type
- type Dot11StationMode string
- const (
- // Dot11StationModeAdhoc const
- Dot11StationModeAdhoc Dot11StationMode = "Ad-hoc"
- // Dot11StationModeInfrastructure const
- Dot11StationModeInfrastructure Dot11StationMode = "Infrastructure"
- // Dot11StationModeExtended const
- Dot11StationModeExtended Dot11StationMode = "Extended"
- )
- // Dot11SecurityMode type
- type Dot11SecurityMode string
- const (
- // Dot11SecurityModeNone const
- Dot11SecurityModeNone Dot11SecurityMode = "None"
- // Dot11SecurityModeWEP const
- Dot11SecurityModeWEP Dot11SecurityMode = "WEP"
- // Dot11SecurityModePSK const
- Dot11SecurityModePSK Dot11SecurityMode = "PSK"
- // Dot11SecurityModeDot1X const
- Dot11SecurityModeDot1X Dot11SecurityMode = "Dot1X"
- // Dot11SecurityModeExtended const
- Dot11SecurityModeExtended Dot11SecurityMode = "Extended"
- )
- // Dot11Cipher type
- type Dot11Cipher string
- const (
- // Dot11CipherCCMP const
- Dot11CipherCCMP Dot11Cipher = "CCMP"
- // Dot11CipherTKIP const
- Dot11CipherTKIP Dot11Cipher = "TKIP"
- // Dot11CipherAny const
- Dot11CipherAny Dot11Cipher = "Any"
- // Dot11CipherExtended const
- Dot11CipherExtended Dot11Cipher = "Extended"
- )
- // Dot11PSK type
- type Dot11PSK []byte
- // Dot11PSKPassphrase type
- type Dot11PSKPassphrase string
- // Dot11SignalStrength type
- type Dot11SignalStrength string
- const (
- // Dot11SignalStrengthNone const
- Dot11SignalStrengthNone Dot11SignalStrength = "None"
- // Dot11SignalStrengthVeryBad const
- Dot11SignalStrengthVeryBad Dot11SignalStrength = "Very Bad"
- // Dot11SignalStrengthBad const
- Dot11SignalStrengthBad Dot11SignalStrength = "Bad"
- // Dot11SignalStrengthGood const
- Dot11SignalStrengthGood Dot11SignalStrength = "Good"
- // Dot11SignalStrengthVeryGood const
- Dot11SignalStrengthVeryGood Dot11SignalStrength = "Very Good"
- // Dot11SignalStrengthExtended const
- Dot11SignalStrengthExtended Dot11SignalStrength = "Extended"
- )
- // Dot11AuthAndMangementSuite type
- type Dot11AuthAndMangementSuite string
- const (
- // Dot11AuthAndMangementSuiteNone const
- Dot11AuthAndMangementSuiteNone Dot11AuthAndMangementSuite = "None"
- // Dot11AuthAndMangementSuiteDot1X const
- Dot11AuthAndMangementSuiteDot1X Dot11AuthAndMangementSuite = "Dot1X"
- // Dot11AuthAndMangementSuitePSK const
- Dot11AuthAndMangementSuitePSK Dot11AuthAndMangementSuite = "PSK"
- // Dot11AuthAndMangementSuiteExtended const
- Dot11AuthAndMangementSuiteExtended Dot11AuthAndMangementSuite = "Extended"
- )
- // CapabilityCategory type
- type CapabilityCategory string
- const (
- // CapabilityCategoryAll const
- CapabilityCategoryAll CapabilityCategory = "All"
- // CapabilityCategoryAnalytics const
- CapabilityCategoryAnalytics CapabilityCategory = "Analytics"
- // CapabilityCategoryDevice const
- CapabilityCategoryDevice CapabilityCategory = "Device"
- // CapabilityCategoryEvents const
- CapabilityCategoryEvents CapabilityCategory = "Events"
- // CapabilityCategoryImaging const
- CapabilityCategoryImaging CapabilityCategory = "Imaging"
- // CapabilityCategoryMedia const
- CapabilityCategoryMedia CapabilityCategory = "Media"
- // CapabilityCategoryPTZ const
- CapabilityCategoryPTZ CapabilityCategory = "PTZ"
- )
- // Enumeration describing the available system log modes.
- // SystemLogType type
- type SystemLogType string
- const (
- // Indicates that a system log is requested.
- // SystemLogTypeSystem const
- SystemLogTypeSystem SystemLogType = "System"
- // Indicates that a access log is requested.
- // SystemLogTypeAccess const
- SystemLogTypeAccess SystemLogType = "Access"
- )
- // Enumeration describing the available factory default modes.
- // FactoryDefaultType type
- type FactoryDefaultType string
- const (
- // Indicates that a hard factory default is requested.
- // FactoryDefaultTypeHard const
- FactoryDefaultTypeHard FactoryDefaultType = "Hard"
- // Indicates that a soft factory default is requested.
- // FactoryDefaultTypeSoft const
- FactoryDefaultTypeSoft FactoryDefaultType = "Soft"
- )
- // SetDateTimeType type
- type SetDateTimeType string
- const (
- // Indicates that the date and time are set manually.
- // SetDateTimeTypeManual const
- SetDateTimeTypeManual SetDateTimeType = "Manual"
- // Indicates that the date and time are set through NTP
- // SetDateTimeTypeNTP const
- SetDateTimeTypeNTP SetDateTimeType = "NTP"
- )
- // UserLevel type
- type UserLevel string
- const (
- // UserLevelAdministrator const
- UserLevelAdministrator UserLevel = "Administrator"
- // UserLevelOperator const
- UserLevelOperator UserLevel = "Operator"
- // UserLevelUser const
- UserLevelUser UserLevel = "User"
- // UserLevelAnonymous const
- UserLevelAnonymous UserLevel = "Anonymous"
- // UserLevelExtended const
- UserLevelExtended UserLevel = "Extended"
- )
- // RelayLogicalState type
- type RelayLogicalState string
- const (
- // RelayLogicalStateActive const
- RelayLogicalStateActive RelayLogicalState = "active"
- // RelayLogicalStateInactive const
- RelayLogicalStateInactive RelayLogicalState = "inactive"
- )
- // RelayIdleState type
- type RelayIdleState string
- const (
- // RelayIdleStateClosed const
- RelayIdleStateClosed RelayIdleState = "closed"
- // RelayIdleStateOpen const
- RelayIdleStateOpen RelayIdleState = "open"
- )
- // RelayMode type
- type RelayMode string
- const (
- // RelayModeMonostable const
- RelayModeMonostable RelayMode = "Monostable"
- // RelayModeBistable const
- RelayModeBistable RelayMode = "Bistable"
- )
- // DigitalIdleState type
- type DigitalIdleState string
- const (
- // DigitalIdleStateClosed const
- DigitalIdleStateClosed DigitalIdleState = "closed"
- // DigitalIdleStateOpen const
- DigitalIdleStateOpen DigitalIdleState = "open"
- )
- // EFlipMode type
- type EFlipMode string
- const (
- // EFlipModeOFF const
- EFlipModeOFF EFlipMode = "OFF"
- // EFlipModeON const
- EFlipModeON EFlipMode = "ON"
- // EFlipModeExtended const
- EFlipModeExtended EFlipMode = "Extended"
- )
- // ReverseMode type
- type ReverseMode string
- const (
- // ReverseModeOFF const
- ReverseModeOFF ReverseMode = "OFF"
- // ReverseModeON const
- ReverseModeON ReverseMode = "ON"
- // ReverseModeAUTO const
- ReverseModeAUTO ReverseMode = "AUTO"
- // ReverseModeExtended const
- ReverseModeExtended ReverseMode = "Extended"
- )
- // AuxiliaryData type
- type AuxiliaryData string
- // PTZPresetTourState type
- type PTZPresetTourState string
- const (
- // PTZPresetTourStateIdle const
- PTZPresetTourStateIdle PTZPresetTourState = "Idle"
- // PTZPresetTourStateTouring const
- PTZPresetTourStateTouring PTZPresetTourState = "Touring"
- // PTZPresetTourStatePaused const
- PTZPresetTourStatePaused PTZPresetTourState = "Paused"
- // PTZPresetTourStateExtended const
- PTZPresetTourStateExtended PTZPresetTourState = "Extended"
- )
- // PTZPresetTourDirection type
- type PTZPresetTourDirection string
- const (
- // PTZPresetTourDirectionForward const
- PTZPresetTourDirectionForward PTZPresetTourDirection = "Forward"
- // PTZPresetTourDirectionBackward const
- PTZPresetTourDirectionBackward PTZPresetTourDirection = "Backward"
- // PTZPresetTourDirectionExtended const
- PTZPresetTourDirectionExtended PTZPresetTourDirection = "Extended"
- )
- // PTZPresetTourOperation type
- type PTZPresetTourOperation string
- const (
- // PTZPresetTourOperationStart const
- PTZPresetTourOperationStart PTZPresetTourOperation = "Start"
- // PTZPresetTourOperationStop const
- PTZPresetTourOperationStop PTZPresetTourOperation = "Stop"
- // PTZPresetTourOperationPause const
- PTZPresetTourOperationPause PTZPresetTourOperation = "Pause"
- // PTZPresetTourOperationExtended const
- PTZPresetTourOperationExtended PTZPresetTourOperation = "Extended"
- )
- // AutoFocusMode type
- type AutoFocusMode string
- const (
- // AutoFocusModeAUTO const
- AutoFocusModeAUTO AutoFocusMode = "AUTO"
- // AutoFocusModeMANUAL const
- AutoFocusModeMANUAL AutoFocusMode = "MANUAL"
- )
- // AFModes type
- type AFModes string
- const (
- // Focus of a moving camera is updated only once after stopping a pan, tilt or zoom movement.
- // AFModesOnceAfterMove const
- AFModesOnceAfterMove AFModes = "OnceAfterMove"
- )
- // WideDynamicMode type
- type WideDynamicMode string
- const (
- // WideDynamicModeOFF const
- WideDynamicModeOFF WideDynamicMode = "OFF"
- // WideDynamicModeON const
- WideDynamicModeON WideDynamicMode = "ON"
- )
- // Enumeration describing the available backlight compenstation modes.
- // BacklightCompensationMode type
- type BacklightCompensationMode string
- const (
- // Backlight compensation is disabled.
- // BacklightCompensationModeOFF const
- BacklightCompensationModeOFF BacklightCompensationMode = "OFF"
- // Backlight compensation is enabled.
- // BacklightCompensationModeON const
- BacklightCompensationModeON BacklightCompensationMode = "ON"
- )
- // ExposurePriority type
- type ExposurePriority string
- const (
- // ExposurePriorityLowNoise const
- ExposurePriorityLowNoise ExposurePriority = "LowNoise"
- // ExposurePriorityFrameRate const
- ExposurePriorityFrameRate ExposurePriority = "FrameRate"
- )
- // ExposureMode type
- type ExposureMode string
- const (
- // ExposureModeAUTO const
- ExposureModeAUTO ExposureMode = "AUTO"
- // ExposureModeMANUAL const
- ExposureModeMANUAL ExposureMode = "MANUAL"
- )
- // Enabled type
- type Enabled string
- const (
- // EnabledENABLED const
- EnabledENABLED Enabled = "ENABLED"
- // EnabledDISABLED const
- EnabledDISABLED Enabled = "DISABLED"
- )
- // WhiteBalanceMode type
- type WhiteBalanceMode string
- const (
- // WhiteBalanceModeAUTO const
- WhiteBalanceModeAUTO WhiteBalanceMode = "AUTO"
- // WhiteBalanceModeMANUAL const
- WhiteBalanceModeMANUAL WhiteBalanceMode = "MANUAL"
- )
- // IrCutFilterMode type
- type IrCutFilterMode string
- const (
- // IrCutFilterModeON const
- IrCutFilterModeON IrCutFilterMode = "ON"
- // IrCutFilterModeOFF const
- IrCutFilterModeOFF IrCutFilterMode = "OFF"
- // IrCutFilterModeAUTO const
- IrCutFilterModeAUTO IrCutFilterMode = "AUTO"
- )
- // ImageStabilizationMode type
- type ImageStabilizationMode string
- const (
- // ImageStabilizationModeOFF const
- ImageStabilizationModeOFF ImageStabilizationMode = "OFF"
- // ImageStabilizationModeON const
- ImageStabilizationModeON ImageStabilizationMode = "ON"
- // ImageStabilizationModeAUTO const
- ImageStabilizationModeAUTO ImageStabilizationMode = "AUTO"
- // ImageStabilizationModeExtended const
- ImageStabilizationModeExtended ImageStabilizationMode = "Extended"
- )
- // IrCutFilterAutoBoundaryType type
- type IrCutFilterAutoBoundaryType string
- const (
- // IrCutFilterAutoBoundaryTypeCommon const
- IrCutFilterAutoBoundaryTypeCommon IrCutFilterAutoBoundaryType = "Common"
- // IrCutFilterAutoBoundaryTypeToOn const
- IrCutFilterAutoBoundaryTypeToOn IrCutFilterAutoBoundaryType = "ToOn"
- // IrCutFilterAutoBoundaryTypeToOff const
- IrCutFilterAutoBoundaryTypeToOff IrCutFilterAutoBoundaryType = "ToOff"
- // IrCutFilterAutoBoundaryTypeExtended const
- IrCutFilterAutoBoundaryTypeExtended IrCutFilterAutoBoundaryType = "Extended"
- )
- // ToneCompensationMode type
- type ToneCompensationMode string
- const (
- // ToneCompensationModeOFF const
- ToneCompensationModeOFF ToneCompensationMode = "OFF"
- // ToneCompensationModeON const
- ToneCompensationModeON ToneCompensationMode = "ON"
- // ToneCompensationModeAUTO const
- ToneCompensationModeAUTO ToneCompensationMode = "AUTO"
- )
- // DefoggingMode type
- type DefoggingMode string
- const (
- // DefoggingModeOFF const
- DefoggingModeOFF DefoggingMode = "OFF"
- // DefoggingModeON const
- DefoggingModeON DefoggingMode = "ON"
- // DefoggingModeAUTO const
- DefoggingModeAUTO DefoggingMode = "AUTO"
- )
- // TopicNamespaceLocation type
- type TopicNamespaceLocation AnyURI
- // PropertyOperation type
- type PropertyOperation string
- const (
- // PropertyOperationInitialized const
- PropertyOperationInitialized PropertyOperation = "Initialized"
- // PropertyOperationDeleted const
- PropertyOperationDeleted PropertyOperation = "Deleted"
- // PropertyOperationChanged const
- PropertyOperationChanged PropertyOperation = "Changed"
- )
- // Direction type
- type Direction string
- const (
- // DirectionLeft const
- DirectionLeft Direction = "Left"
- // DirectionRight const
- DirectionRight Direction = "Right"
- // DirectionAny const
- DirectionAny Direction = "Any"
- )
- //
- // Specifies a receiver connection mode.
- //
- // ReceiverMode type
- type ReceiverMode string
- const (
- // The receiver connects on demand, as required by consumers of the media streams.
- // ReceiverModeAutoConnect const
- ReceiverModeAutoConnect ReceiverMode = "AutoConnect"
- // The receiver attempts to maintain a persistent connection to the configured endpoint.
- // ReceiverModeAlwaysConnect const
- ReceiverModeAlwaysConnect ReceiverMode = "AlwaysConnect"
- // The receiver does not attempt to connect.
- // ReceiverModeNeverConnect const
- ReceiverModeNeverConnect ReceiverMode = "NeverConnect"
- // This case should never happen.
- // ReceiverModeUnknown const
- ReceiverModeUnknown ReceiverMode = "Unknown"
- )
- //
- // Specifies the current connection state of the receiver.
- //
- // ReceiverState type
- type ReceiverState string
- const (
- // The receiver is not connected.
- // ReceiverStateNotConnected const
- ReceiverStateNotConnected ReceiverState = "NotConnected"
- // The receiver is attempting to connect.
- // ReceiverStateConnecting const
- ReceiverStateConnecting ReceiverState = "Connecting"
- // The receiver is connected.
- // ReceiverStateConnected const
- ReceiverStateConnected ReceiverState = "Connected"
- // This case should never happen.
- // ReceiverStateUnknown const
- ReceiverStateUnknown ReceiverState = "Unknown"
- )
- // ReceiverReference type
- type ReceiverReference ReferenceToken
- // RecordingReference type
- type RecordingReference ReferenceToken
- // TrackReference type
- type TrackReference ReferenceToken
- // Description type
- type Description string
- // XPathExpression type
- type XPathExpression string
- // SearchState type
- type SearchState string
- const (
- // The search is queued and not yet started.
- // SearchStateQueued const
- SearchStateQueued SearchState = "Queued"
- // The search is underway and not yet completed.
- // SearchStateSearching const
- SearchStateSearching SearchState = "Searching"
- // The search has been completed and no new results will be found.
- // SearchStateCompleted const
- SearchStateCompleted SearchState = "Completed"
- // The state of the search is unknown. (This is not a valid response from GetSearchState.)
- // SearchStateUnknown const
- SearchStateUnknown SearchState = "Unknown"
- )
- // JobToken type
- type JobToken ReferenceToken
- // RecordingStatus type
- type RecordingStatus string
- const (
- // RecordingStatusInitiated const
- RecordingStatusInitiated RecordingStatus = "Initiated"
- // RecordingStatusRecording const
- RecordingStatusRecording RecordingStatus = "Recording"
- // RecordingStatusStopped const
- RecordingStatusStopped RecordingStatus = "Stopped"
- // RecordingStatusRemoving const
- RecordingStatusRemoving RecordingStatus = "Removing"
- // RecordingStatusRemoved const
- RecordingStatusRemoved RecordingStatus = "Removed"
- // This case should never happen.
- // RecordingStatusUnknown const
- RecordingStatusUnknown RecordingStatus = "Unknown"
- )
- // TrackType type
- type TrackType string
- const (
- // TrackTypeVideo const
- TrackTypeVideo TrackType = "Video"
- // TrackTypeAudio const
- TrackTypeAudio TrackType = "Audio"
- // TrackTypeMetadata const
- TrackTypeMetadata TrackType = "Metadata"
- // Placeholder for future extension.
- // TrackTypeExtended const
- TrackTypeExtended TrackType = "Extended"
- )
- // RecordingJobReference type
- type RecordingJobReference ReferenceToken
- // RecordingJobMode type
- type RecordingJobMode string
- // RecordingJobState type
- type RecordingJobState string
- // ModeOfOperation type
- type ModeOfOperation string
- const (
- // ModeOfOperationIdle const
- ModeOfOperationIdle ModeOfOperation = "Idle"
- // ModeOfOperationActive const
- ModeOfOperationActive ModeOfOperation = "Active"
- // This case should never happen.
- // ModeOfOperationUnknown const
- ModeOfOperationUnknown ModeOfOperation = "Unknown"
- )
- //
- // AudioClassType acceptable values are;
- // gun_shot, scream, glass_breaking, tire_screech
- //
- // AudioClassType type
- type AudioClassType string
- // OSDType type
- type OSDType string
- const (
- // OSDTypeText const
- OSDTypeText OSDType = "Text"
- // OSDTypeImage const
- OSDTypeImage OSDType = "Image"
- // OSDTypeExtended const
- OSDTypeExtended OSDType = "Extended"
- )
- // Message type
- type Message struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Message"`
- // Token value pairs that triggered this message. Typically only one item is present.
- Source ItemList `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
- Key ItemList `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
- Data ItemList `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
- Extension MessageExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,attr,omitempty"`
- PropertyOperation PropertyOperation `xml:"http://www.onvif.org/ver10/schema PropertyOperation,attr,omitempty"`
- }
- // DeviceEntity type
- type DeviceEntity struct {
- // Unique identifier referencing the physical entity.
- Token ReferenceToken `xml:"token,attr,omitempty"`
- }
- // IntRectangle type
- type IntRectangle struct {
- X int32 `xml:"x,attr,omitempty"`
- Y int32 `xml:"y,attr,omitempty"`
- Width int32 `xml:"width,attr,omitempty"`
- Height int32 `xml:"height,attr,omitempty"`
- }
- // IntRectangleRange type
- type IntRectangleRange struct {
- // Range of X-axis.
- XRange IntRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
- // Range of Y-axis.
- YRange IntRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
- // Range of width.
- WidthRange IntRange `xml:"http://www.onvif.org/ver10/schema WidthRange,omitempty"`
- // Range of height.
- HeightRange IntRange `xml:"http://www.onvif.org/ver10/schema HeightRange,omitempty"`
- }
- // FloatRange type
- type FloatRange struct {
- Min float32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
- Max float32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
- }
- // DurationRange type
- type DurationRange struct {
- Min Duration `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
- Max Duration `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
- }
- // IntList type
- type IntList struct {
- Items []int32 `xml:"http://www.onvif.org/ver10/schema Items,omitempty"`
- }
- // VideoSource type
- type VideoSource struct {
- *DeviceEntity
- // Frame rate in frames per second.
- Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
- // Horizontal and vertical resolution
- Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
- // Optional configuration of the image sensor.
- Imaging ImagingSettings `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
- Extension VideoSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceExtension type
- type VideoSourceExtension struct {
- // Optional configuration of the image sensor. To be used if imaging service 2.00 is supported.
- Imaging ImagingSettings20 `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
- Extension VideoSourceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceExtension2 type
- type VideoSourceExtension2 struct {
- }
- // AudioSource type
- type AudioSource struct {
- *DeviceEntity
- // number of available audio channels. (1: mono, 2: stereo)
- Channels int32 `xml:"http://www.onvif.org/ver10/schema Channels,omitempty"`
- }
- // Profile type
- type Profile struct {
- // User readable name of the profile.
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Optional configuration of the Video input.
- VideoSourceConfiguration VideoSourceConfiguration `xml:"http://www.onvif.org/ver10/schema VideoSourceConfiguration,omitempty"`
- // Optional configuration of the Audio input.
- AudioSourceConfiguration AudioSourceConfiguration `xml:"http://www.onvif.org/ver10/schema AudioSourceConfiguration,omitempty"`
- // Optional configuration of the Video encoder.
- VideoEncoderConfiguration VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoEncoderConfiguration,omitempty"`
- // Optional configuration of the Audio encoder.
- AudioEncoderConfiguration AudioEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioEncoderConfiguration,omitempty"`
- // Optional configuration of the video analytics module and rule engine.
- VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
- // Optional configuration of the pan tilt zoom unit.
- PTZConfiguration PTZConfiguration `xml:"http://www.onvif.org/ver10/schema PTZConfiguration,omitempty"`
- // Optional configuration of the metadata stream.
- MetadataConfiguration MetadataConfiguration `xml:"http://www.onvif.org/ver10/schema MetadataConfiguration,omitempty"`
- // Extensions defined in ONVIF 2.0
- Extension ProfileExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Unique identifier of the profile.
- Token ReferenceToken `xml:"token,attr,omitempty"`
- // A value of true signals that the profile cannot be deleted. Default is false.
- Fixed bool `xml:"fixed,attr,omitempty"`
- }
- // ProfileExtension type
- type ProfileExtension struct {
- // Optional configuration of the Audio output.
- AudioOutputConfiguration AudioOutputConfiguration `xml:"http://www.onvif.org/ver10/schema AudioOutputConfiguration,omitempty"`
- // Optional configuration of the Audio decoder.
- AudioDecoderConfiguration AudioDecoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioDecoderConfiguration,omitempty"`
- Extension ProfileExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ProfileExtension2 type
- type ProfileExtension2 struct {
- }
- // ConfigurationEntity type
- type ConfigurationEntity struct {
- // User readable name. Length up to 64 characters.
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Number of internal references currently using this configuration.
- UseCount int32 `xml:"http://www.onvif.org/ver10/schema UseCount,omitempty"`
- // Token that uniquely references this configuration. Length up to 64 characters.
- Token ReferenceToken `xml:"token,attr,omitempty"`
- }
- // VideoSourceConfiguration type
- type VideoSourceConfiguration struct {
- *ConfigurationEntity
- // Reference to the physical input.
- SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl SourceToken,omitempty"`
- // Rectangle specifying the Video capturing area. The capturing area shall not be larger than the whole Video source area.
- Bounds IntRectangle `xml:"http://www.onvif.org/ver10/schema Bounds,omitempty"`
- Extension VideoSourceConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Readonly parameter signalling Source configuration's view mode, for devices supporting different view modes as defined in tt:viewModes.
- ViewMode string `xml:"http://www.onvif.org/ver10/schema ViewMode,attr,omitempty"`
- }
- // VideoSourceConfigurationExtension type
- type VideoSourceConfigurationExtension struct {
- // Optional element to configure rotation of captured image.
- // What resolutions a device supports shall be unaffected by the Rotate parameters.
- // 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.
- // The device shall automatically apply the same rotation to its pan/tilt control direction depending on the following condition:
- // if Reverse=AUTO in PTControlDirection or if the device doesn’t support Reverse in PTControlDirection
- //
- Rotate Rotate `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
- Extension VideoSourceConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceConfigurationExtension2 type
- type VideoSourceConfigurationExtension2 struct {
- // Optional element describing the geometric lens distortion. Multiple instances for future variable lens support.
- LensDescription []LensDescription `xml:"http://www.onvif.org/ver10/schema LensDescription,omitempty"`
- // Optional element describing the scene orientation in the camera’s field of view.
- SceneOrientation SceneOrientation `xml:"http://www.onvif.org/ver10/schema SceneOrientation,omitempty"`
- }
- // Rotate type
- type Rotate struct {
- // Parameter to enable/disable Rotation feature.
- Mode RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // 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.
- Degree int32 `xml:"http://www.onvif.org/ver10/schema Degree,omitempty"`
- Extension RotateExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RotateExtension type
- type RotateExtension struct {
- }
- // LensProjection type
- type LensProjection struct {
- // Angle of incidence.
- Angle float32 `xml:"http://www.onvif.org/ver10/schema Angle,omitempty"`
- // Mapping radius as a consequence of the emergent angle.
- Radius float32 `xml:"http://www.onvif.org/ver10/schema Radius,omitempty"`
- // Optional ray absorption at the given angle due to vignetting. A value of one means no absorption.
- Transmittance float32 `xml:"http://www.onvif.org/ver10/schema Transmittance,omitempty"`
- }
- // LensOffset type
- type LensOffset struct {
- // Optional horizontal offset of the lens center in normalized coordinates.
- X float32 `xml:"x,attr,omitempty"`
- // Optional vertical offset of the lens center in normalized coordinates.
- Y float32 `xml:"y,attr,omitempty"`
- }
- // LensDescription type
- type LensDescription struct {
- // Offset of the lens center to the imager center in normalized coordinates.
- Offset LensOffset `xml:"http://www.onvif.org/ver10/schema Offset,omitempty"`
- // Radial description of the projection characteristics. The resulting curve is defined by the B-Spline interpolation
- // over the given elements. The element for Radius zero shall not be provided. The projection points shall be ordered with ascending Radius.
- // Items outside the last projection Radius shall be assumed to be invisible (black).
- Projection []LensProjection `xml:"http://www.onvif.org/ver10/schema Projection,omitempty"`
- // Compensation of the x coordinate needed for the ONVIF normalized coordinate system.
- XFactor float32 `xml:"http://www.onvif.org/ver10/schema XFactor,omitempty"`
- // Optional focal length of the optical system.
- FocalLength float32 `xml:"http://www.onvif.org/ver10/schema FocalLength,attr,omitempty"`
- }
- // VideoSourceConfigurationOptions type
- type VideoSourceConfigurationOptions struct {
- //
- // Supported range for the capturing area.
- // Device that does not support cropped streaming shall express BoundsRange option as mentioned below
- // BoundsRange->XRange and BoundsRange->YRange with same Min/Max values HeightRange and WidthRange Min/Max values same as VideoSource Height and Width Limits.
- //
- BoundsRange IntRectangleRange `xml:"http://www.onvif.org/ver10/schema BoundsRange,omitempty"`
- // List of physical inputs.
- VideoSourceTokensAvailable []ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl VideoSourceTokensAvailable,omitempty"`
- Extension VideoSourceConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Maximum number of profiles.
- MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,attr,omitempty"`
- }
- // VideoSourceConfigurationOptionsExtension type
- type VideoSourceConfigurationOptionsExtension struct {
- // Options of parameters for Rotation feature.
- Rotate RotateOptions `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
- Extension VideoSourceConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceConfigurationOptionsExtension2 type
- type VideoSourceConfigurationOptionsExtension2 struct {
- // Scene orientation modes supported by the device for this configuration.
- SceneOrientationMode []SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema SceneOrientationMode,omitempty"`
- }
- // RotateOptions type
- type RotateOptions struct {
- // Supported options of Rotate mode parameter.
- Mode []RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // List of supported degree value for rotation.
- DegreeList IntList `xml:"http://www.onvif.org/ver10/schema DegreeList,omitempty"`
- Extension RotateOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // After setting the rotation, if a device starts to reboot this value is true.
- // If a device can handle rotation setting without rebooting this value is false.
- Reboot bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Reboot,attr,omitempty"`
- }
- // RotateOptionsExtension type
- type RotateOptionsExtension struct {
- }
- // SceneOrientation type
- type SceneOrientation struct {
- //
- // Parameter to assign the way the camera determines the scene orientation.
- //
- Mode SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Assigned or determined scene orientation based on the Mode. When assigning the Mode to AUTO, this field
- // is optional and will be ignored by the device. When assigning the Mode to MANUAL, this field is required
- // and the device will return an InvalidArgs fault if missing.
- //
- Orientation string `xml:"http://www.onvif.org/ver10/schema Orientation,omitempty"`
- }
- // VideoEncoderConfiguration type
- type VideoEncoderConfiguration struct {
- *ConfigurationEntity
- // Used video codec, either Jpeg, H.264 or Mpeg4
- Encoding VideoEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
- // Configured video resolution
- Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
- // Relative value for the video quantizers and the quality of the video. A high value within supported quality range means higher quality
- Quality float32 `xml:"http://www.onvif.org/ver10/schema Quality,omitempty"`
- // Optional element to configure rate control related parameters.
- RateControl VideoRateControl `xml:"http://www.onvif.org/ver10/schema RateControl,omitempty"`
- // Optional element to configure Mpeg4 related parameters.
- MPEG4 Mpeg4Configuration `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
- // Optional element to configure H.264 related parameters.
- H264 H264Configuration `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
- // Defines the multicast settings that could be used for video streaming.
- Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
- // The rtsp session timeout for the related video stream
- SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
- //
- // A value of true indicates that frame rate is a fixed value rather than an upper limit,
- // and that the video encoder shall prioritize frame rate over all other adaptable
- // configuration values such as bitrate. Default is false.
- //
- GuaranteedFrameRate bool `xml:"http://www.onvif.org/ver10/receiver/wsdl GuaranteedFrameRate,attr,omitempty"`
- }
- // VideoResolution type
- type VideoResolution struct {
- // Number of the columns of the Video image.
- Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
- // Number of the lines of the Video image.
- Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
- }
- // VideoRateControl type
- type VideoRateControl struct {
- // Maximum output framerate in fps. If an EncodingInterval is provided the resulting encoded framerate will be reduced by the given factor.
- FrameRateLimit int32 `xml:"http://www.onvif.org/ver10/schema FrameRateLimit,omitempty"`
- // 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 ...)
- EncodingInterval int32 `xml:"http://www.onvif.org/ver10/schema EncodingInterval,omitempty"`
- // the maximum output bitrate in kbps
- BitrateLimit int32 `xml:"http://www.onvif.org/ver10/schema BitrateLimit,omitempty"`
- }
- // Mpeg4Configuration type
- type Mpeg4Configuration struct {
- // 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.
- GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
- // the Mpeg4 profile, either simple profile (SP) or advanced simple profile (ASP)
- Mpeg4Profile Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4Profile,omitempty"`
- }
- // H264Configuration type
- type H264Configuration struct {
- // 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.
- GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
- // the H.264 profile, either baseline, main, extended or high
- H264Profile H264Profile `xml:"http://www.onvif.org/ver10/schema H264Profile,omitempty"`
- }
- // VideoEncoderOptionsExtension type
- type VideoEncoderOptionsExtension struct {
- // Optional JPEG encoder settings ranges.
- JPEG JpegOptions2 `xml:"http://www.onvif.org/ver10/schema JPEG,omitempty"`
- // Optional MPEG-4 encoder settings ranges.
- MPEG4 Mpeg4Options2 `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
- // Optional H.264 encoder settings ranges.
- H264 H264Options2 `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
- Extension VideoEncoderOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoEncoderOptionsExtension2 type
- type VideoEncoderOptionsExtension2 struct {
- }
- // JpegOptions type
- type JpegOptions struct {
- // List of supported image sizes.
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported frame rate in fps (frames per second).
- FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
- // 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.
- EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
- }
- // JpegOptions2 type
- type JpegOptions2 struct {
- *JpegOptions
- // Supported range of encoded bitrate in kbps.
- BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
- }
- // Mpeg4Options type
- type Mpeg4Options struct {
- // List of supported image sizes.
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
- GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
- // Supported frame rate in fps (frames per second).
- FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
- // 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.
- EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
- // List of supported MPEG-4 profiles.
- Mpeg4ProfilesSupported []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4ProfilesSupported,omitempty"`
- }
- // Mpeg4Options2 type
- type Mpeg4Options2 struct {
- *Mpeg4Options
- // Supported range of encoded bitrate in kbps.
- BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
- }
- // H264Options type
- type H264Options struct {
- // List of supported image sizes.
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
- GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
- // Supported frame rate in fps (frames per second).
- FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
- // 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.
- EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
- // List of supported H.264 profiles.
- H264ProfilesSupported []H264Profile `xml:"http://www.onvif.org/ver10/schema H264ProfilesSupported,omitempty"`
- }
- // H264Options2 type
- type H264Options2 struct {
- *H264Options
- // Supported range of encoded bitrate in kbps.
- BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
- }
- // AudioSourceConfiguration type
- type AudioSourceConfiguration struct {
- *ConfigurationEntity
- // Token of the Audio Source the configuration applies to
- SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl SourceToken,omitempty"`
- }
- // AudioEncoderConfiguration type
- type AudioEncoderConfiguration struct {
- *ConfigurationEntity
- // Audio codec used for encoding the audio input (either G.711, G.726 or AAC)
- Encoding AudioEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
- // The output bitrate in kbps.
- Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // The output sample rate in kHz.
- SampleRate int32 `xml:"http://www.onvif.org/ver10/schema SampleRate,omitempty"`
- // Defines the multicast settings that could be used for video streaming.
- Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
- // The rtsp session timeout for the related audio stream
- SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
- }
- // VideoAnalyticsConfiguration type
- type VideoAnalyticsConfiguration struct {
- *ConfigurationEntity
- AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
- RuleEngineConfiguration RuleEngineConfiguration `xml:"http://www.onvif.org/ver10/schema RuleEngineConfiguration,omitempty"`
- }
- // MetadataConfiguration type
- type MetadataConfiguration struct {
- *ConfigurationEntity
- // optional element to configure which PTZ related data is to include in the metadata stream
- PTZStatus PTZFilter `xml:"http://www.onvif.org/ver10/schema PTZStatus,omitempty"`
- // Optional element to configure the streaming of events. A client might be interested in receiving all,
- // none or some of the events produced by the device:
- //
- Events EventSubscription `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
- // Defines whether the streamed metadata will include metadata from the analytics engines (video, cell motion, audio etc.)
- Analytics bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Analytics,omitempty"`
- // Defines the multicast settings that could be used for video streaming.
- Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
- // The rtsp session timeout for the related audio stream (when using Media2 Service, this value is deprecated and ignored)
- SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
- AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
- Extension MetadataConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Optional parameter to configure compression type of Metadata payload. Use values from enumeration MetadataCompressionType.
- CompressionType string `xml:"http://www.onvif.org/ver10/schema CompressionType,attr,omitempty"`
- // Optional parameter to configure if the metadata stream shall contain the Geo Location coordinates of each target.
- GeoLocation bool `xml:"http://www.onvif.org/ver10/receiver/wsdl GeoLocation,attr,omitempty"`
- }
- // MetadataConfigurationExtension type
- type MetadataConfigurationExtension struct {
- }
- // PTZFilter type
- type PTZFilter struct {
- // True if the metadata stream shall contain the PTZ status (IDLE, MOVING or UNKNOWN)
- Status bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Status,omitempty"`
- // True if the metadata stream shall contain the PTZ position
- Position bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Position,omitempty"`
- }
- // EventSubscription type
- type EventSubscription struct {
- Filter FilterType `xml:"Filter,omitempty"`
- SubscriptionPolicy struct {
- } `xml:"SubscriptionPolicy,omitempty"`
- }
- // MetadataConfigurationOptions type
- type MetadataConfigurationOptions struct {
- PTZStatusFilterOptions PTZStatusFilterOptions `xml:"http://www.onvif.org/ver10/schema PTZStatusFilterOptions,omitempty"`
- Extension MetadataConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // True if the device is able to stream the Geo Located positions of each target.
- GeoLocation bool `xml:"http://www.onvif.org/ver10/receiver/wsdl GeoLocation,attr,omitempty"`
- }
- // MetadataConfigurationOptionsExtension type
- type MetadataConfigurationOptionsExtension struct {
- // List of supported metadata compression type. Its options shall be chosen from tt:MetadataCompressionType.
- CompressionType []string `xml:"http://www.onvif.org/ver10/schema CompressionType,omitempty"`
- Extension MetadataConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // MetadataConfigurationOptionsExtension2 type
- type MetadataConfigurationOptionsExtension2 struct {
- }
- // PTZStatusFilterOptions type
- type PTZStatusFilterOptions struct {
- // True if the device is able to stream pan or tilt status information.
- PanTiltStatusSupported bool `xml:"http://www.onvif.org/ver10/receiver/wsdl PanTiltStatusSupported,omitempty"`
- // True if the device is able to stream zoom status inforamtion.
- ZoomStatusSupported bool `xml:"http://www.onvif.org/ver10/receiver/wsdl ZoomStatusSupported,omitempty"`
- // True if the device is able to stream the pan or tilt position.
- PanTiltPositionSupported bool `xml:"http://www.onvif.org/ver10/receiver/wsdl PanTiltPositionSupported,omitempty"`
- // True if the device is able to stream zoom position information.
- ZoomPositionSupported bool `xml:"http://www.onvif.org/ver10/receiver/wsdl ZoomPositionSupported,omitempty"`
- Extension PTZStatusFilterOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZStatusFilterOptionsExtension type
- type PTZStatusFilterOptionsExtension struct {
- }
- // VideoOutput type
- type VideoOutput struct {
- *DeviceEntity
- Layout Layout `xml:"http://www.onvif.org/ver10/schema Layout,omitempty"`
- // Resolution of the display in Pixel.
- Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
- // Refresh rate of the display in Hertz.
- RefreshRate float32 `xml:"http://www.onvif.org/ver10/schema RefreshRate,omitempty"`
- // Aspect ratio of the display as physical extent of width divided by height.
- AspectRatio float32 `xml:"http://www.onvif.org/ver10/schema AspectRatio,omitempty"`
- Extension VideoOutputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoOutputExtension type
- type VideoOutputExtension struct {
- }
- // VideoDecoderConfigurationOptions type
- type VideoDecoderConfigurationOptions struct {
- // If the device is able to decode Jpeg streams this element describes the supported codecs and configurations
- JpegDecOptions JpegDecOptions `xml:"http://www.onvif.org/ver10/schema JpegDecOptions,omitempty"`
- // If the device is able to decode H.264 streams this element describes the supported codecs and configurations
- H264DecOptions H264DecOptions `xml:"http://www.onvif.org/ver10/schema H264DecOptions,omitempty"`
- // If the device is able to decode Mpeg4 streams this element describes the supported codecs and configurations
- Mpeg4DecOptions Mpeg4DecOptions `xml:"http://www.onvif.org/ver10/schema Mpeg4DecOptions,omitempty"`
- Extension VideoDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // H264DecOptions type
- type H264DecOptions struct {
- // List of supported H.264 Video Resolutions
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // List of supported H264 Profiles (either baseline, main, extended or high)
- SupportedH264Profiles []H264Profile `xml:"http://www.onvif.org/ver10/schema SupportedH264Profiles,omitempty"`
- // Supported H.264 bitrate range in kbps
- SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
- // Supported H.264 framerate range in fps
- SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
- }
- // JpegDecOptions type
- type JpegDecOptions struct {
- // List of supported Jpeg Video Resolutions
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported Jpeg bitrate range in kbps
- SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
- // Supported Jpeg framerate range in fps
- SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
- }
- // Mpeg4DecOptions type
- type Mpeg4DecOptions struct {
- // List of supported Mpeg4 Video Resolutions
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // List of supported Mpeg4 Profiles (either SP or ASP)
- SupportedMpeg4Profiles []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema SupportedMpeg4Profiles,omitempty"`
- // Supported Mpeg4 bitrate range in kbps
- SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
- // Supported Mpeg4 framerate range in fps
- SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
- }
- // VideoDecoderConfigurationOptionsExtension type
- type VideoDecoderConfigurationOptionsExtension struct {
- }
- // AudioOutput type
- type AudioOutput struct {
- *DeviceEntity
- }
- // AudioOutputConfiguration type
- type AudioOutputConfiguration struct {
- *ConfigurationEntity
- // Token of the phsycial Audio output.
- OutputToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl OutputToken,omitempty"`
- //
- // An audio channel MAY support different types of audio transmission. While for full duplex
- // operation no special handling is required, in half duplex operation the transmission direction
- // needs to be switched.
- // The optional SendPrimacy parameter inside the AudioOutputConfiguration indicates which
- // direction is currently active. An NVC can switch between different modes by setting the
- // AudioOutputConfiguration.
- // The following modes for the Send-Primacy are defined:
- // Acoustic echo cancellation is out of ONVIF scope.
- SendPrimacy AnyURI `xml:"http://www.onvif.org/ver10/schema SendPrimacy,omitempty"`
- // Volume setting of the output. The applicable range is defined via the option AudioOutputOptions.OutputLevelRange.
- OutputLevel int32 `xml:"http://www.onvif.org/ver10/schema OutputLevel,omitempty"`
- }
- // AudioDecoderConfiguration type
- type AudioDecoderConfiguration struct {
- *ConfigurationEntity
- }
- // AudioDecoderConfigurationOptions type
- type AudioDecoderConfigurationOptions struct {
- // If the device is able to decode AAC encoded audio this section describes the supported configurations
- AACDecOptions AACDecOptions `xml:"http://www.onvif.org/ver10/schema AACDecOptions,omitempty"`
- // If the device is able to decode G711 encoded audio this section describes the supported configurations
- G711DecOptions G711DecOptions `xml:"http://www.onvif.org/ver10/schema G711DecOptions,omitempty"`
- // If the device is able to decode G726 encoded audio this section describes the supported configurations
- G726DecOptions G726DecOptions `xml:"http://www.onvif.org/ver10/schema G726DecOptions,omitempty"`
- Extension AudioDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // G711DecOptions type
- type G711DecOptions struct {
- // List of supported bitrates in kbps
- Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // List of supported sample rates in kHz
- SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
- }
- // AACDecOptions type
- type AACDecOptions struct {
- // List of supported bitrates in kbps
- Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // List of supported sample rates in kHz
- SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
- }
- // G726DecOptions type
- type G726DecOptions struct {
- // List of supported bitrates in kbps
- Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // List of supported sample rates in kHz
- SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
- }
- // AudioDecoderConfigurationOptionsExtension type
- type AudioDecoderConfigurationOptionsExtension struct {
- }
- // MulticastConfiguration type
- type MulticastConfiguration struct {
- // The multicast address (if this address is set to 0 no multicast streaming is enaled)
- Address IPAddress `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
- // 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.
- Port int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
- // 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.
- TTL int32 `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
- // Read only property signalling that streaming is persistant. Use the methods StartMulticastStreaming and StopMulticastStreaming to switch its state.
- AutoStart bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AutoStart,omitempty"`
- }
- // StreamSetup type
- type StreamSetup struct {
- // Defines if a multicast or unicast stream is requested
- Stream StreamType `xml:"http://www.onvif.org/ver10/schema Stream,omitempty"`
- Transport Transport `xml:"http://www.onvif.org/ver10/schema Transport,omitempty"`
- }
- // Transport type
- type Transport struct {
- // Defines the network protocol for streaming, either UDP=RTP/UDP, RTSP=RTP/RTSP/TCP or HTTP=RTP/RTSP/HTTP/TCP
- Protocol TransportProtocol `xml:"http://www.onvif.org/ver10/schema Protocol,omitempty"`
- // Optional element to describe further tunnel options. This element is normally not needed
- Tunnel *Transport `xml:"http://www.onvif.org/ver10/schema Tunnel,omitempty"`
- }
- // Scope type
- type Scope struct {
- // Indicates if the scope is fixed or configurable.
- ScopeDef ScopeDefinition `xml:"http://www.onvif.org/ver10/schema ScopeDef,omitempty"`
- // Scope item URI.
- ScopeItem AnyURI `xml:"http://www.onvif.org/ver10/schema ScopeItem,omitempty"`
- }
- // NetworkInterface type
- type NetworkInterface struct {
- *DeviceEntity
- // Indicates whether or not an interface is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // Network interface information
- Info NetworkInterfaceInfo `xml:"http://www.onvif.org/ver10/schema Info,omitempty"`
- // Link configuration.
- Link NetworkInterfaceLink `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
- // IPv4 network interface configuration.
- IPv4 IPv4NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
- // IPv6 network interface configuration.
- IPv6 IPv6NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
- Extension NetworkInterfaceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkInterfaceExtension type
- type NetworkInterfaceExtension struct {
- InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
- // Extension point prepared for future 802.3 configuration.
- Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
- Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
- Extension NetworkInterfaceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot3Configuration type
- type Dot3Configuration struct {
- }
- // NetworkInterfaceExtension2 type
- type NetworkInterfaceExtension2 struct {
- }
- // NetworkInterfaceLink type
- type NetworkInterfaceLink struct {
- // Configured link settings.
- AdminSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema AdminSettings,omitempty"`
- // Current active link settings.
- OperSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema OperSettings,omitempty"`
- // Integer indicating interface type, for example: 6 is ethernet.
- InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
- }
- // NetworkInterfaceConnectionSetting type
- type NetworkInterfaceConnectionSetting struct {
- // Auto negotiation on/off.
- AutoNegotiation bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AutoNegotiation,omitempty"`
- // Speed.
- Speed int32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
- // Duplex type, Half or Full.
- Duplex Duplex `xml:"http://www.onvif.org/ver10/schema Duplex,omitempty"`
- }
- // NetworkInterfaceInfo type
- type NetworkInterfaceInfo struct {
- // Network interface name, for example eth0.
- Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Network interface MAC address.
- HwAddress HwAddress `xml:"http://www.onvif.org/ver10/schema HwAddress,omitempty"`
- // Maximum transmission unit.
- MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
- }
- // IPv6NetworkInterface type
- type IPv6NetworkInterface struct {
- // Indicates whether or not IPv6 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // IPv6 configuration.
- Config IPv6Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
- }
- // IPv4NetworkInterface type
- type IPv4NetworkInterface struct {
- // Indicates whether or not IPv4 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // IPv4 configuration.
- Config IPv4Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
- }
- // IPv4Configuration type
- type IPv4Configuration struct {
- // List of manually added IPv4 addresses.
- Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // Link local address.
- LinkLocal PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
- // IPv4 address configured by using DHCP.
- FromDHCP PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
- // Indicates whether or not DHCP is used.
- DHCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DHCP,omitempty"`
- }
- // IPv6Configuration type
- type IPv6Configuration struct {
- // Indicates whether router advertisment is used.
- AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AcceptRouterAdvert,omitempty"`
- // DHCP configuration.
- DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
- // List of manually entered IPv6 addresses.
- Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // List of link local IPv6 addresses.
- LinkLocal []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
- // List of IPv6 addresses configured by using DHCP.
- FromDHCP []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
- // List of IPv6 addresses configured by using router advertisment.
- FromRA []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromRA,omitempty"`
- Extension IPv6ConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IPv6ConfigurationExtension type
- type IPv6ConfigurationExtension struct {
- }
- // NetworkProtocol type
- type NetworkProtocol struct {
- // Network protocol type string.
- Name NetworkProtocolType `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Indicates if the protocol is enabled or not.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // The port that is used by the protocol.
- Port []int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
- Extension NetworkProtocolExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkProtocolExtension type
- type NetworkProtocolExtension struct {
- }
- // NetworkHost type
- type NetworkHost struct {
- // Network host type: IPv4, IPv6 or DNS.
- Type NetworkHostType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // IPv4 address.
- IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
- // IPv6 address.
- IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
- // DNS name.
- DNSname DNSName `xml:"http://www.onvif.org/ver10/schema DNSname,omitempty"`
- Extension NetworkHostExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkHostExtension type
- type NetworkHostExtension struct {
- }
- // IPAddress type
- type IPAddress struct {
- // Indicates if the address is an IPv4 or IPv6 address.
- Type IPType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // IPv4 address.
- IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
- // IPv6 address
- IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
- }
- // PrefixedIPv4Address type
- type PrefixedIPv4Address struct {
- // IPv4 address
- Address IPv4Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
- // Prefix/submask length
- PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
- }
- // PrefixedIPv6Address type
- type PrefixedIPv6Address struct {
- // IPv6 address
- Address IPv6Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
- // Prefix/submask length
- PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
- }
- // HostnameInformation type
- type HostnameInformation struct {
- // Indicates whether the hostname is obtained from DHCP or not.
- FromDHCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl FromDHCP,omitempty"`
- // Indicates the hostname.
- Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- Extension HostnameInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // HostnameInformationExtension type
- type HostnameInformationExtension struct {
- }
- // DNSInformation type
- type DNSInformation struct {
- // Indicates whether or not DNS information is retrieved from DHCP.
- FromDHCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl FromDHCP,omitempty"`
- // Search domain.
- SearchDomain []string `xml:"http://www.onvif.org/ver10/schema SearchDomain,omitempty"`
- // List of DNS addresses received from DHCP.
- DNSFromDHCP []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSFromDHCP,omitempty"`
- // List of manually entered DNS addresses.
- DNSManual []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSManual,omitempty"`
- Extension DNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DNSInformationExtension type
- type DNSInformationExtension struct {
- }
- // NTPInformation type
- type NTPInformation struct {
- // Indicates if NTP information is to be retrieved by using DHCP.
- FromDHCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl FromDHCP,omitempty"`
- // List of NTP addresses retrieved by using DHCP.
- NTPFromDHCP []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPFromDHCP,omitempty"`
- // List of manually entered NTP addresses.
- NTPManual []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPManual,omitempty"`
- Extension NTPInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NTPInformationExtension type
- type NTPInformationExtension struct {
- }
- // DynamicDNSInformation type
- type DynamicDNSInformation struct {
- // Dynamic DNS type.
- Type DynamicDNSType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // DNS name.
- Name DNSName `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Time to live.
- TTL Duration `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
- Extension DynamicDNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DynamicDNSInformationExtension type
- type DynamicDNSInformationExtension struct {
- }
- // NetworkInterfaceSetConfiguration type
- type NetworkInterfaceSetConfiguration struct {
- // Indicates whether or not an interface is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // Link configuration.
- Link NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
- // Maximum transmission unit.
- MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
- // IPv4 network interface configuration.
- IPv4 IPv4NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
- // IPv6 network interface configuration.
- IPv6 IPv6NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
- Extension NetworkInterfaceSetConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkInterfaceSetConfigurationExtension type
- type NetworkInterfaceSetConfigurationExtension struct {
- Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
- Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
- Extension NetworkInterfaceSetConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IPv6NetworkInterfaceSetConfiguration type
- type IPv6NetworkInterfaceSetConfiguration struct {
- // Indicates whether or not IPv6 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // Indicates whether router advertisment is used.
- AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AcceptRouterAdvert,omitempty"`
- // List of manually added IPv6 addresses.
- Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // DHCP configuration.
- DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
- }
- // IPv4NetworkInterfaceSetConfiguration type
- type IPv4NetworkInterfaceSetConfiguration struct {
- // Indicates whether or not IPv4 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // List of manually added IPv4 addresses.
- Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // Indicates whether or not DHCP is used.
- DHCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DHCP,omitempty"`
- }
- // NetworkZeroConfiguration type
- type NetworkZeroConfiguration struct {
- // Unique identifier of network interface.
- InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl InterfaceToken,omitempty"`
- // Indicates whether the zero-configuration is enabled or not.
- Enabled bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Enabled,omitempty"`
- // The zero-configuration IPv4 address(es)
- Addresses []IPv4Address `xml:"http://www.onvif.org/ver10/schema Addresses,omitempty"`
- Extension *NetworkZeroConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkZeroConfigurationExtension type
- type NetworkZeroConfigurationExtension struct {
- // Optional array holding the configuration for the second and possibly further interfaces.
- Additional []NetworkZeroConfiguration `xml:"http://www.onvif.org/ver10/schema Additional,omitempty"`
- Extension NetworkZeroConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkZeroConfigurationExtension2 type
- type NetworkZeroConfigurationExtension2 struct {
- }
- // IPAddressFilter type
- type IPAddressFilter struct {
- Type IPAddressFilterType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- IPv4Address []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
- IPv6Address []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
- Extension IPAddressFilterExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IPAddressFilterExtension type
- type IPAddressFilterExtension struct {
- }
- // Dot11Configuration type
- type Dot11Configuration struct {
- SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
- Mode Dot11StationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Alias Name `xml:"http://www.onvif.org/ver10/schema Alias,omitempty"`
- Priority NetworkInterfaceConfigPriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- Security Dot11SecurityConfiguration `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
- }
- // Dot11SecurityConfiguration type
- type Dot11SecurityConfiguration struct {
- Mode Dot11SecurityMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Algorithm Dot11Cipher `xml:"http://www.onvif.org/ver10/schema Algorithm,omitempty"`
- PSK Dot11PSKSet `xml:"http://www.onvif.org/ver10/schema PSK,omitempty"`
- Dot1X ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl Dot1X,omitempty"`
- Extension Dot11SecurityConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot11SecurityConfigurationExtension type
- type Dot11SecurityConfigurationExtension struct {
- }
- // Dot11PSKSet type
- type Dot11PSKSet struct {
- //
- // According to IEEE802.11-2007 H.4.1 the RSNA PSK consists of 256 bits, or 64 octets when represented in hex
- // Either Key or Passphrase shall be given, if both are supplied Key shall be used by the device and Passphrase ignored.
- //
- Key Dot11PSK `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
- //
- // According to IEEE802.11-2007 H.4.1 a pass-phrase is a sequence of between 8 and 63 ASCII-encoded characters and
- // each character in the pass-phrase must have an encoding in the range of 32 to 126 (decimal),inclusive.
- // If only Passpharse is supplied the Key shall be derived using the algorithm described in IEEE802.11-2007 section H.4
- //
- Passphrase Dot11PSKPassphrase `xml:"http://www.onvif.org/ver10/schema Passphrase,omitempty"`
- Extension Dot11PSKSetExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot11PSKSetExtension type
- type Dot11PSKSetExtension struct {
- }
- // NetworkInterfaceSetConfigurationExtension2 type
- type NetworkInterfaceSetConfigurationExtension2 struct {
- }
- // Dot11AvailableNetworks type
- type Dot11AvailableNetworks struct {
- SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
- BSSID string `xml:"http://www.onvif.org/ver10/schema BSSID,omitempty"`
- // See IEEE802.11 7.3.2.25.2 for details.
- AuthAndMangementSuite []Dot11AuthAndMangementSuite `xml:"http://www.onvif.org/ver10/schema AuthAndMangementSuite,omitempty"`
- PairCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema PairCipher,omitempty"`
- GroupCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema GroupCipher,omitempty"`
- SignalStrength Dot11SignalStrength `xml:"http://www.onvif.org/ver10/schema SignalStrength,omitempty"`
- Extension Dot11AvailableNetworksExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot11AvailableNetworksExtension type
- type Dot11AvailableNetworksExtension struct {
- }
- /* Removed type Capabilities struct {
- // Analytics capabilities
- Analytics AnalyticsCapabilities `xml:"http://www.onvif.org/ver10/schema Analytics,omitempty"`
- // Device capabilities
- Device DeviceCapabilities `xml:"http://www.onvif.org/ver10/schema Device,omitempty"`
- // Event capabilities
- Events EventCapabilities `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
- // Imaging capabilities
- Imaging ImagingCapabilities `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
- // Media capabilities
- Media MediaCapabilities `xml:"http://www.onvif.org/ver10/schema Media,omitempty"`
- // PTZ capabilities
- PTZ PTZCapabilities `xml:"http://www.onvif.org/ver10/schema PTZ,omitempty"`
- Extension CapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- } Removed*/
- // CapabilitiesExtension type
- type CapabilitiesExtension struct {
- DeviceIO DeviceIOCapabilities `xml:"http://www.onvif.org/ver10/schema DeviceIO,omitempty"`
- Display DisplayCapabilities `xml:"http://www.onvif.org/ver10/schema Display,omitempty"`
- Recording RecordingCapabilities `xml:"http://www.onvif.org/ver10/schema Recording,omitempty"`
- Search SearchCapabilities `xml:"http://www.onvif.org/ver10/schema Search,omitempty"`
- Replay ReplayCapabilities `xml:"http://www.onvif.org/ver10/schema Replay,omitempty"`
- Receiver ReceiverCapabilities `xml:"http://www.onvif.org/ver10/schema Receiver,omitempty"`
- AnalyticsDevice AnalyticsDeviceCapabilities `xml:"http://www.onvif.org/ver10/schema AnalyticsDevice,omitempty"`
- Extensions CapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extensions,omitempty"`
- }
- // CapabilitiesExtension2 type
- type CapabilitiesExtension2 struct {
- }
- // AnalyticsCapabilities type
- type AnalyticsCapabilities struct {
- // Analytics service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indicates whether or not rules are supported.
- RuleSupport bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RuleSupport,omitempty"`
- // Indicates whether or not modules are supported.
- AnalyticsModuleSupport bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AnalyticsModuleSupport,omitempty"`
- }
- // DeviceCapabilities type
- type DeviceCapabilities struct {
- // Device service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Network capabilities.
- Network NetworkCapabilities `xml:"http://www.onvif.org/ver10/schema Network,omitempty"`
- // System capabilities.
- System SystemCapabilities `xml:"http://www.onvif.org/ver10/schema System,omitempty"`
- // I/O capabilities.
- IO IOCapabilities `xml:"http://www.onvif.org/ver10/schema IO,omitempty"`
- // Security capabilities.
- Security SecurityCapabilities `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
- Extension DeviceCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DeviceCapabilitiesExtension type
- type DeviceCapabilitiesExtension struct {
- }
- // EventCapabilities type
- type EventCapabilities struct {
- // Event service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indicates whether or not WS Subscription policy is supported.
- WSSubscriptionPolicySupport bool `xml:"http://www.onvif.org/ver10/receiver/wsdl WSSubscriptionPolicySupport,omitempty"`
- // Indicates whether or not WS Pull Point is supported.
- WSPullPointSupport bool `xml:"http://www.onvif.org/ver10/receiver/wsdl WSPullPointSupport,omitempty"`
- // Indicates whether or not WS Pausable Subscription Manager Interface is supported.
- WSPausableSubscriptionManagerInterfaceSupport bool `xml:"http://www.onvif.org/ver10/receiver/wsdl WSPausableSubscriptionManagerInterfaceSupport,omitempty"`
- }
- // IOCapabilities type
- type IOCapabilities struct {
- // Number of input connectors.
- InputConnectors int32 `xml:"http://www.onvif.org/ver10/schema InputConnectors,omitempty"`
- // Number of relay outputs.
- RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
- Extension IOCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IOCapabilitiesExtension type
- type IOCapabilitiesExtension struct {
- Auxiliary bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Auxiliary,omitempty"`
- AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
- Extension IOCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IOCapabilitiesExtension2 type
- type IOCapabilitiesExtension2 struct {
- }
- // MediaCapabilities type
- type MediaCapabilities struct {
- // Media service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Streaming capabilities.
- StreamingCapabilities RealTimeStreamingCapabilities `xml:"http://www.onvif.org/ver10/schema StreamingCapabilities,omitempty"`
- Extension MediaCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // MediaCapabilitiesExtension type
- type MediaCapabilitiesExtension struct {
- ProfileCapabilities ProfileCapabilities `xml:"http://www.onvif.org/ver10/schema ProfileCapabilities,omitempty"`
- }
- // RealTimeStreamingCapabilities type
- type RealTimeStreamingCapabilities struct {
- // Indicates whether or not RTP multicast is supported.
- RTPMulticast bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTPMulticast,omitempty"`
- // Indicates whether or not RTP over TCP is supported.
- RTP_TCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_TCP,omitempty"`
- // Indicates whether or not RTP/RTSP/TCP is supported.
- RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_RTSP_TCP,omitempty"`
- Extension RealTimeStreamingCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RealTimeStreamingCapabilitiesExtension type
- type RealTimeStreamingCapabilitiesExtension struct {
- }
- // ProfileCapabilities type
- type ProfileCapabilities struct {
- // Maximum number of profiles.
- MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,omitempty"`
- }
- // NetworkCapabilities type
- type NetworkCapabilities struct {
- // Indicates whether or not IP filtering is supported.
- IPFilter bool `xml:"http://www.onvif.org/ver10/receiver/wsdl IPFilter,omitempty"`
- // Indicates whether or not zeroconf is supported.
- ZeroConfiguration bool `xml:"http://www.onvif.org/ver10/receiver/wsdl ZeroConfiguration,omitempty"`
- // Indicates whether or not IPv6 is supported.
- IPVersion6 bool `xml:"http://www.onvif.org/ver10/receiver/wsdl IPVersion6,omitempty"`
- // Indicates whether or not is supported.
- DynDNS bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DynDNS,omitempty"`
- Extension NetworkCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkCapabilitiesExtension type
- type NetworkCapabilitiesExtension struct {
- Dot11Configuration bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Dot11Configuration,omitempty"`
- Extension NetworkCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkCapabilitiesExtension2 type
- type NetworkCapabilitiesExtension2 struct {
- }
- // SecurityCapabilities type
- type SecurityCapabilities struct {
- // Indicates whether or not TLS 1.1 is supported.
- TLS11 bool `xml:"TLS1.1,omitempty"`
- // Indicates whether or not TLS 1.2 is supported.
- TLS12 bool `xml:"TLS1.2,omitempty"`
- // Indicates whether or not onboard key generation is supported.
- OnboardKeyGeneration bool `xml:"http://www.onvif.org/ver10/receiver/wsdl OnboardKeyGeneration,omitempty"`
- // Indicates whether or not access policy configuration is supported.
- AccessPolicyConfig bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AccessPolicyConfig,omitempty"`
- // Indicates whether or not WS-Security X.509 token is supported.
- X509Token bool `xml:"X.509Token,omitempty"`
- // Indicates whether or not WS-Security SAML token is supported.
- SAMLToken bool `xml:"http://www.onvif.org/ver10/receiver/wsdl SAMLToken,omitempty"`
- // Indicates whether or not WS-Security Kerberos token is supported.
- KerberosToken bool `xml:"http://www.onvif.org/ver10/receiver/wsdl KerberosToken,omitempty"`
- // Indicates whether or not WS-Security REL token is supported.
- RELToken bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RELToken,omitempty"`
- Extension SecurityCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SecurityCapabilitiesExtension type
- type SecurityCapabilitiesExtension struct {
- TLS10 bool `xml:"TLS1.0,omitempty"`
- Extension SecurityCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SecurityCapabilitiesExtension2 type
- type SecurityCapabilitiesExtension2 struct {
- Dot1X bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Dot1X,omitempty"`
- // EAP Methods supported by the device. The int values refer to the .
- SupportedEAPMethod []int32 `xml:"http://www.onvif.org/ver10/schema SupportedEAPMethod,omitempty"`
- RemoteUserHandling bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RemoteUserHandling,omitempty"`
- }
- // SystemCapabilities type
- type SystemCapabilities struct {
- // Indicates whether or not WS Discovery resolve requests are supported.
- DiscoveryResolve bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DiscoveryResolve,omitempty"`
- // Indicates whether or not WS-Discovery Bye is supported.
- DiscoveryBye bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DiscoveryBye,omitempty"`
- // Indicates whether or not remote discovery is supported.
- RemoteDiscovery bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RemoteDiscovery,omitempty"`
- // Indicates whether or not system backup is supported.
- SystemBackup bool `xml:"http://www.onvif.org/ver10/receiver/wsdl SystemBackup,omitempty"`
- // Indicates whether or not system logging is supported.
- SystemLogging bool `xml:"http://www.onvif.org/ver10/receiver/wsdl SystemLogging,omitempty"`
- // Indicates whether or not firmware upgrade is supported.
- FirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/receiver/wsdl FirmwareUpgrade,omitempty"`
- // Indicates supported ONVIF version(s).
- SupportedVersions []OnvifVersion `xml:"http://www.onvif.org/ver10/schema SupportedVersions,omitempty"`
- Extension SystemCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SystemCapabilitiesExtension type
- type SystemCapabilitiesExtension struct {
- HttpFirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/receiver/wsdl HttpFirmwareUpgrade,omitempty"`
- HttpSystemBackup bool `xml:"http://www.onvif.org/ver10/receiver/wsdl HttpSystemBackup,omitempty"`
- HttpSystemLogging bool `xml:"http://www.onvif.org/ver10/receiver/wsdl HttpSystemLogging,omitempty"`
- HttpSupportInformation bool `xml:"http://www.onvif.org/ver10/receiver/wsdl HttpSupportInformation,omitempty"`
- Extension SystemCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SystemCapabilitiesExtension2 type
- type SystemCapabilitiesExtension2 struct {
- }
- // OnvifVersion type
- type OnvifVersion struct {
- // Major version number.
- Major int32 `xml:"http://www.onvif.org/ver10/schema Major,omitempty"`
- //
- // Two digit minor version number.
- // 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.
- // Otherwise, minor number is month of release, such as "06" for June.
- //
- Minor int32 `xml:"http://www.onvif.org/ver10/schema Minor,omitempty"`
- }
- // ImagingCapabilities type
- type ImagingCapabilities struct {
- // Imaging service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- }
- // PTZCapabilities type
- type PTZCapabilities struct {
- // PTZ service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- }
- // DeviceIOCapabilities type
- type DeviceIOCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- VideoSources int32 `xml:"http://www.onvif.org/ver10/schema VideoSources,omitempty"`
- VideoOutputs int32 `xml:"http://www.onvif.org/ver10/schema VideoOutputs,omitempty"`
- AudioSources int32 `xml:"http://www.onvif.org/ver10/schema AudioSources,omitempty"`
- AudioOutputs int32 `xml:"http://www.onvif.org/ver10/schema AudioOutputs,omitempty"`
- RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
- }
- // DisplayCapabilities type
- type DisplayCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indication that the SetLayout command supports only predefined layouts.
- FixedLayout bool `xml:"http://www.onvif.org/ver10/receiver/wsdl FixedLayout,omitempty"`
- }
- // RecordingCapabilities type
- type RecordingCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- ReceiverSource bool `xml:"http://www.onvif.org/ver10/receiver/wsdl ReceiverSource,omitempty"`
- MediaProfileSource bool `xml:"http://www.onvif.org/ver10/receiver/wsdl MediaProfileSource,omitempty"`
- DynamicRecordings bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DynamicRecordings,omitempty"`
- DynamicTracks bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DynamicTracks,omitempty"`
- MaxStringLength int32 `xml:"http://www.onvif.org/ver10/schema MaxStringLength,omitempty"`
- }
- // SearchCapabilities type
- type SearchCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- MetadataSearch bool `xml:"http://www.onvif.org/ver10/receiver/wsdl MetadataSearch,omitempty"`
- }
- // ReplayCapabilities type
- type ReplayCapabilities struct {
- // The address of the replay service.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- }
- // ReceiverCapabilities type
- type ReceiverCapabilities struct {
- // The address of the receiver service.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indicates whether the device can receive RTP multicast streams.
- RTP_Multicast bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_Multicast,omitempty"`
- // Indicates whether the device can receive RTP/TCP streams
- RTP_TCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_TCP,omitempty"`
- // Indicates whether the device can receive RTP/RTSP/TCP streams.
- RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RTP_RTSP_TCP,omitempty"`
- // The maximum number of receivers supported by the device.
- SupportedReceivers int32 `xml:"http://www.onvif.org/ver10/schema SupportedReceivers,omitempty"`
- // The maximum allowed length for RTSP URIs.
- MaximumRTSPURILength int32 `xml:"http://www.onvif.org/ver10/schema MaximumRTSPURILength,omitempty"`
- }
- // AnalyticsDeviceCapabilities type
- type AnalyticsDeviceCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Obsolete property.
- RuleSupport bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RuleSupport,omitempty"`
- Extension AnalyticsDeviceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsDeviceExtension type
- type AnalyticsDeviceExtension struct {
- }
- // BinaryData type
- type BinaryData struct {
- // base64 encoded binary data.
- Data []byte `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
- ContentType string `xml:"contentType,attr,omitempty"`
- }
- // SystemDateTime type
- type SystemDateTime struct {
- // Indicates if the time is set manully or through NTP.
- DateTimeType SetDateTimeType `xml:"http://www.onvif.org/ver10/schema DateTimeType,omitempty"`
- // Informative indicator whether daylight savings is currently on/off.
- DaylightSavings bool `xml:"http://www.onvif.org/ver10/receiver/wsdl DaylightSavings,omitempty"`
- // Timezone information in Posix format.
- TimeZone TimeZone `xml:"http://www.onvif.org/ver10/schema TimeZone,omitempty"`
- // Current system date and time in UTC format. This field is mandatory since version 2.0.
- UTCDateTime string `xml:"http://www.onvif.org/ver10/schema UTCDateTime,omitempty"`
- // Date and time in local format.
- LocalDateTime string `xml:"http://www.onvif.org/ver10/schema LocalDateTime,omitempty"`
- Extension SystemDateTimeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SystemDateTimeExtension type
- type SystemDateTimeExtension struct {
- }
- // DateTime type
- type DateTime struct {
- Time string `xml:"http://www.onvif.org/ver10/schema Time,omitempty"`
- Date string `xml:"http://www.onvif.org/ver10/schema Date,omitempty"`
- }
- // Date type
- type Date struct {
- Year int32 `xml:"http://www.onvif.org/ver10/schema Year,omitempty"`
- // Range is 1 to 12.
- Month int32 `xml:"http://www.onvif.org/ver10/schema Month,omitempty"`
- // Range is 1 to 31.
- Day int32 `xml:"http://www.onvif.org/ver10/schema Day,omitempty"`
- }
- // Time type
- type Time struct {
- // Range is 0 to 23.
- Hour int32 `xml:"http://www.onvif.org/ver10/schema Hour,omitempty"`
- // Range is 0 to 59.
- Minute int32 `xml:"http://www.onvif.org/ver10/schema Minute,omitempty"`
- // Range is 0 to 61 (typically 59).
- Second int32 `xml:"http://www.onvif.org/ver10/schema Second,omitempty"`
- }
- // TimeZone type
- type TimeZone struct {
- // Posix timezone string.
- TZ string `xml:"http://www.onvif.org/ver10/schema TZ,omitempty"`
- }
- // User type
- type User struct {
- // Username string.
- Username string `xml:"http://www.onvif.org/ver10/schema Username,omitempty"`
- // Password string.
- Password string `xml:"http://www.onvif.org/ver10/schema Password,omitempty"`
- // User level string.
- UserLevel UserLevel `xml:"http://www.onvif.org/ver10/schema UserLevel,omitempty"`
- Extension UserExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // UserExtension type
- type UserExtension struct {
- }
- // CertificateGenerationParameters type
- type CertificateGenerationParameters struct {
- CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
- Subject string `xml:"http://www.onvif.org/ver10/schema Subject,omitempty"`
- ValidNotBefore string `xml:"http://www.onvif.org/ver10/schema ValidNotBefore,omitempty"`
- ValidNotAfter string `xml:"http://www.onvif.org/ver10/schema ValidNotAfter,omitempty"`
- Extension CertificateGenerationParametersExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // CertificateGenerationParametersExtension type
- type CertificateGenerationParametersExtension struct {
- }
- // Certificate type
- type Certificate struct {
- // Certificate id.
- CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
- // base64 encoded DER representation of certificate.
- Certificate BinaryData `xml:"http://www.onvif.org/ver10/schema Certificate,omitempty"`
- }
- // CertificateInformation type
- type CertificateInformation struct {
- CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
- IssuerDN string `xml:"http://www.onvif.org/ver10/schema IssuerDN,omitempty"`
- SubjectDN string `xml:"http://www.onvif.org/ver10/schema SubjectDN,omitempty"`
- KeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema KeyUsage,omitempty"`
- ExtendedKeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema ExtendedKeyUsage,omitempty"`
- KeyLength int32 `xml:"http://www.onvif.org/ver10/schema KeyLength,omitempty"`
- Version string `xml:"http://www.onvif.org/ver10/schema Version,omitempty"`
- SerialNum string `xml:"http://www.onvif.org/ver10/schema SerialNum,omitempty"`
- // Validity Range is from "NotBefore" to "NotAfter"; the corresponding DateTimeRange is from "From" to "Until"
- SignatureAlgorithm string `xml:"http://www.onvif.org/ver10/schema SignatureAlgorithm,omitempty"`
- Validity DateTimeRange `xml:"http://www.onvif.org/ver10/schema Validity,omitempty"`
- Extension CertificateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // CertificateUsage type
- type CertificateUsage struct {
- Value string
- Critical bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Critical,attr,omitempty"`
- }
- // CertificateInformationExtension type
- type CertificateInformationExtension struct {
- }
- // Dot1XConfiguration type
- type Dot1XConfiguration struct {
- Dot1XConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl Dot1XConfigurationToken,omitempty"`
- Identity string `xml:"http://www.onvif.org/ver10/schema Identity,omitempty"`
- AnonymousID string `xml:"http://www.onvif.org/ver10/schema AnonymousID,omitempty"`
- //
- // EAP Method type as defined in .
- //
- EAPMethod int32 `xml:"http://www.onvif.org/ver10/schema EAPMethod,omitempty"`
- CACertificateID []string `xml:"http://www.onvif.org/ver10/schema CACertificateID,omitempty"`
- EAPMethodConfiguration EAPMethodConfiguration `xml:"http://www.onvif.org/ver10/schema EAPMethodConfiguration,omitempty"`
- Extension Dot1XConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot1XConfigurationExtension type
- type Dot1XConfigurationExtension struct {
- }
- // EAPMethodConfiguration type
- type EAPMethodConfiguration struct {
- // Confgiuration information for TLS Method.
- TLSConfiguration TLSConfiguration `xml:"http://www.onvif.org/ver10/schema TLSConfiguration,omitempty"`
- // Password for those EAP Methods that require a password. The password shall never be returned on a get method.
- Password string `xml:"http://www.onvif.org/ver10/schema Password,omitempty"`
- Extension EapMethodExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // EapMethodExtension type
- type EapMethodExtension struct {
- }
- // TLSConfiguration type
- type TLSConfiguration struct {
- CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
- }
- // RelayOutputSettings type
- type RelayOutputSettings struct {
- //
- // 'Bistable' or 'Monostable'
- //
- //
- Mode RelayMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // 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.
- DelayTime Duration `xml:"http://www.onvif.org/ver10/schema DelayTime,omitempty"`
- //
- // 'open' or 'closed'
- //
- //
- IdleState RelayIdleState `xml:"http://www.onvif.org/ver10/schema IdleState,omitempty"`
- }
- // RelayOutput type
- type RelayOutput struct {
- *DeviceEntity
- Properties RelayOutputSettings `xml:"http://www.onvif.org/ver10/schema Properties,omitempty"`
- }
- // PTZNode type
- type PTZNode struct {
- *DeviceEntity
- //
- // A unique identifier that is used to reference PTZ Nodes.
- //
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- //
- // A list of Coordinate Systems available for the PTZ Node. For each Coordinate System, the PTZ Node MUST specify its allowed range.
- //
- SupportedPTZSpaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema SupportedPTZSpaces,omitempty"`
- //
- // All preset operations MUST be available for this PTZ Node if one preset is supported.
- //
- MaximumNumberOfPresets int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresets,omitempty"`
- //
- // 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.
- //
- HomeSupported bool `xml:"http://www.onvif.org/ver10/receiver/wsdl HomeSupported,omitempty"`
- //
- // A list of supported Auxiliary commands. If the list is not empty, the Auxiliary Operations MUST be available for this PTZ Node.
- //
- AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
- Extension PTZNodeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- //
- // Indication whether the HomePosition of a Node is fixed or it can be changed via the SetHomePosition command.
- //
- FixedHomePosition bool `xml:"http://www.onvif.org/ver10/receiver/wsdl FixedHomePosition,attr,omitempty"`
- //
- // Indication whether the Node supports the geo-referenced move command.
- //
- GeoMove bool `xml:"http://www.onvif.org/ver10/receiver/wsdl GeoMove,attr,omitempty"`
- }
- // PTZNodeExtension type
- type PTZNodeExtension struct {
- //
- // Detail of supported Preset Tour feature.
- //
- SupportedPresetTour PTZPresetTourSupported `xml:"http://www.onvif.org/ver10/schema SupportedPresetTour,omitempty"`
- Extension PTZNodeExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZNodeExtension2 type
- type PTZNodeExtension2 struct {
- }
- // PTZPresetTourSupported type
- type PTZPresetTourSupported struct {
- // 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.
- MaximumNumberOfPresetTours int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresetTours,omitempty"`
- // Indicates which preset tour operations are available for this PTZ Node.
- PTZPresetTourOperation []PTZPresetTourOperation `xml:"http://www.onvif.org/ver10/schema PTZPresetTourOperation,omitempty"`
- Extension PTZPresetTourSupportedExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourSupportedExtension type
- type PTZPresetTourSupportedExtension struct {
- }
- // PTZConfiguration type
- type PTZConfiguration struct {
- *ConfigurationEntity
- //
- // A mandatory reference to the PTZ Node that the PTZ Configuration belongs to.
- //
- NodeToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl NodeToken,omitempty"`
- //
- // If the PTZ Node supports absolute Pan/Tilt movements, it shall specify one Absolute Pan/Tilt Position Space as default.
- //
- DefaultAbsolutePantTiltPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsolutePantTiltPositionSpace,omitempty"`
- //
- // If the PTZ Node supports absolute zoom movements, it shall specify one Absolute Zoom Position Space as default.
- //
- DefaultAbsoluteZoomPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsoluteZoomPositionSpace,omitempty"`
- //
- // If the PTZ Node supports relative Pan/Tilt movements, it shall specify one RelativePan/Tilt Translation Space as default.
- //
- DefaultRelativePanTiltTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativePanTiltTranslationSpace,omitempty"`
- //
- // If the PTZ Node supports relative zoom movements, it shall specify one Relative Zoom Translation Space as default.
- //
- DefaultRelativeZoomTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativeZoomTranslationSpace,omitempty"`
- //
- // If the PTZ Node supports continuous Pan/Tilt movements, it shall specify one Continuous Pan/Tilt Velocity Space as default.
- //
- DefaultContinuousPanTiltVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousPanTiltVelocitySpace,omitempty"`
- //
- // If the PTZ Node supports continuous zoom movements, it shall specify one Continuous Zoom Velocity Space as default.
- //
- DefaultContinuousZoomVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousZoomVelocitySpace,omitempty"`
- //
- // If the PTZ Node supports absolute or relative PTZ movements, it shall specify corresponding default Pan/Tilt and Zoom speeds.
- //
- DefaultPTZSpeed PTZSpeed `xml:"http://www.onvif.org/ver10/schema DefaultPTZSpeed,omitempty"`
- //
- // If the PTZ Node supports continuous movements, it shall specify a default timeout, after which the movement stops.
- //
- DefaultPTZTimeout Duration `xml:"http://www.onvif.org/ver10/schema DefaultPTZTimeout,omitempty"`
- //
- // 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.
- //
- PanTiltLimits PanTiltLimits `xml:"http://www.onvif.org/ver10/schema PanTiltLimits,omitempty"`
- //
- // 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.
- //
- ZoomLimits ZoomLimits `xml:"http://www.onvif.org/ver10/schema ZoomLimits,omitempty"`
- Extension PTZConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // The optional acceleration ramp used by the device when moving.
- MoveRamp int32 `xml:"http://www.onvif.org/ver10/schema MoveRamp,attr,omitempty"`
- // The optional acceleration ramp used by the device when recalling presets.
- PresetRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetRamp,attr,omitempty"`
- // The optional acceleration ramp used by the device when executing PresetTours.
- PresetTourRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetTourRamp,attr,omitempty"`
- }
- // PTZConfigurationExtension type
- type PTZConfigurationExtension struct {
- // Optional element to configure PT Control Direction related features.
- PTControlDirection PTControlDirection `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
- Extension PTZConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZConfigurationExtension2 type
- type PTZConfigurationExtension2 struct {
- }
- // PTControlDirection type
- type PTControlDirection struct {
- // Optional element to configure related parameters for E-Flip.
- EFlip EFlip `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
- // Optional element to configure related parameters for reversing of PT Control Direction.
- Reverse Reverse `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
- Extension PTControlDirectionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTControlDirectionExtension type
- type PTControlDirectionExtension struct {
- }
- // EFlip type
- type EFlip struct {
- // Parameter to enable/disable E-Flip feature.
- Mode EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- }
- // Reverse type
- type Reverse struct {
- // Parameter to enable/disable Reverse feature.
- Mode ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- }
- // PTZConfigurationOptions type
- type PTZConfigurationOptions struct {
- //
- // A list of supported coordinate systems including their range limitations.
- //
- Spaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema Spaces,omitempty"`
- //
- // A timeout Range within which Timeouts are accepted by the PTZ Node.
- //
- PTZTimeout DurationRange `xml:"http://www.onvif.org/ver10/schema PTZTimeout,omitempty"`
- // Supported options for PT Direction Control.
- PTControlDirection PTControlDirectionOptions `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
- Extension PTZConfigurationOptions2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- //
- // The list of acceleration ramps supported by the device. The
- // smallest acceleration value corresponds to the minimal index, the
- // highest acceleration corresponds to the maximum index.
- //
- PTZRamps IntAttrList `xml:"http://www.onvif.org/ver10/schema PTZRamps,attr,omitempty"`
- }
- // PTZConfigurationOptions2 type
- type PTZConfigurationOptions2 struct {
- }
- // PTControlDirectionOptions type
- type PTControlDirectionOptions struct {
- // Supported options for EFlip feature.
- EFlip EFlipOptions `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
- // Supported options for Reverse feature.
- Reverse ReverseOptions `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
- Extension PTControlDirectionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTControlDirectionOptionsExtension type
- type PTControlDirectionOptionsExtension struct {
- }
- // EFlipOptions type
- type EFlipOptions struct {
- // Options of EFlip mode parameter.
- Mode []EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Extension EFlipOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // EFlipOptionsExtension type
- type EFlipOptionsExtension struct {
- }
- // ReverseOptions type
- type ReverseOptions struct {
- // Options of Reverse mode parameter.
- Mode []ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Extension ReverseOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ReverseOptionsExtension type
- type ReverseOptionsExtension struct {
- }
- // PanTiltLimits type
- type PanTiltLimits struct {
- //
- // A range of pan tilt limits.
- //
- Range Space2DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
- }
- // ZoomLimits type
- type ZoomLimits struct {
- //
- // A range of zoom limit
- //
- Range Space1DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
- }
- // PTZSpaces type
- type PTZSpaces struct {
- //
- // 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.
- // 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.
- //
- AbsolutePanTiltPositionSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema AbsolutePanTiltPositionSpace,omitempty"`
- //
- // 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.
- // Instead, the range should be defined as the full range of the Zoom normalized to the range 0 (wide) to 1 (tele).
- // There is no assumption about how the generic zoom range is mapped to magnification, FOV or other physical zoom dimension.
- //
- AbsoluteZoomPositionSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema AbsoluteZoomPositionSpace,omitempty"`
- //
- // 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.
- // 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,
- // where positive translation would mean clockwise rotation or movement in right/up direction resulting in the following space description.
- //
- RelativePanTiltTranslationSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema RelativePanTiltTranslationSpace,omitempty"`
- //
- // 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.
- // 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,
- // 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).
- // 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.
- //
- RelativeZoomTranslationSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema RelativeZoomTranslationSpace,omitempty"`
- //
- // The generic Pan/Tilt velocity space shall be provided by every PTZ node, since it does not relate to a specific physical range.
- // 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
- // 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.
- //
- ContinuousPanTiltVelocitySpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousPanTiltVelocitySpace,omitempty"`
- //
- // 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,
- // where a positive velocity would map to TELE direction. A generic zoom velocity space description resembles the following.
- //
- ContinuousZoomVelocitySpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousZoomVelocitySpace,omitempty"`
- //
- // The speed space specifies the speed for a Pan/Tilt movement when moving to an absolute position or to a relative translation.
- // In contrast to the velocity spaces, speed spaces do not contain any directional information. The speed of a combined Pan/Tilt
- // movement is represented by a single non-negative scalar value.
- //
- PanTiltSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltSpeedSpace,omitempty"`
- //
- // The speed space specifies the speed for a Zoom movement when moving to an absolute position or to a relative translation.
- // In contrast to the velocity spaces, speed spaces do not contain any directional information.
- //
- ZoomSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomSpeedSpace,omitempty"`
- Extension PTZSpacesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZSpacesExtension type
- type PTZSpacesExtension struct {
- }
- // Space2DDescription type
- type Space2DDescription struct {
- //
- // A URI of coordinate systems.
- //
- URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
- //
- // A range of x-axis.
- //
- XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
- //
- // A range of y-axis.
- //
- YRange FloatRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
- }
- // Space1DDescription type
- type Space1DDescription struct {
- //
- // A URI of coordinate systems.
- //
- URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
- //
- // A range of x-axis.
- //
- XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
- }
- // PTZSpeed type
- type PTZSpeed struct {
- // 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.
- PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
- //
- // A zoom speed. If omitted in a request, the current (if any) Zoom movement should not be affected.
- //
- Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
- }
- // PTZPreset type
- type PTZPreset struct {
- //
- // A list of preset position name.
- //
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- //
- // A list of preset position.
- //
- PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
- Token ReferenceToken `xml:"token,attr,omitempty"`
- }
- // PTZPresetTourSpot type
- type PTZPresetTourSpot struct {
- // Detail definition of preset position of the tour spot.
- PresetDetail PTZPresetTourPresetDetail `xml:"http://www.onvif.org/ver10/schema PresetDetail,omitempty"`
- // Optional parameter to specify Pan/Tilt and Zoom speed on moving toward this tour spot.
- Speed PTZSpeed `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
- // Optional parameter to specify time duration of staying on this tour sport.
- StayTime Duration `xml:"http://www.onvif.org/ver10/schema StayTime,omitempty"`
- Extension PTZPresetTourSpotExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourSpotExtension type
- type PTZPresetTourSpotExtension struct {
- }
- // PTZPresetTourPresetDetail type
- type PTZPresetTourPresetDetail struct {
- // Option to specify the preset position with Preset Token defined in advance.
- PresetToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl PresetToken,omitempty"`
- // 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.
- Home bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Home,omitempty"`
- // Option to specify the preset position with vector of PTZ node directly.
- PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
- TypeExtension PTZPresetTourTypeExtension `xml:"http://www.onvif.org/ver10/schema TypeExtension,omitempty"`
- }
- // PTZPresetTourTypeExtension type
- type PTZPresetTourTypeExtension struct {
- }
- // PTZPresetTourStatus type
- type PTZPresetTourStatus struct {
- // Indicates state of this preset tour by Idle/Touring/Paused.
- State PTZPresetTourState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- // Indicates a tour spot currently staying.
- CurrentTourSpot PTZPresetTourSpot `xml:"http://www.onvif.org/ver10/schema CurrentTourSpot,omitempty"`
- Extension PTZPresetTourStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourStatusExtension type
- type PTZPresetTourStatusExtension struct {
- }
- // PTZPresetTourStartingCondition type
- type PTZPresetTourStartingCondition struct {
- // Optional parameter to specify how many times the preset tour is recurred.
- RecurringTime int32 `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
- // Optional parameter to specify how long time duration the preset tour is recurred.
- RecurringDuration Duration `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
- // Optional parameter to choose which direction the preset tour goes. Forward shall be chosen in case it is omitted.
- Direction PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
- Extension PTZPresetTourStartingConditionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // 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.
- RandomPresetOrder bool `xml:"http://www.onvif.org/ver10/receiver/wsdl RandomPresetOrder,attr,omitempty"`
- }
- // PTZPresetTourStartingConditionExtension type
- type PTZPresetTourStartingConditionExtension struct {
- }
- // PTZPresetTourPresetDetailOptions type
- type PTZPresetTourPresetDetailOptions struct {
- // A list of available Preset Tokens for tour spots.
- PresetToken []ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl PresetToken,omitempty"`
- // An option to indicate Home postion for tour spots.
- Home bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Home,omitempty"`
- // Supported range of Pan and Tilt for tour spots.
- PanTiltPositionSpace Space2DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltPositionSpace,omitempty"`
- // Supported range of Zoom for a tour spot.
- ZoomPositionSpace Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomPositionSpace,omitempty"`
- Extension PTZPresetTourPresetDetailOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourPresetDetailOptionsExtension type
- type PTZPresetTourPresetDetailOptionsExtension struct {
- }
- // PTZPresetTourStartingConditionOptions type
- type PTZPresetTourStartingConditionOptions struct {
- // Supported range of Recurring Time.
- RecurringTime IntRange `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
- // Supported range of Recurring Duration.
- RecurringDuration DurationRange `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
- // Supported options for Direction of Preset Tour.
- Direction []PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
- Extension PTZPresetTourStartingConditionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourStartingConditionOptionsExtension type
- type PTZPresetTourStartingConditionOptionsExtension struct {
- }
- // ImagingStatus type
- type ImagingStatus struct {
- FocusStatus FocusStatus `xml:"http://www.onvif.org/ver10/schema FocusStatus,omitempty"`
- }
- // FocusStatus type
- type FocusStatus struct {
- //
- // Status of focus position.
- //
- Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- //
- // Status of focus MoveStatus.
- //
- MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
- //
- // Error status of focus.
- //
- Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
- }
- // FocusConfiguration type
- type FocusConfiguration struct {
- AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
- DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- // Parameter to set autofocus near limit (unit: meter).
- NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- // Parameter to set autofocus far limit (unit: meter).
- // If set to 0.0, infinity will be used.
- FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- }
- // ImagingSettings type
- type ImagingSettings struct {
- // Enabled/disabled BLC mode (on/off).
- BacklightCompensation BacklightCompensation `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- // Image brightness (unit unspecified).
- Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- // Color saturation of the image (unit unspecified).
- ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- // Contrast of the image (unit unspecified).
- Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- // Exposure mode of the device.
- Exposure Exposure `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- // Focus configuration.
- Focus FocusConfiguration `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- // Infrared Cutoff Filter settings.
- IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
- // Sharpness of the Video image.
- Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- // WDR settings.
- WideDynamicRange WideDynamicRange `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- // White balance settings.
- WhiteBalance WhiteBalance `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- Extension ImagingSettingsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension type
- type ImagingSettingsExtension struct {
- }
- // Exposure type
- type Exposure struct {
- //
- // Exposure Mode
- //
- //
- Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // The exposure priority mode (low noise/framerate).
- //
- Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- //
- // Rectangular exposure mask.
- //
- Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
- //
- // Minimum value of exposure time range allowed to be used by the algorithm.
- //
- MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- //
- // Maximum value of exposure time range allowed to be used by the algorithm.
- //
- MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- //
- // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- //
- // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- //
- // Minimum value of the iris range allowed to be used by the algorithm.
- //
- MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- //
- // Maximum value of the iris range allowed to be used by the algorithm.
- //
- MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- //
- // The fixed exposure time used by the image sensor (μs).
- //
- ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- //
- // The fixed gain used by the image sensor (dB).
- //
- Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- //
- // The fixed attenuation of input light affected by the iris (dB). 0dB maps to a fully opened iris.
- //
- Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // WideDynamicRange type
- type WideDynamicRange struct {
- //
- // White dynamic range (on/off)
- //
- Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Optional level parameter (unitless)
- //
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensation type
- type BacklightCompensation struct {
- // Backlight compensation mode (on/off).
- Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified).
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // ImagingOptions type
- type ImagingOptions struct {
- BacklightCompensation BacklightCompensationOptions `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- Exposure ExposureOptions `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- Focus FocusOptions `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
- Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- WideDynamicRange WideDynamicRangeOptions `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- WhiteBalance WhiteBalanceOptions `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- }
- // WideDynamicRangeOptions type
- type WideDynamicRangeOptions struct {
- Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensationOptions type
- type BacklightCompensationOptions struct {
- Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // FocusOptions type
- type FocusOptions struct {
- AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
- DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- }
- // ExposureOptions type
- type ExposureOptions struct {
- Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // WhiteBalanceOptions type
- type WhiteBalanceOptions struct {
- Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
- YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
- }
- // WhiteBalance type
- type WhiteBalance struct {
- // Auto whitebalancing mode (auto/manual).
- Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Rgain (unitless).
- CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
- // Bgain (unitless).
- CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
- }
- // ImagingStatus20 type
- type ImagingStatus20 struct {
- //
- // Status of focus.
- //
- FocusStatus20 FocusStatus20 `xml:"http://www.onvif.org/ver10/schema FocusStatus20,omitempty"`
- Extension ImagingStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingStatus20Extension type
- type ImagingStatus20Extension struct {
- }
- // FocusStatus20 type
- type FocusStatus20 struct {
- //
- // Status of focus position.
- //
- Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- //
- // Status of focus MoveStatus.
- //
- MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
- //
- // Error status of focus.
- //
- Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
- Extension FocusStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // FocusStatus20Extension type
- type FocusStatus20Extension struct {
- }
- // ImagingSettings20 type
- type ImagingSettings20 struct {
- // Enabled/disabled BLC mode (on/off).
- BacklightCompensation BacklightCompensation20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- // Image brightness (unit unspecified).
- Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- // Color saturation of the image (unit unspecified).
- ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- // Contrast of the image (unit unspecified).
- Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- // Exposure mode of the device.
- Exposure Exposure20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- // Focus configuration.
- Focus FocusConfiguration20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- // Infrared Cutoff Filter settings.
- IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
- // Sharpness of the Video image.
- Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- // WDR settings.
- WideDynamicRange WideDynamicRange20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- // White balance settings.
- WhiteBalance WhiteBalance20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- Extension ImagingSettingsExtension20 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension20 type
- type ImagingSettingsExtension20 struct {
- // Optional element to configure Image Stabilization feature.
- ImageStabilization ImageStabilization `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
- Extension ImagingSettingsExtension202 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension202 type
- type ImagingSettingsExtension202 struct {
- // An optional parameter applied to only auto mode to adjust timing of toggling Ir cut filter.
- IrCutFilterAutoAdjustment []IrCutFilterAutoAdjustment `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
- Extension ImagingSettingsExtension203 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension203 type
- type ImagingSettingsExtension203 struct {
- // Optional element to configure Image Contrast Compensation.
- ToneCompensation ToneCompensation `xml:"http://www.onvif.org/ver10/schema ToneCompensation,omitempty"`
- // Optional element to configure Image Defogging.
- Defogging Defogging `xml:"http://www.onvif.org/ver10/schema Defogging,omitempty"`
- // Optional element to configure Image Noise Reduction.
- NoiseReduction NoiseReduction `xml:"http://www.onvif.org/ver10/schema NoiseReduction,omitempty"`
- Extension ImagingSettingsExtension204 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension204 type
- type ImagingSettingsExtension204 struct {
- }
- // ImageStabilization type
- type ImageStabilization struct {
- // Parameter to enable/disable Image Stabilization feature.
- Mode ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified)
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension ImageStabilizationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImageStabilizationExtension type
- type ImageStabilizationExtension struct {
- }
- // IrCutFilterAutoAdjustment type
- type IrCutFilterAutoAdjustment struct {
- // Specifies which boundaries to automatically toggle Ir cut filter following parameters are applied to. Its options shall be chosen from tt:IrCutFilterAutoBoundaryType.
- BoundaryType string `xml:"http://www.onvif.org/ver10/schema BoundaryType,omitempty"`
- // 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).
- BoundaryOffset float32 `xml:"http://www.onvif.org/ver10/schema BoundaryOffset,omitempty"`
- // Delay time of toggling Ir cut filter to on/off after crossing of the boundary exposure levels.
- ResponseTime Duration `xml:"http://www.onvif.org/ver10/schema ResponseTime,omitempty"`
- Extension IrCutFilterAutoAdjustmentExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IrCutFilterAutoAdjustmentExtension type
- type IrCutFilterAutoAdjustmentExtension struct {
- }
- // WideDynamicRange20 type
- type WideDynamicRange20 struct {
- // Wide dynamic range mode (on/off).
- Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified).
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensation20 type
- type BacklightCompensation20 struct {
- // Backlight compensation mode (on/off).
- Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified).
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // Exposure20 type
- type Exposure20 struct {
- //
- // Exposure Mode
- //
- //
- Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // The exposure priority mode (low noise/framerate).
- //
- Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- //
- // Rectangular exposure mask.
- //
- Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
- //
- // Minimum value of exposure time range allowed to be used by the algorithm.
- //
- MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- //
- // Maximum value of exposure time range allowed to be used by the algorithm.
- //
- MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- //
- // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- //
- // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- //
- // 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.
- //
- MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- //
- // 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.
- //
- MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- //
- // The fixed exposure time used by the image sensor (μs).
- //
- ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- //
- // The fixed gain used by the image sensor (dB).
- //
- Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- //
- // 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.
- //
- Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // ToneCompensation type
- type ToneCompensation struct {
- // Parameter to enable/disable or automatic ToneCompensation feature. Its options shall be chosen from tt:ToneCompensationMode Type.
- Mode string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension ToneCompensationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ToneCompensationExtension type
- type ToneCompensationExtension struct {
- }
- // Defogging type
- type Defogging struct {
- // Parameter to enable/disable or automatic Defogging feature. Its options shall be chosen from tt:DefoggingMode Type.
- Mode string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension DefoggingExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DefoggingExtension type
- type DefoggingExtension struct {
- }
- // NoiseReduction type
- type NoiseReduction struct {
- // Level parameter specified with unitless normalized value from 0.0 to +1.0. Level=0 means no noise reduction or minimal noise reduction.
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // ImagingOptions20 type
- type ImagingOptions20 struct {
- //
- // Valid range of Backlight Compensation.
- //
- BacklightCompensation BacklightCompensationOptions20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- //
- // Valid range of Brightness.
- //
- Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- //
- // Valid range of Color Saturation.
- //
- ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- //
- // Valid range of Contrast.
- //
- Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- //
- // Valid range of Exposure.
- //
- Exposure ExposureOptions20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- //
- // Valid range of Focus.
- //
- Focus FocusOptions20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- //
- // Valid range of IrCutFilterModes.
- //
- IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
- //
- // Valid range of Sharpness.
- //
- Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- //
- // Valid range of WideDynamicRange.
- //
- WideDynamicRange WideDynamicRangeOptions20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- //
- // Valid range of WhiteBalance.
- //
- WhiteBalance WhiteBalanceOptions20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- Extension ImagingOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension type
- type ImagingOptions20Extension struct {
- // Options of parameters for Image Stabilization feature.
- ImageStabilization ImageStabilizationOptions `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
- Extension ImagingOptions20Extension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension2 type
- type ImagingOptions20Extension2 struct {
- // Options of parameters for adjustment of Ir cut filter auto mode.
- IrCutFilterAutoAdjustment IrCutFilterAutoAdjustmentOptions `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
- Extension ImagingOptions20Extension3 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension3 type
- type ImagingOptions20Extension3 struct {
- // Options of parameters for Tone Compensation feature.
- ToneCompensationOptions ToneCompensationOptions `xml:"http://www.onvif.org/ver10/schema ToneCompensationOptions,omitempty"`
- // Options of parameters for Defogging feature.
- DefoggingOptions DefoggingOptions `xml:"http://www.onvif.org/ver10/schema DefoggingOptions,omitempty"`
- // Options of parameter for Noise Reduction feature.
- NoiseReductionOptions NoiseReductionOptions `xml:"http://www.onvif.org/ver10/schema NoiseReductionOptions,omitempty"`
- Extension ImagingOptions20Extension4 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension4 type
- type ImagingOptions20Extension4 struct {
- }
- // ImageStabilizationOptions type
- type ImageStabilizationOptions struct {
- // Supported options of Image Stabilization mode parameter.
- Mode []ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Valid range of the Image Stabilization.
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension ImageStabilizationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImageStabilizationOptionsExtension type
- type ImageStabilizationOptionsExtension struct {
- }
- // IrCutFilterAutoAdjustmentOptions type
- type IrCutFilterAutoAdjustmentOptions struct {
- // Supported options of boundary types for adjustment of Ir cut filter auto mode. The opptions shall be chosen from tt:IrCutFilterAutoBoundaryType.
- BoundaryType []string `xml:"http://www.onvif.org/ver10/schema BoundaryType,omitempty"`
- // Indicates whether or not boundary offset for toggling Ir cut filter is supported.
- BoundaryOffset bool `xml:"http://www.onvif.org/ver10/receiver/wsdl BoundaryOffset,omitempty"`
- // Supported range of delay time for toggling Ir cut filter.
- ResponseTimeRange DurationRange `xml:"http://www.onvif.org/ver10/schema ResponseTimeRange,omitempty"`
- Extension IrCutFilterAutoAdjustmentOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IrCutFilterAutoAdjustmentOptionsExtension type
- type IrCutFilterAutoAdjustmentOptionsExtension struct {
- }
- // WideDynamicRangeOptions20 type
- type WideDynamicRangeOptions20 struct {
- Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensationOptions20 type
- type BacklightCompensationOptions20 struct {
- //
- // 'ON' or 'OFF'
- //
- Mode []BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Level range of BacklightCompensation.
- //
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // ExposureOptions20 type
- type ExposureOptions20 struct {
- //
- // Exposure Mode
- //
- //
- Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // The exposure priority mode (low noise/framerate).
- //
- Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- //
- // Valid range of the Minimum ExposureTime.
- //
- MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- //
- // Valid range of the Maximum ExposureTime.
- //
- MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- //
- // Valid range of the Minimum Gain.
- //
- MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- //
- // Valid range of the Maximum Gain.
- //
- MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- //
- // Valid range of the Minimum Iris.
- //
- MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- //
- // Valid range of the Maximum Iris.
- //
- MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- //
- // Valid range of the ExposureTime.
- //
- ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- //
- // Valid range of the Gain.
- //
- Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- //
- // Valid range of the Iris.
- //
- Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // WhiteBalance20 type
- type WhiteBalance20 struct {
- //
- // 'AUTO' or 'MANUAL'
- //
- Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Rgain (unitless).
- //
- CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
- //
- // Bgain (unitless).
- //
- CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
- Extension WhiteBalance20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // WhiteBalance20Extension type
- type WhiteBalance20Extension struct {
- }
- // FocusConfiguration20 type
- type FocusConfiguration20 struct {
- //
- // Mode of auto focus.
- //
- // 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.
- //
- AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
- DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- // Parameter to set autofocus near limit (unit: meter).
- NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- // Parameter to set autofocus far limit (unit: meter).
- FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- Extension FocusConfiguration20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Zero or more modes as defined in enumeration tt:AFModes.
- AFMode StringAttrList `xml:"http://www.onvif.org/ver10/schema AFMode,attr,omitempty"`
- }
- // FocusConfiguration20Extension type
- type FocusConfiguration20Extension struct {
- }
- // WhiteBalanceOptions20 type
- type WhiteBalanceOptions20 struct {
- //
- // Mode of WhiteBalance.
- //
- //
- Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
- YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
- Extension WhiteBalanceOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // WhiteBalanceOptions20Extension type
- type WhiteBalanceOptions20Extension struct {
- }
- // FocusOptions20 type
- type FocusOptions20 struct {
- //
- // Supported modes for auto focus.
- //
- //
- AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
- //
- // Valid range of DefaultSpeed.
- //
- DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- //
- // Valid range of NearLimit.
- //
- NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- //
- // Valid range of FarLimit.
- //
- FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- Extension FocusOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // FocusOptions20Extension type
- type FocusOptions20Extension struct {
- // Supported options for auto focus. Options shall be chosen from tt:AFModes.
- AFModes StringAttrList `xml:"http://www.onvif.org/ver10/schema AFModes,omitempty"`
- }
- // ToneCompensationOptions type
- type ToneCompensationOptions struct {
- // Supported options for Tone Compensation mode. Its options shall be chosen from tt:ToneCompensationMode Type.
- Mode []string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Indicates whether or not support Level parameter for Tone Compensation.
- Level bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Level,omitempty"`
- }
- // DefoggingOptions type
- type DefoggingOptions struct {
- // Supported options for Defogging mode. Its options shall be chosen from tt:DefoggingMode Type.
- Mode []string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Indicates whether or not support Level parameter for Defogging.
- Level bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Level,omitempty"`
- }
- // NoiseReductionOptions type
- type NoiseReductionOptions struct {
- // Indicates whether or not support Level parameter for NoiseReduction.
- Level bool `xml:"http://www.onvif.org/ver10/receiver/wsdl Level,omitempty"`
- }
- // MessageExtension type
- type MessageExtension struct {
- }
- // ItemList type
- type ItemList struct {
- SimpleItem []struct {
- // Item name.
- Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
- // Item value. The type is defined in the corresponding description.
- Value AnySimpleType `xml:"Value,attr,omitempty"`
- } `xml:"SimpleItem,omitempty"`
- ElementItem []struct {
- // Item name.
- Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
- } `xml:"ElementItem,omitempty"`
- Extension ItemListExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ItemListExtension type
- type ItemListExtension struct {
- }
- // MessageDescription type
- type MessageDescription struct {
- // Set of tokens producing this message. The list may only contain SimpleItemDescription items.
- // The set of tokens identify the component within the WS-Endpoint, which is responsible for the producing the message.
- // For analytics events the token set shall include the VideoSourceConfigurationToken, the VideoAnalyticsConfigurationToken
- // and the name of the analytics module or rule.
- //
- Source ItemListDescription `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
- // Describes optional message payload parameters that may be used as key. E.g. object IDs of tracked objects are conveyed as key.
- Key ItemListDescription `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
- // Describes the payload of the message.
- Data ItemListDescription `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
- Extension MessageDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // 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.
- IsProperty bool `xml:"http://www.onvif.org/ver10/receiver/wsdl IsProperty,attr,omitempty"`
- }
- // MessageDescriptionExtension type
- type MessageDescriptionExtension struct {
- }
- // ItemListDescription type
- type ItemListDescription struct {
- SimpleItemDescription []struct {
- // Item name. Must be unique within a list.
- Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
- Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- } `xml:"SimpleItemDescription,omitempty"`
- ElementItemDescription []struct {
- // Item name. Must be unique within a list.
- Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
- // The type of the item. The Type must reference a defined type.
- Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- } `xml:"ElementItemDescription,omitempty"`
- Extension ItemListDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ItemListDescriptionExtension type
- type ItemListDescriptionExtension struct {
- }
- // Polyline type
- type Polyline struct {
- Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
- }
- // AnalyticsEngineConfiguration type
- type AnalyticsEngineConfiguration struct {
- AnalyticsModule []Config `xml:"http://www.onvif.org/ver10/schema AnalyticsModule,omitempty"`
- Extension AnalyticsEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsEngineConfigurationExtension type
- type AnalyticsEngineConfigurationExtension struct {
- }
- // RuleEngineConfiguration type
- type RuleEngineConfiguration struct {
- Rule []Config `xml:"http://www.onvif.org/ver10/schema Rule,omitempty"`
- Extension RuleEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RuleEngineConfigurationExtension type
- type RuleEngineConfigurationExtension struct {
- }
- // Config type
- type Config struct {
- // List of configuration parameters as defined in the correspding description.
- Parameters ItemList `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
- // Name of the configuration.
- Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
- // 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.
- Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- }
- // ConfigDescription type
- type ConfigDescription struct {
- //
- // List describing the configuration parameters. The names of the parameters must be unique. If possible SimpleItems
- // should be used to transport the information to ease parsing of dynamically defined messages by a client
- // application.
- //
- Parameters ItemListDescription `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
- Messages []struct {
- *MessageDescription
- //
- // The ParentTopic labels the message (e.g. "nn:RuleEngine/LineCrossing"). The real message can extend the ParentTopic
- // by for example the name of the instaniated rule (e.g. "nn:RuleEngine/LineCrossing/corssMyFirstLine").
- // Even without knowing the complete topic name, the subscriber will be able to distiguish the
- // messages produced by different rule instances of the same type via the Source fields of the message.
- // There the name of the rule instance, which produced the message, must be listed.
- //
- ParentTopic string `xml:"http://www.onvif.org/ver10/schema ParentTopic,omitempty"`
- } `xml:"Messages,omitempty"`
- Extension ConfigDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // The Name attribute (e.g. "tt::LineDetector") uniquely identifies the type of rule, not a type definition in a schema.
- Name QName `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
- // The fixed attribute signals that it is not allowed to add or remove this type of configuration.
- Fixed bool `xml:"fixed,attr,omitempty"`
- // The maxInstances attribute signals the maximum number of instances per configuration.
- MaxInstances int32 `xml:"maxInstances,attr,omitempty"`
- }
- // ConfigDescriptionExtension type
- type ConfigDescriptionExtension struct {
- }
- // SupportedRules type
- type SupportedRules struct {
- // Lists the location of all schemas that are referenced in the rules.
- RuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema RuleContentSchemaLocation,omitempty"`
- // List of rules supported by the Video Analytics configuration..
- RuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema RuleDescription,omitempty"`
- Extension SupportedRulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SupportedRulesExtension type
- type SupportedRulesExtension struct {
- }
- // SupportedAnalyticsModules type
- type SupportedAnalyticsModules struct {
- // It optionally contains a list of URLs that provide the location of schema files.
- // These schema files describe the types and elements used in the analytics module descriptions.
- // Analytics module descriptions that reference types or elements imported from any ONVIF defined schema files
- // need not explicitly list those schema files.
- AnalyticsModuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleContentSchemaLocation,omitempty"`
- AnalyticsModuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleDescription,omitempty"`
- Extension SupportedAnalyticsModulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SupportedAnalyticsModulesExtension type
- type SupportedAnalyticsModulesExtension struct {
- }
- // PolylineArray type
- type PolylineArray struct {
- // Contains array of Polyline
- Segment []Polyline `xml:"http://www.onvif.org/ver10/schema Segment,omitempty"`
- Extension PolylineArrayExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PolylineArrayExtension type
- type PolylineArrayExtension struct {
- }
- // PaneLayout type
- type PaneLayout struct {
- // Reference to the configuration of the streaming and coding parameters.
- Pane ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl Pane,omitempty"`
- // Describes the location and size of the area on the monitor. The area coordinate values are espressed in normalized units [-1.0, 1.0].
- Area Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
- }
- // Layout type
- type Layout struct {
- // List of panes assembling the display layout.
- PaneLayout []PaneLayout `xml:"http://www.onvif.org/ver10/schema PaneLayout,omitempty"`
- Extension LayoutExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // LayoutExtension type
- type LayoutExtension struct {
- }
- // LayoutOptions type
- type LayoutOptions struct {
- // Lists the possible Pane Layouts of the Video Output
- PaneLayoutOptions []PaneLayoutOptions `xml:"http://www.onvif.org/ver10/schema PaneLayoutOptions,omitempty"`
- Extension LayoutOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // LayoutOptionsExtension type
- type LayoutOptionsExtension struct {
- }
- // PaneLayoutOptions type
- type PaneLayoutOptions struct {
- // List of areas assembling a layout. Coordinate values are in the range [-1.0, 1.0].
- Area []Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
- Extension PaneOptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PaneOptionExtension type
- type PaneOptionExtension struct {
- }
- // Receiver type
- type Receiver struct {
- // Unique identifier of the receiver.
- Token ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl Token,omitempty"`
- // Describes the configuration of the receiver.
- Configuration ReceiverConfiguration `xml:"http://www.onvif.org/ver10/receiver/wsdl Configuration,omitempty"`
- }
- // ReceiverConfiguration type
- type ReceiverConfiguration struct {
- // The following connection modes are defined:
- Mode ReceiverMode `xml:"http://www.onvif.org/ver10/receiver/wsdl Mode,omitempty"`
- // Details of the URI to which the receiver should connect.
- MediaUri AnyURI `xml:"http://www.onvif.org/ver10/schema MediaUri,omitempty"`
- // Stream connection parameters.
- StreamSetup StreamSetup `xml:"http://www.onvif.org/ver10/schema StreamSetup,omitempty"`
- }
- // ReceiverStateInformation type
- type ReceiverStateInformation struct {
- // The connection state of the receiver may have one of the following states:
- State ReceiverState `xml:"http://www.onvif.org/ver10/receiver/wsdl State,omitempty"`
- // Indicates whether or not the receiver was created automatically.
- AutoCreated bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AutoCreated,omitempty"`
- }
- // SourceReference type
- type SourceReference struct {
- Token ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl Token,omitempty"`
- Type AnyURI `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- }
- // DateTimeRange type
- type DateTimeRange struct {
- From string `xml:"http://www.onvif.org/ver10/schema From,omitempty"`
- Until string `xml:"http://www.onvif.org/ver10/schema Until,omitempty"`
- }
- // SearchScope type
- type SearchScope struct {
- // 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.
- IncludedSources []SourceReference `xml:"http://www.onvif.org/ver10/schema IncludedSources,omitempty"`
- // 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.
- IncludedRecordings []RecordingReference `xml:"http://www.onvif.org/ver10/schema IncludedRecordings,omitempty"`
- // An xpath expression used to specify what recordings to search. Only those recordings with an RecordingInformation structure that matches the filter shall be searched.
- RecordingInformationFilter XPathExpression `xml:"http://www.onvif.org/ver10/schema RecordingInformationFilter,omitempty"`
- // Extension point
- Extension SearchScopeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SearchScopeExtension type
- type SearchScopeExtension struct {
- }
- // RecordingSourceInformation type
- type RecordingSourceInformation struct {
- //
- // Identifier for the source chosen by the client that creates the structure.
- // 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.
- SourceId AnyURI `xml:"http://www.onvif.org/ver10/schema SourceId,omitempty"`
- // Informative user readable name of the source, e.g. "Camera23". A device shall support at least 20 characters.
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Informative description of the physical location of the source, e.g. the coordinates on a map.
- Location Description `xml:"http://www.onvif.org/ver10/schema Location,omitempty"`
- // Informative description of the source.
- Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
- // URI provided by the service supplying data to be recorded. A device shall support at least 128 characters.
- Address AnyURI `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
- }
- // TrackInformation type
- type TrackInformation struct {
- TrackToken TrackReference `xml:"http://www.onvif.org/ver10/schema TrackToken,omitempty"`
- // Type of the track: "Video", "Audio" or "Metadata".
- // The track shall only be able to hold data of that type.
- TrackType TrackType `xml:"http://www.onvif.org/ver10/schema TrackType,omitempty"`
- // Informative description of the contents of the track.
- Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
- // The start date and time of the oldest recorded data in the track.
- DataFrom string `xml:"http://www.onvif.org/ver10/schema DataFrom,omitempty"`
- // The stop date and time of the newest recorded data in the track.
- DataTo string `xml:"http://www.onvif.org/ver10/schema DataTo,omitempty"`
- }
- // TrackAttributes type
- type TrackAttributes struct {
- // The basic information about the track. Note that a track may represent a single contiguous time span or consist of multiple slices.
- TrackInformation TrackInformation `xml:"http://www.onvif.org/ver10/schema TrackInformation,omitempty"`
- // If the track is a video track, exactly one of this structure shall be present and contain the video attributes.
- VideoAttributes VideoAttributes `xml:"http://www.onvif.org/ver10/schema VideoAttributes,omitempty"`
- // If the track is an audio track, exactly one of this structure shall be present and contain the audio attributes.
- AudioAttributes AudioAttributes `xml:"http://www.onvif.org/ver10/schema AudioAttributes,omitempty"`
- // If the track is an metadata track, exactly one of this structure shall be present and contain the metadata attributes.
- MetadataAttributes MetadataAttributes `xml:"http://www.onvif.org/ver10/schema MetadataAttributes,omitempty"`
- Extension TrackAttributesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // TrackAttributesExtension type
- type TrackAttributesExtension struct {
- }
- // VideoAttributes type
- type VideoAttributes struct {
- // Average bitrate in kbps.
- Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // The width of the video in pixels.
- Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
- // The height of the video in pixels.
- Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
- // Video encoding of the track. Use value from tt:VideoEncoding for MPEG4. Otherwise use values from tt:VideoEncodingMimeNames and .
- Encoding string `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
- // Average framerate in frames per second.
- Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
- }
- // AudioAttributes type
- type AudioAttributes struct {
- // The bitrate in kbps.
- Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // Audio encoding of the track. Use values from tt:AudioEncoding for G711 and AAC. Otherwise use values from tt:AudioEncodingMimeNames and .
- Encoding string `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
- // The sample rate in kHz.
- Samplerate int32 `xml:"http://www.onvif.org/ver10/schema Samplerate,omitempty"`
- }
- // MetadataAttributes type
- type MetadataAttributes struct {
- // Indicates that there can be PTZ data in the metadata track in the specified time interval.
- CanContainPTZ bool `xml:"http://www.onvif.org/ver10/receiver/wsdl CanContainPTZ,omitempty"`
- // Indicates that there can be analytics data in the metadata track in the specified time interval.
- CanContainAnalytics bool `xml:"http://www.onvif.org/ver10/receiver/wsdl CanContainAnalytics,omitempty"`
- // Indicates that there can be notifications in the metadata track in the specified time interval.
- CanContainNotifications bool `xml:"http://www.onvif.org/ver10/receiver/wsdl CanContainNotifications,omitempty"`
- // 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.
- PtzSpaces StringAttrList `xml:"http://www.onvif.org/ver10/schema PtzSpaces,attr,omitempty"`
- }
- // RecordingJobConfiguration type
- type RecordingJobConfiguration struct {
- // Identifies the recording to which this job shall store the received data.
- RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
- // The mode of the job. If it is idle, nothing shall happen. If it is active, the device shall try
- // to obtain data from the receivers. A client shall use GetRecordingJobState to determine if data transfer is really taking place.
- // The only valid values for Mode shall be “Idle” and “Active”.
- Mode RecordingJobMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // This shall be a non-negative number. If there are multiple recording jobs that store data to
- // the same track, the device will only store the data for the recording job with the highest
- // priority. The priority is specified per recording job, but the device shall determine the priority
- // of each track individually. If there are two recording jobs with the same priority, the device
- // shall record the data corresponding to the recording job that was activated the latest.
- Priority int32 `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- // Source of the recording.
- Source []RecordingJobSource `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
- Extension RecordingJobConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // This attribute adds an additional requirement for activating the recording job.
- // If this optional field is provided the job shall only record if the schedule exists and is active.
- //
- ScheduleToken string `xml:"http://www.onvif.org/ver10/schema ScheduleToken,attr,omitempty"`
- }
- // RecordingJobConfigurationExtension type
- type RecordingJobConfigurationExtension struct {
- }
- // RecordingJobSource type
- type RecordingJobSource struct {
- // This field shall be a reference to the source of the data. The type of the source
- // is determined by the attribute Type in the SourceToken structure. If Type is
- // http://www.onvif.org/ver10/schema/Receiver, the token is a ReceiverReference. In this case
- // the device shall receive the data over the network. If Type is
- // http://www.onvif.org/ver10/schema/Profile, the token identifies a media profile, instructing the
- // device to obtain data from a profile that exists on the local device.
- SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
- // If this field is TRUE, and if the SourceToken is omitted, the device
- // shall create a receiver object (through the receiver service) and assign the
- // ReceiverReference to the SourceToken field. When retrieving the RecordingJobConfiguration
- // from the device, the AutoCreateReceiver field shall never be present.
- AutoCreateReceiver bool `xml:"http://www.onvif.org/ver10/receiver/wsdl AutoCreateReceiver,omitempty"`
- // List of tracks associated with the recording.
- Tracks []RecordingJobTrack `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
- Extension RecordingJobSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RecordingJobSourceExtension type
- type RecordingJobSourceExtension struct {
- }
- // RecordingJobTrack type
- type RecordingJobTrack struct {
- // If the received RTSP stream contains multiple tracks of the same type, the
- // SourceTag differentiates between those Tracks. This field can be ignored in case of recording a local source.
- SourceTag string `xml:"http://www.onvif.org/ver10/schema SourceTag,omitempty"`
- // The destination is the tracktoken of the track to which the device shall store the
- // received data.
- Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
- }
- // RecordingJobStateInformation type
- type RecordingJobStateInformation struct {
- // Identification of the recording that the recording job records to.
- RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
- // Holds the aggregated state over the whole RecordingJobInformation structure.
- State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- // Identifies the data source of the recording job.
- Sources []RecordingJobStateSource `xml:"http://www.onvif.org/ver10/schema Sources,omitempty"`
- Extension RecordingJobStateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RecordingJobStateInformationExtension type
- type RecordingJobStateInformationExtension struct {
- }
- // RecordingJobStateSource type
- type RecordingJobStateSource struct {
- // Identifies the data source of the recording job.
- SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
- // Holds the aggregated state over all substructures of RecordingJobStateSource.
- State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- // List of track items.
- Tracks RecordingJobStateTracks `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
- }
- // RecordingJobStateTracks type
- type RecordingJobStateTracks struct {
- Track []RecordingJobStateTrack `xml:"http://www.onvif.org/ver10/schema Track,omitempty"`
- }
- // RecordingJobStateTrack type
- type RecordingJobStateTrack struct {
- // Identifies the track of the data source that provides the data.
- SourceTag string `xml:"http://www.onvif.org/ver10/schema SourceTag,omitempty"`
- // Indicates the destination track.
- Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
- // Optionally holds an implementation defined string value that describes the error.
- // The string should be in the English language.
- Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
- // Provides the job state of the track. The valid
- // 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.
- State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- }
- // AnalyticsEngine type
- type AnalyticsEngine struct {
- *ConfigurationEntity
- AnalyticsEngineConfiguration AnalyticsDeviceEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
- }
- // AnalyticsDeviceEngineConfiguration type
- type AnalyticsDeviceEngineConfiguration struct {
- EngineConfiguration []EngineConfiguration `xml:"http://www.onvif.org/ver10/schema EngineConfiguration,omitempty"`
- Extension AnalyticsDeviceEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsDeviceEngineConfigurationExtension type
- type AnalyticsDeviceEngineConfigurationExtension struct {
- }
- // EngineConfiguration type
- type EngineConfiguration struct {
- VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
- AnalyticsEngineInputInfo AnalyticsEngineInputInfo `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineInputInfo,omitempty"`
- }
- // AnalyticsEngineInputInfo type
- type AnalyticsEngineInputInfo struct {
- InputInfo Config `xml:"http://www.onvif.org/ver10/schema InputInfo,omitempty"`
- Extension AnalyticsEngineInputInfoExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsEngineInputInfoExtension type
- type AnalyticsEngineInputInfoExtension struct {
- }
- // AnalyticsEngineInput type
- type AnalyticsEngineInput struct {
- *ConfigurationEntity
- SourceIdentification SourceIdentification `xml:"http://www.onvif.org/ver10/schema SourceIdentification,omitempty"`
- VideoInput VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoInput,omitempty"`
- MetadataInput MetadataInput `xml:"http://www.onvif.org/ver10/schema MetadataInput,omitempty"`
- }
- // SourceIdentification type
- type SourceIdentification struct {
- Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- Token []ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl Token,omitempty"`
- Extension SourceIdentificationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SourceIdentificationExtension type
- type SourceIdentificationExtension struct {
- }
- // MetadataInput type
- type MetadataInput struct {
- MetadataConfig []Config `xml:"http://www.onvif.org/ver10/schema MetadataConfig,omitempty"`
- Extension MetadataInputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // MetadataInputExtension type
- type MetadataInputExtension struct {
- }
- // ActionEngineEventPayload type
- type ActionEngineEventPayload struct {
- // Request Message
- RequestInfo Envelope `xml:"RequestInfo,omitempty"`
- // Response Message
- ResponseInfo Envelope `xml:"ResponseInfo,omitempty"`
- // Fault Message
- Fault Fault `xml:"Fault,omitempty"`
- Extension ActionEngineEventPayloadExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ActionEngineEventPayloadExtension type
- type ActionEngineEventPayloadExtension struct {
- }
- // AudioClassCandidate type
- type AudioClassCandidate struct {
- // Indicates audio class label
- Type AudioClassType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // A likelihood/probability that the corresponding audio event belongs to this class. The sum of the likelihoods shall NOT exceed 1
- Likelihood float32 `xml:"http://www.onvif.org/ver10/schema Likelihood,omitempty"`
- }
- // AudioClassDescriptor type
- type AudioClassDescriptor struct {
- // Array of audio class label and class probability
- ClassCandidate []AudioClassCandidate `xml:"http://www.onvif.org/ver10/schema ClassCandidate,omitempty"`
- Extension AudioClassDescriptorExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AudioClassDescriptorExtension type
- type AudioClassDescriptorExtension struct {
- }
- // ActiveConnection type
- type ActiveConnection struct {
- CurrentBitrate float32 `xml:"http://www.onvif.org/ver10/schema CurrentBitrate,omitempty"`
- CurrentFps float32 `xml:"http://www.onvif.org/ver10/schema CurrentFps,omitempty"`
- }
- // ProfileStatus type
- type ProfileStatus struct {
- ActiveConnections []ActiveConnection `xml:"http://www.onvif.org/ver10/schema ActiveConnections,omitempty"`
- Extension ProfileStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ProfileStatusExtension type
- type ProfileStatusExtension struct {
- }
- // OSDReference type
- type OSDReference struct {
- Value ReferenceToken
- }
- // OSDPosConfiguration type
- type OSDPosConfiguration struct {
- // For OSD position type, following are the pre-defined:
- //
- Type string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- Pos Vector `xml:"http://www.onvif.org/ver10/schema Pos,omitempty"`
- Extension OSDPosConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDPosConfigurationExtension type
- type OSDPosConfigurationExtension struct {
- }
- // OSDColor type
- type OSDColor struct {
- Color Color `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
- Transparent int32 `xml:"http://www.onvif.org/ver10/schema Transparent,attr,omitempty"`
- }
- // OSDTextConfiguration type
- type OSDTextConfiguration struct {
- //
- // The following OSD Text Type are defined:
- //
- Type string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- //
- // 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:
- //
- DateFormat string `xml:"http://www.onvif.org/ver10/schema DateFormat,omitempty"`
- //
- // 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:
- //
- TimeFormat string `xml:"http://www.onvif.org/ver10/schema TimeFormat,omitempty"`
- // Font size of the text in pt.
- FontSize int32 `xml:"http://www.onvif.org/ver10/schema FontSize,omitempty"`
- // Font color of the text.
- FontColor OSDColor `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
- // Background color of the text.
- BackgroundColor OSDColor `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
- // The content of text to be displayed.
- PlainText string `xml:"http://www.onvif.org/ver10/schema PlainText,omitempty"`
- Extension OSDTextConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // 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.
- IsPersistentText bool `xml:"http://www.onvif.org/ver10/receiver/wsdl IsPersistentText,attr,omitempty"`
- }
- // OSDTextConfigurationExtension type
- type OSDTextConfigurationExtension struct {
- }
- // OSDImgConfiguration type
- type OSDImgConfiguration struct {
- // The URI of the image which to be displayed.
- ImgPath AnyURI `xml:"http://www.onvif.org/ver10/schema ImgPath,omitempty"`
- Extension OSDImgConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDImgConfigurationExtension type
- type OSDImgConfigurationExtension struct {
- }
- // ColorspaceRange type
- type ColorspaceRange struct {
- X FloatRange `xml:"http://www.onvif.org/ver10/schema X,omitempty"`
- Y FloatRange `xml:"http://www.onvif.org/ver10/schema Y,omitempty"`
- Z FloatRange `xml:"http://www.onvif.org/ver10/schema Z,omitempty"`
- //
- // Acceptable values are the same as in tt:Color.
- //
- Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,omitempty"`
- }
- // ColorOptions type
- type ColorOptions struct {
- // List the supported color.
- ColorList []Color `xml:"http://www.onvif.org/ver10/schema ColorList,omitempty"`
- // Define the range of color supported.
- ColorspaceRange []ColorspaceRange `xml:"http://www.onvif.org/ver10/schema ColorspaceRange,omitempty"`
- }
- // OSDColorOptions type
- type OSDColorOptions struct {
- // Optional list of supported colors.
- Color ColorOptions `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
- // Range of the transparent level. Larger means more tranparent.
- Transparent IntRange `xml:"http://www.onvif.org/ver10/schema Transparent,omitempty"`
- Extension OSDColorOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDColorOptionsExtension type
- type OSDColorOptionsExtension struct {
- }
- // OSDTextOptions type
- type OSDTextOptions struct {
- // List of supported OSD text type. When a device indicates the supported number relating to Text type in MaximumNumberOfOSDs, the type shall be presented.
- Type []string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // Range of the font size value.
- FontSizeRange IntRange `xml:"http://www.onvif.org/ver10/schema FontSizeRange,omitempty"`
- // List of supported date format.
- DateFormat []string `xml:"http://www.onvif.org/ver10/schema DateFormat,omitempty"`
- // List of supported time format.
- TimeFormat []string `xml:"http://www.onvif.org/ver10/schema TimeFormat,omitempty"`
- // List of supported font color.
- FontColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
- // List of supported background color.
- BackgroundColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
- Extension OSDTextOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDTextOptionsExtension type
- type OSDTextOptionsExtension struct {
- }
- // OSDImgOptions type
- type OSDImgOptions struct {
- // List of available image URIs.
- ImagePath []AnyURI `xml:"http://www.onvif.org/ver10/schema ImagePath,omitempty"`
- Extension OSDImgOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // List of supported image MIME types, such as "image/png".
- FormatsSupported StringAttrList `xml:"http://www.onvif.org/ver10/schema FormatsSupported,attr,omitempty"`
- // The maximum size (in bytes) of the image that can be uploaded.
- MaxSize int32 `xml:"http://www.onvif.org/ver10/schema MaxSize,attr,omitempty"`
- // The maximum width (in pixels) of the image that can be uploaded.
- MaxWidth int32 `xml:"http://www.onvif.org/ver10/schema MaxWidth,attr,omitempty"`
- // The maximum height (in pixels) of the image that can be uploaded.
- MaxHeight int32 `xml:"http://www.onvif.org/ver10/schema MaxHeight,attr,omitempty"`
- }
- // OSDImgOptionsExtension type
- type OSDImgOptionsExtension struct {
- }
- // OSDConfiguration type
- type OSDConfiguration struct {
- *DeviceEntity
- // Reference to the video source configuration.
- VideoSourceConfigurationToken OSDReference `xml:"http://www.onvif.org/ver10/schema VideoSourceConfigurationToken,omitempty"`
- // Type of OSD.
- Type OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // Position configuration of OSD.
- Position OSDPosConfiguration `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- // Text configuration of OSD. It shall be present when the value of Type field is Text.
- TextString OSDTextConfiguration `xml:"http://www.onvif.org/ver10/schema TextString,omitempty"`
- // Image configuration of OSD. It shall be present when the value of Type field is Image
- Image OSDImgConfiguration `xml:"http://www.onvif.org/ver10/schema Image,omitempty"`
- Extension OSDConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDConfigurationExtension type
- type OSDConfigurationExtension struct {
- }
- // MaximumNumberOfOSDs type
- type MaximumNumberOfOSDs struct {
- Total int32 `xml:"http://www.onvif.org/ver10/schema Total,attr,omitempty"`
- Image int32 `xml:"http://www.onvif.org/ver10/schema Image,attr,omitempty"`
- PlainText int32 `xml:"http://www.onvif.org/ver10/schema PlainText,attr,omitempty"`
- Date int32 `xml:"http://www.onvif.org/ver10/schema Date,attr,omitempty"`
- Time int32 `xml:"http://www.onvif.org/ver10/schema Time,attr,omitempty"`
- DateAndTime int32 `xml:"http://www.onvif.org/ver10/schema DateAndTime,attr,omitempty"`
- }
- // OSDConfigurationOptions type
- type OSDConfigurationOptions struct {
- // 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.
- MaximumNumberOfOSDs MaximumNumberOfOSDs `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfOSDs,omitempty"`
- // 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.
- Type []OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // List available OSD position type. Following are the pre-defined:
- //
- PositionOption []string `xml:"http://www.onvif.org/ver10/schema PositionOption,omitempty"`
- // Option of the OSD text configuration. This element shall be returned if the device is signaling the support for Text.
- TextOption OSDTextOptions `xml:"http://www.onvif.org/ver10/schema TextOption,omitempty"`
- // Option of the OSD image configuration. This element shall be returned if the device is signaling the support for Image.
- ImageOption OSDImgOptions `xml:"http://www.onvif.org/ver10/schema ImageOption,omitempty"`
- Extension OSDConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDConfigurationOptionsExtension type
- type OSDConfigurationOptionsExtension struct {
- }
- // FileProgress type
- type FileProgress struct {
- // Exported file name
- FileName string `xml:"http://www.onvif.org/ver10/schema FileName,omitempty"`
- // Normalized percentage completion for uploading the exported file
- Progress float32 `xml:"http://www.onvif.org/ver10/schema Progress,omitempty"`
- }
- // ArrayOfFileProgress type
- type ArrayOfFileProgress struct {
- // Exported file name and export progress information
- FileProgress []FileProgress `xml:"http://www.onvif.org/ver10/schema FileProgress,omitempty"`
- Extension ArrayOfFileProgressExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ArrayOfFileProgressExtension type
- type ArrayOfFileProgressExtension struct {
- }
- // StorageReferencePath type
- type StorageReferencePath struct {
- // identifier of an existing Storage Configuration.
- StorageToken ReferenceToken `xml:"http://www.onvif.org/ver10/receiver/wsdl StorageToken,omitempty"`
- // gives the relative directory path on the storage
- RelativePath string `xml:"http://www.onvif.org/ver10/schema RelativePath,omitempty"`
- Extension StorageReferencePathExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // StorageReferencePathExtension type
- type StorageReferencePathExtension struct {
- }
- // ReceiverPort type
- type ReceiverPort interface {
- /* Returns the capabilities of the receiver service. The result is returned in a typed answer. */
- GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
- GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
- /*
- Lists all receivers currently present on a device. This operation is mandatory.
- */
- GetReceivers(request *GetReceivers) (*GetReceiversResponse, error)
- GetReceiversContext(ctx context.Context, request *GetReceivers) (*GetReceiversResponse, error)
- /*
- Retrieves the details of a specific receiver. This operation is mandatory.
- */
- GetReceiver(request *GetReceiver) (*GetReceiverResponse, error)
- GetReceiverContext(ctx context.Context, request *GetReceiver) (*GetReceiverResponse, error)
- /*
- Creates a new receiver. This operation is mandatory, although the service may
- raise a fault if the receiver cannot be created.
- */
- CreateReceiver(request *CreateReceiver) (*CreateReceiverResponse, error)
- CreateReceiverContext(ctx context.Context, request *CreateReceiver) (*CreateReceiverResponse, error)
- /*
- Deletes an existing receiver. A receiver may be deleted only if it is not
- currently in use; otherwise a fault shall be raised.
- This operation is mandatory.
- */
- DeleteReceiver(request *DeleteReceiver) (*DeleteReceiverResponse, error)
- DeleteReceiverContext(ctx context.Context, request *DeleteReceiver) (*DeleteReceiverResponse, error)
- /*
- Configures an existing receiver. This operation is mandatory.
- */
- ConfigureReceiver(request *ConfigureReceiver) (*ConfigureReceiverResponse, error)
- ConfigureReceiverContext(ctx context.Context, request *ConfigureReceiver) (*ConfigureReceiverResponse, error)
- /*
- Sets the mode of the receiver without affecting the rest of its configuration.
- This operation is mandatory.
- */
- SetReceiverMode(request *SetReceiverMode) (*SetReceiverModeResponse, error)
- SetReceiverModeContext(ctx context.Context, request *SetReceiverMode) (*SetReceiverModeResponse, error)
- /*
- Determines whether the receiver is currently disconnected, connected or
- attempting to connect.
- This operation is mandatory.
- */
- GetReceiverState(request *GetReceiverState) (*GetReceiverStateResponse, error)
- GetReceiverStateContext(ctx context.Context, request *GetReceiverState) (*GetReceiverStateResponse, error)
- }
- // receiverPort type
- type receiverPort struct {
- client *soap.Client
- xaddr string
- }
- func NewReceiverPort(client *soap.Client, xaddr string) ReceiverPort {
- return &receiverPort{
- client: client,
- xaddr: xaddr,
- }
- }
- func (service *receiverPort) GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
- response := new(GetServiceCapabilitiesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/GetServiceCapabilities", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
- return service.GetServiceCapabilitiesContext(
- context.Background(),
- request,
- )
- }
- func (service *receiverPort) GetReceiversContext(ctx context.Context, request *GetReceivers) (*GetReceiversResponse, error) {
- response := new(GetReceiversResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/GetReceivers", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) GetReceivers(request *GetReceivers) (*GetReceiversResponse, error) {
- return service.GetReceiversContext(
- context.Background(),
- request,
- )
- }
- func (service *receiverPort) GetReceiverContext(ctx context.Context, request *GetReceiver) (*GetReceiverResponse, error) {
- response := new(GetReceiverResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/GetReceiver", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) GetReceiver(request *GetReceiver) (*GetReceiverResponse, error) {
- return service.GetReceiverContext(
- context.Background(),
- request,
- )
- }
- func (service *receiverPort) CreateReceiverContext(ctx context.Context, request *CreateReceiver) (*CreateReceiverResponse, error) {
- response := new(CreateReceiverResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/CreateReceiver", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) CreateReceiver(request *CreateReceiver) (*CreateReceiverResponse, error) {
- return service.CreateReceiverContext(
- context.Background(),
- request,
- )
- }
- func (service *receiverPort) DeleteReceiverContext(ctx context.Context, request *DeleteReceiver) (*DeleteReceiverResponse, error) {
- response := new(DeleteReceiverResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/DeleteReceiver", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) DeleteReceiver(request *DeleteReceiver) (*DeleteReceiverResponse, error) {
- return service.DeleteReceiverContext(
- context.Background(),
- request,
- )
- }
- func (service *receiverPort) ConfigureReceiverContext(ctx context.Context, request *ConfigureReceiver) (*ConfigureReceiverResponse, error) {
- response := new(ConfigureReceiverResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/ConfigureReceiver", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) ConfigureReceiver(request *ConfigureReceiver) (*ConfigureReceiverResponse, error) {
- return service.ConfigureReceiverContext(
- context.Background(),
- request,
- )
- }
- func (service *receiverPort) SetReceiverModeContext(ctx context.Context, request *SetReceiverMode) (*SetReceiverModeResponse, error) {
- response := new(SetReceiverModeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/SetReceiverMode", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) SetReceiverMode(request *SetReceiverMode) (*SetReceiverModeResponse, error) {
- return service.SetReceiverModeContext(
- context.Background(),
- request,
- )
- }
- func (service *receiverPort) GetReceiverStateContext(ctx context.Context, request *GetReceiverState) (*GetReceiverStateResponse, error) {
- response := new(GetReceiverStateResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/receiver/wsdl/GetReceiverState", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *receiverPort) GetReceiverState(request *GetReceiverState) (*GetReceiverStateResponse, error) {
- return service.GetReceiverStateContext(
- context.Background(),
- request,
- )
- }
- // AnyURI type
- type AnyURI string
- // Duration type
- type Duration string
- // QName type
- type QName string
- // NCName type
- type NCName string
- // AnySimpleType type
- type AnySimpleType string
- // String type
- type String string
|