media.go 353 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559
  1. package media
  2. import (
  3. "context"
  4. "encoding/xml"
  5. "time"
  6. "lc/common/onvif/soap"
  7. )
  8. // against "unused imports"
  9. var _ time.Time
  10. var _ xml.Name
  11. // Indication which encodings are supported for this video source. The list may contain one or more enumeration values of tt:VideoEncoding.
  12. // EncodingTypes type
  13. type EncodingTypes []string
  14. // GetServiceCapabilities type
  15. type GetServiceCapabilities struct {
  16. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetServiceCapabilities"`
  17. }
  18. // GetServiceCapabilitiesResponse type
  19. type GetServiceCapabilitiesResponse struct {
  20. XMLName xml.Name `xml:"GetServiceCapabilitiesResponse"`
  21. // The capabilities for the media service is returned in the Capabilities element.
  22. Capabilities Capabilities `xml:"Capabilities,omitempty"`
  23. }
  24. // GetVideoSources type
  25. type GetVideoSources struct {
  26. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoSources"`
  27. }
  28. // GetVideoSourcesResponse type
  29. type GetVideoSourcesResponse struct {
  30. XMLName xml.Name `xml:"GetVideoSourcesResponse"`
  31. // List of existing Video Sources
  32. VideoSources []VideoSource `xml:"VideoSources,omitempty"`
  33. }
  34. // GetAudioSources type
  35. type GetAudioSources struct {
  36. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioSources"`
  37. }
  38. // GetAudioSourcesResponse type
  39. type GetAudioSourcesResponse struct {
  40. XMLName xml.Name `xml:"GetAudioSourcesResponse"`
  41. // List of existing Audio Sources
  42. AudioSources []AudioSource `xml:"AudioSources,omitempty"`
  43. }
  44. // GetAudioOutputs type
  45. type GetAudioOutputs struct {
  46. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioOutputs"`
  47. }
  48. // GetAudioOutputsResponse type
  49. type GetAudioOutputsResponse struct {
  50. XMLName xml.Name `xml:"GetAudioOutputsResponse"`
  51. // List of existing Audio Outputs
  52. AudioOutputs []AudioOutput `xml:"AudioOutputs,omitempty"`
  53. }
  54. // CreateProfile type
  55. type CreateProfile struct {
  56. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl CreateProfile"`
  57. // friendly name of the profile to be created
  58. Name Name `xml:"http://www.onvif.org/ver10/media/wsdl Name,omitempty"`
  59. // Optional token, specifying the unique identifier of the new profile. A device supports at least a token length of 12 characters and characters "A-Z" | "a-z" | "0-9" | "-.".
  60. Token ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl Token,omitempty"`
  61. }
  62. // CreateProfileResponse type
  63. type CreateProfileResponse struct {
  64. XMLName xml.Name `xml:"CreateProfileResponse"`
  65. // returns the new created profile
  66. Profile Profile `xml:"Profile,omitempty"`
  67. }
  68. // GetProfile type
  69. type GetProfile struct {
  70. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetProfile"`
  71. // this command requests a specific profile
  72. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  73. }
  74. // GetProfileResponse type
  75. type GetProfileResponse struct {
  76. XMLName xml.Name `xml:"GetProfileResponse"`
  77. // returns the requested media profile
  78. Profile Profile `xml:"Profile,omitempty"`
  79. }
  80. // GetProfiles type
  81. type GetProfiles struct {
  82. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetProfiles"`
  83. }
  84. // GetProfilesResponse type
  85. type GetProfilesResponse struct {
  86. XMLName xml.Name `xml:"GetProfilesResponse"`
  87. // lists all profiles that exist in the media service
  88. Profiles []Profile `xml:"Profiles,omitempty"`
  89. }
  90. // AddVideoEncoderConfiguration type
  91. type AddVideoEncoderConfiguration struct {
  92. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddVideoEncoderConfiguration"`
  93. // Reference to the profile where the configuration should be added
  94. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  95. // Contains a reference to the VideoEncoderConfiguration to add
  96. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  97. }
  98. // AddVideoEncoderConfigurationResponse type
  99. type AddVideoEncoderConfigurationResponse struct {
  100. XMLName xml.Name `xml:"AddVideoEncoderConfigurationResponse"`
  101. }
  102. // RemoveVideoEncoderConfiguration type
  103. type RemoveVideoEncoderConfiguration struct {
  104. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveVideoEncoderConfiguration"`
  105. // Contains a reference to the media profile from which the
  106. // VideoEncoderConfiguration shall be removed.
  107. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  108. }
  109. // RemoveVideoEncoderConfigurationResponse type
  110. type RemoveVideoEncoderConfigurationResponse struct {
  111. XMLName xml.Name `xml:"RemoveVideoEncoderConfigurationResponse"`
  112. }
  113. // AddVideoSourceConfiguration type
  114. type AddVideoSourceConfiguration struct {
  115. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddVideoSourceConfiguration"`
  116. // Reference to the profile where the configuration should be added
  117. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  118. // Contains a reference to the VideoSourceConfiguration to add
  119. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  120. }
  121. // AddVideoSourceConfigurationResponse type
  122. type AddVideoSourceConfigurationResponse struct {
  123. XMLName xml.Name `xml:"AddVideoSourceConfigurationResponse"`
  124. }
  125. // RemoveVideoSourceConfiguration type
  126. type RemoveVideoSourceConfiguration struct {
  127. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveVideoSourceConfiguration"`
  128. // Contains a reference to the media profile from which the
  129. // VideoSourceConfiguration shall be removed.
  130. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  131. }
  132. // RemoveVideoSourceConfigurationResponse type
  133. type RemoveVideoSourceConfigurationResponse struct {
  134. XMLName xml.Name `xml:"RemoveVideoSourceConfigurationResponse"`
  135. }
  136. // AddAudioEncoderConfiguration type
  137. type AddAudioEncoderConfiguration struct {
  138. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddAudioEncoderConfiguration"`
  139. // Reference to the profile where the configuration should be added
  140. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  141. // Contains a reference to the AudioEncoderConfiguration to add
  142. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  143. }
  144. // AddAudioEncoderConfigurationResponse type
  145. type AddAudioEncoderConfigurationResponse struct {
  146. XMLName xml.Name `xml:"AddAudioEncoderConfigurationResponse"`
  147. }
  148. // RemoveAudioEncoderConfiguration type
  149. type RemoveAudioEncoderConfiguration struct {
  150. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveAudioEncoderConfiguration"`
  151. // Contains a reference to the media profile from which the
  152. // AudioEncoderConfiguration shall be removed.
  153. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  154. }
  155. // RemoveAudioEncoderConfigurationResponse type
  156. type RemoveAudioEncoderConfigurationResponse struct {
  157. XMLName xml.Name `xml:"RemoveAudioEncoderConfigurationResponse"`
  158. }
  159. // AddAudioSourceConfiguration type
  160. type AddAudioSourceConfiguration struct {
  161. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddAudioSourceConfiguration"`
  162. // Reference to the profile where the configuration should be added
  163. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  164. // Contains a reference to the AudioSourceConfiguration to add
  165. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  166. }
  167. // AddAudioSourceConfigurationResponse type
  168. type AddAudioSourceConfigurationResponse struct {
  169. XMLName xml.Name `xml:"AddAudioSourceConfigurationResponse"`
  170. }
  171. // RemoveAudioSourceConfiguration type
  172. type RemoveAudioSourceConfiguration struct {
  173. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveAudioSourceConfiguration"`
  174. // Contains a reference to the media profile from which the
  175. // AudioSourceConfiguration shall be removed.
  176. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  177. }
  178. // RemoveAudioSourceConfigurationResponse type
  179. type RemoveAudioSourceConfigurationResponse struct {
  180. XMLName xml.Name `xml:"RemoveAudioSourceConfigurationResponse"`
  181. }
  182. // AddPTZConfiguration type
  183. type AddPTZConfiguration struct {
  184. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddPTZConfiguration"`
  185. // Reference to the profile where the configuration should be added
  186. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  187. // Contains a reference to the PTZConfiguration to add
  188. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  189. }
  190. // AddPTZConfigurationResponse type
  191. type AddPTZConfigurationResponse struct {
  192. XMLName xml.Name `xml:"AddPTZConfigurationResponse"`
  193. }
  194. // RemovePTZConfiguration type
  195. type RemovePTZConfiguration struct {
  196. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemovePTZConfiguration"`
  197. // Contains a reference to the media profile from which the
  198. // PTZConfiguration shall be removed.
  199. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  200. }
  201. // RemovePTZConfigurationResponse type
  202. type RemovePTZConfigurationResponse struct {
  203. XMLName xml.Name `xml:"RemovePTZConfigurationResponse"`
  204. }
  205. // AddVideoAnalyticsConfiguration type
  206. type AddVideoAnalyticsConfiguration struct {
  207. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddVideoAnalyticsConfiguration"`
  208. // Reference to the profile where the configuration should be added
  209. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  210. // Contains a reference to the VideoAnalyticsConfiguration to add
  211. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  212. }
  213. // AddVideoAnalyticsConfigurationResponse type
  214. type AddVideoAnalyticsConfigurationResponse struct {
  215. XMLName xml.Name `xml:"AddVideoAnalyticsConfigurationResponse"`
  216. }
  217. // RemoveVideoAnalyticsConfiguration type
  218. type RemoveVideoAnalyticsConfiguration struct {
  219. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveVideoAnalyticsConfiguration"`
  220. // Contains a reference to the media profile from which the
  221. // VideoAnalyticsConfiguration shall be removed.
  222. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  223. }
  224. // RemoveVideoAnalyticsConfigurationResponse type
  225. type RemoveVideoAnalyticsConfigurationResponse struct {
  226. XMLName xml.Name `xml:"RemoveVideoAnalyticsConfigurationResponse"`
  227. }
  228. // AddMetadataConfiguration type
  229. type AddMetadataConfiguration struct {
  230. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddMetadataConfiguration"`
  231. // Reference to the profile where the configuration should be added
  232. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  233. // Contains a reference to the MetadataConfiguration to add
  234. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  235. }
  236. // AddMetadataConfigurationResponse type
  237. type AddMetadataConfigurationResponse struct {
  238. XMLName xml.Name `xml:"AddMetadataConfigurationResponse"`
  239. }
  240. // RemoveMetadataConfiguration type
  241. type RemoveMetadataConfiguration struct {
  242. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveMetadataConfiguration"`
  243. // Contains a reference to the media profile from which the
  244. // MetadataConfiguration shall be removed.
  245. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  246. }
  247. // RemoveMetadataConfigurationResponse type
  248. type RemoveMetadataConfigurationResponse struct {
  249. XMLName xml.Name `xml:"RemoveMetadataConfigurationResponse"`
  250. }
  251. // AddAudioOutputConfiguration type
  252. type AddAudioOutputConfiguration struct {
  253. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddAudioOutputConfiguration"`
  254. // Reference to the profile where the configuration should be added
  255. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  256. // Contains a reference to the AudioOutputConfiguration to add
  257. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  258. }
  259. // AddAudioOutputConfigurationResponse type
  260. type AddAudioOutputConfigurationResponse struct {
  261. XMLName xml.Name `xml:"AddAudioOutputConfigurationResponse"`
  262. }
  263. // RemoveAudioOutputConfiguration type
  264. type RemoveAudioOutputConfiguration struct {
  265. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveAudioOutputConfiguration"`
  266. // Contains a reference to the media profile from which the
  267. // AudioOutputConfiguration shall be removed.
  268. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  269. }
  270. // RemoveAudioOutputConfigurationResponse type
  271. type RemoveAudioOutputConfigurationResponse struct {
  272. XMLName xml.Name `xml:"RemoveAudioOutputConfigurationResponse"`
  273. }
  274. // AddAudioDecoderConfiguration type
  275. type AddAudioDecoderConfiguration struct {
  276. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl AddAudioDecoderConfiguration"`
  277. // This element contains a reference to the profile where the configuration should be added.
  278. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  279. // This element contains a reference to the AudioDecoderConfiguration to add.
  280. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  281. }
  282. // AddAudioDecoderConfigurationResponse type
  283. type AddAudioDecoderConfigurationResponse struct {
  284. XMLName xml.Name `xml:"AddAudioDecoderConfigurationResponse"`
  285. }
  286. // RemoveAudioDecoderConfiguration type
  287. type RemoveAudioDecoderConfiguration struct {
  288. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl RemoveAudioDecoderConfiguration"`
  289. // This element contains a reference to the media profile from which the AudioDecoderConfiguration shall be removed.
  290. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  291. }
  292. // RemoveAudioDecoderConfigurationResponse type
  293. type RemoveAudioDecoderConfigurationResponse struct {
  294. XMLName xml.Name `xml:"RemoveAudioDecoderConfigurationResponse"`
  295. }
  296. // DeleteProfile type
  297. type DeleteProfile struct {
  298. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl DeleteProfile"`
  299. // This element contains a reference to the profile that should be deleted.
  300. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  301. }
  302. // DeleteProfileResponse type
  303. type DeleteProfileResponse struct {
  304. XMLName xml.Name `xml:"DeleteProfileResponse"`
  305. }
  306. // GetVideoEncoderConfigurations type
  307. type GetVideoEncoderConfigurations struct {
  308. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoEncoderConfigurations"`
  309. }
  310. // GetVideoEncoderConfigurationsResponse type
  311. type GetVideoEncoderConfigurationsResponse struct {
  312. XMLName xml.Name `xml:"GetVideoEncoderConfigurationsResponse"`
  313. // This element contains a list of video encoder configurations.
  314. Configurations []VideoEncoderConfiguration `xml:"Configurations,omitempty"`
  315. }
  316. // GetVideoSourceConfigurations type
  317. type GetVideoSourceConfigurations struct {
  318. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoSourceConfigurations"`
  319. }
  320. // GetVideoSourceConfigurationsResponse type
  321. type GetVideoSourceConfigurationsResponse struct {
  322. XMLName xml.Name `xml:"GetVideoSourceConfigurationsResponse"`
  323. // This element contains a list of video source configurations.
  324. Configurations []VideoSourceConfiguration `xml:"Configurations,omitempty"`
  325. }
  326. // GetAudioEncoderConfigurations type
  327. type GetAudioEncoderConfigurations struct {
  328. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioEncoderConfigurations"`
  329. }
  330. // GetAudioEncoderConfigurationsResponse type
  331. type GetAudioEncoderConfigurationsResponse struct {
  332. XMLName xml.Name `xml:"GetAudioEncoderConfigurationsResponse"`
  333. // This element contains a list of audio encoder configurations.
  334. Configurations []AudioEncoderConfiguration `xml:"Configurations,omitempty"`
  335. }
  336. // GetAudioSourceConfigurations type
  337. type GetAudioSourceConfigurations struct {
  338. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioSourceConfigurations"`
  339. }
  340. // GetAudioSourceConfigurationsResponse type
  341. type GetAudioSourceConfigurationsResponse struct {
  342. XMLName xml.Name `xml:"GetAudioSourceConfigurationsResponse"`
  343. // This element contains a list of audio source configurations.
  344. Configurations []AudioSourceConfiguration `xml:"Configurations,omitempty"`
  345. }
  346. // GetVideoAnalyticsConfigurations type
  347. type GetVideoAnalyticsConfigurations struct {
  348. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoAnalyticsConfigurations"`
  349. }
  350. // GetVideoAnalyticsConfigurationsResponse type
  351. type GetVideoAnalyticsConfigurationsResponse struct {
  352. XMLName xml.Name `xml:"GetVideoAnalyticsConfigurationsResponse"`
  353. // This element contains a list of VideoAnalytics configurations.
  354. Configurations []VideoAnalyticsConfiguration `xml:"Configurations,omitempty"`
  355. }
  356. // GetMetadataConfigurations type
  357. type GetMetadataConfigurations struct {
  358. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetMetadataConfigurations"`
  359. }
  360. // GetMetadataConfigurationsResponse type
  361. type GetMetadataConfigurationsResponse struct {
  362. XMLName xml.Name `xml:"GetMetadataConfigurationsResponse"`
  363. // This element contains a list of metadata configurations
  364. Configurations []MetadataConfiguration `xml:"Configurations,omitempty"`
  365. }
  366. // GetAudioOutputConfigurations type
  367. type GetAudioOutputConfigurations struct {
  368. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioOutputConfigurations"`
  369. }
  370. // GetAudioOutputConfigurationsResponse type
  371. type GetAudioOutputConfigurationsResponse struct {
  372. XMLName xml.Name `xml:"GetAudioOutputConfigurationsResponse"`
  373. // This element contains a list of audio output configurations
  374. Configurations []AudioOutputConfiguration `xml:"Configurations,omitempty"`
  375. }
  376. // GetAudioDecoderConfigurations type
  377. type GetAudioDecoderConfigurations struct {
  378. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioDecoderConfigurations"`
  379. }
  380. // GetAudioDecoderConfigurationsResponse type
  381. type GetAudioDecoderConfigurationsResponse struct {
  382. XMLName xml.Name `xml:"GetAudioDecoderConfigurationsResponse"`
  383. // This element contains a list of audio decoder configurations
  384. Configurations []AudioDecoderConfiguration `xml:"Configurations,omitempty"`
  385. }
  386. // GetVideoSourceConfiguration type
  387. type GetVideoSourceConfiguration struct {
  388. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoSourceConfiguration"`
  389. // Token of the requested video source configuration.
  390. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  391. }
  392. // GetVideoSourceConfigurationResponse type
  393. type GetVideoSourceConfigurationResponse struct {
  394. XMLName xml.Name `xml:"GetVideoSourceConfigurationResponse"`
  395. // The requested video source configuration.
  396. Configuration VideoSourceConfiguration `xml:"Configuration,omitempty"`
  397. }
  398. // GetVideoEncoderConfiguration type
  399. type GetVideoEncoderConfiguration struct {
  400. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoEncoderConfiguration"`
  401. // Token of the requested video encoder configuration.
  402. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  403. }
  404. // GetVideoEncoderConfigurationResponse type
  405. type GetVideoEncoderConfigurationResponse struct {
  406. XMLName xml.Name `xml:"GetVideoEncoderConfigurationResponse"`
  407. // The requested video encoder configuration.
  408. Configuration VideoEncoderConfiguration `xml:"Configuration,omitempty"`
  409. }
  410. // GetAudioSourceConfiguration type
  411. type GetAudioSourceConfiguration struct {
  412. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioSourceConfiguration"`
  413. // Token of the requested audio source configuration.
  414. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  415. }
  416. // GetAudioSourceConfigurationResponse type
  417. type GetAudioSourceConfigurationResponse struct {
  418. XMLName xml.Name `xml:"GetAudioSourceConfigurationResponse"`
  419. // The requested audio source configuration.
  420. Configuration AudioSourceConfiguration `xml:"Configuration,omitempty"`
  421. }
  422. // GetAudioEncoderConfiguration type
  423. type GetAudioEncoderConfiguration struct {
  424. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioEncoderConfiguration"`
  425. // Token of the requested audio encoder configuration.
  426. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  427. }
  428. // GetAudioEncoderConfigurationResponse type
  429. type GetAudioEncoderConfigurationResponse struct {
  430. XMLName xml.Name `xml:"GetAudioEncoderConfigurationResponse"`
  431. // The requested audio encoder configuration
  432. Configuration AudioEncoderConfiguration `xml:"Configuration,omitempty"`
  433. }
  434. // GetVideoAnalyticsConfiguration type
  435. type GetVideoAnalyticsConfiguration struct {
  436. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoAnalyticsConfiguration"`
  437. // Token of the requested video analytics configuration.
  438. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  439. }
  440. // GetVideoAnalyticsConfigurationResponse type
  441. type GetVideoAnalyticsConfigurationResponse struct {
  442. XMLName xml.Name `xml:"GetVideoAnalyticsConfigurationResponse"`
  443. // The requested video analytics configuration.
  444. Configuration VideoAnalyticsConfiguration `xml:"Configuration,omitempty"`
  445. }
  446. // GetMetadataConfiguration type
  447. type GetMetadataConfiguration struct {
  448. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetMetadataConfiguration"`
  449. // Token of the requested metadata configuration.
  450. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  451. }
  452. // GetMetadataConfigurationResponse type
  453. type GetMetadataConfigurationResponse struct {
  454. XMLName xml.Name `xml:"GetMetadataConfigurationResponse"`
  455. // The requested metadata configuration.
  456. Configuration MetadataConfiguration `xml:"Configuration,omitempty"`
  457. }
  458. // GetAudioOutputConfiguration type
  459. type GetAudioOutputConfiguration struct {
  460. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioOutputConfiguration"`
  461. // Token of the requested audio output configuration.
  462. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  463. }
  464. // GetAudioOutputConfigurationResponse type
  465. type GetAudioOutputConfigurationResponse struct {
  466. XMLName xml.Name `xml:"GetAudioOutputConfigurationResponse"`
  467. // The requested audio output configuration.
  468. Configuration AudioOutputConfiguration `xml:"Configuration,omitempty"`
  469. }
  470. // GetAudioDecoderConfiguration type
  471. type GetAudioDecoderConfiguration struct {
  472. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioDecoderConfiguration"`
  473. // Token of the requested audio decoder configuration.
  474. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  475. }
  476. // GetAudioDecoderConfigurationResponse type
  477. type GetAudioDecoderConfigurationResponse struct {
  478. XMLName xml.Name `xml:"GetAudioDecoderConfigurationResponse"`
  479. // The requested audio decoder configuration
  480. Configuration AudioDecoderConfiguration `xml:"Configuration,omitempty"`
  481. }
  482. // GetCompatibleVideoEncoderConfigurations type
  483. type GetCompatibleVideoEncoderConfigurations struct {
  484. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleVideoEncoderConfigurations"`
  485. // Contains the token of an existing media profile the configurations shall be compatible with.
  486. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  487. }
  488. // GetCompatibleVideoEncoderConfigurationsResponse type
  489. type GetCompatibleVideoEncoderConfigurationsResponse struct {
  490. XMLName xml.Name `xml:"GetCompatibleVideoEncoderConfigurationsResponse"`
  491. // Contains a list of video encoder configurations that are compatible with the specified media profile.
  492. Configurations []VideoEncoderConfiguration `xml:"Configurations,omitempty"`
  493. }
  494. // GetCompatibleVideoSourceConfigurations type
  495. type GetCompatibleVideoSourceConfigurations struct {
  496. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleVideoSourceConfigurations"`
  497. // Contains the token of an existing media profile the configurations shall be compatible with.
  498. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  499. }
  500. // GetCompatibleVideoSourceConfigurationsResponse type
  501. type GetCompatibleVideoSourceConfigurationsResponse struct {
  502. XMLName xml.Name `xml:"GetCompatibleVideoSourceConfigurationsResponse"`
  503. // Contains a list of video source configurations that are compatible with the specified media profile.
  504. Configurations []VideoSourceConfiguration `xml:"Configurations,omitempty"`
  505. }
  506. // GetCompatibleAudioEncoderConfigurations type
  507. type GetCompatibleAudioEncoderConfigurations struct {
  508. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleAudioEncoderConfigurations"`
  509. // Contains the token of an existing media profile the configurations shall be compatible with.
  510. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  511. }
  512. // GetCompatibleAudioEncoderConfigurationsResponse type
  513. type GetCompatibleAudioEncoderConfigurationsResponse struct {
  514. XMLName xml.Name `xml:"GetCompatibleAudioEncoderConfigurationsResponse"`
  515. // Contains a list of audio encoder configurations that are compatible with the specified media profile.
  516. Configurations []AudioEncoderConfiguration `xml:"Configurations,omitempty"`
  517. }
  518. // GetCompatibleAudioSourceConfigurations type
  519. type GetCompatibleAudioSourceConfigurations struct {
  520. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleAudioSourceConfigurations"`
  521. // Contains the token of an existing media profile the configurations shall be compatible with.
  522. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  523. }
  524. // GetCompatibleAudioSourceConfigurationsResponse type
  525. type GetCompatibleAudioSourceConfigurationsResponse struct {
  526. XMLName xml.Name `xml:"GetCompatibleAudioSourceConfigurationsResponse"`
  527. // Contains a list of audio source configurations that are compatible with the specified media profile.
  528. Configurations []AudioSourceConfiguration `xml:"Configurations,omitempty"`
  529. }
  530. // GetCompatibleVideoAnalyticsConfigurations type
  531. type GetCompatibleVideoAnalyticsConfigurations struct {
  532. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleVideoAnalyticsConfigurations"`
  533. // Contains the token of an existing media profile the configurations shall be compatible with.
  534. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  535. }
  536. // GetCompatibleVideoAnalyticsConfigurationsResponse type
  537. type GetCompatibleVideoAnalyticsConfigurationsResponse struct {
  538. XMLName xml.Name `xml:"GetCompatibleVideoAnalyticsConfigurationsResponse"`
  539. // Contains a list of video analytics configurations that are compatible with the specified media profile.
  540. Configurations []VideoAnalyticsConfiguration `xml:"Configurations,omitempty"`
  541. }
  542. // GetCompatibleMetadataConfigurations type
  543. type GetCompatibleMetadataConfigurations struct {
  544. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleMetadataConfigurations"`
  545. // Contains the token of an existing media profile the configurations shall be compatible with.
  546. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  547. }
  548. // GetCompatibleMetadataConfigurationsResponse type
  549. type GetCompatibleMetadataConfigurationsResponse struct {
  550. XMLName xml.Name `xml:"GetCompatibleMetadataConfigurationsResponse"`
  551. // Contains a list of metadata configurations that are compatible with the specified media profile.
  552. Configurations []MetadataConfiguration `xml:"Configurations,omitempty"`
  553. }
  554. // GetCompatibleAudioOutputConfigurations type
  555. type GetCompatibleAudioOutputConfigurations struct {
  556. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleAudioOutputConfigurations"`
  557. // Contains the token of an existing media profile the configurations shall be compatible with.
  558. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  559. }
  560. // GetCompatibleAudioOutputConfigurationsResponse type
  561. type GetCompatibleAudioOutputConfigurationsResponse struct {
  562. XMLName xml.Name `xml:"GetCompatibleAudioOutputConfigurationsResponse"`
  563. // Contains a list of audio output configurations that are compatible with the specified media profile.
  564. Configurations []AudioOutputConfiguration `xml:"Configurations,omitempty"`
  565. }
  566. // GetCompatibleAudioDecoderConfigurations type
  567. type GetCompatibleAudioDecoderConfigurations struct {
  568. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetCompatibleAudioDecoderConfigurations"`
  569. // Contains the token of an existing media profile the configurations shall be compatible with.
  570. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  571. }
  572. // GetCompatibleAudioDecoderConfigurationsResponse type
  573. type GetCompatibleAudioDecoderConfigurationsResponse struct {
  574. XMLName xml.Name `xml:"GetCompatibleAudioDecoderConfigurationsResponse"`
  575. // Contains a list of audio decoder configurations that are compatible with the specified media profile.
  576. Configurations []AudioDecoderConfiguration `xml:"Configurations,omitempty"`
  577. }
  578. // SetVideoEncoderConfiguration type
  579. type SetVideoEncoderConfiguration struct {
  580. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetVideoEncoderConfiguration"`
  581. // Contains the modified video encoder configuration. The configuration shall exist in the device.
  582. Configuration VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  583. // The ForcePersistence element is obsolete and should always be assumed to be true.
  584. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  585. }
  586. // SetVideoEncoderConfigurationResponse type
  587. type SetVideoEncoderConfigurationResponse struct {
  588. XMLName xml.Name `xml:"SetVideoEncoderConfigurationResponse"`
  589. }
  590. // SetVideoSourceConfiguration type
  591. type SetVideoSourceConfiguration struct {
  592. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetVideoSourceConfiguration"`
  593. // Contains the modified video source configuration. The configuration shall exist in the device.
  594. Configuration VideoSourceConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  595. // The ForcePersistence element is obsolete and should always be assumed to be true.
  596. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  597. }
  598. // SetVideoSourceConfigurationResponse type
  599. type SetVideoSourceConfigurationResponse struct {
  600. XMLName xml.Name `xml:"SetVideoSourceConfigurationResponse"`
  601. }
  602. // SetAudioEncoderConfiguration type
  603. type SetAudioEncoderConfiguration struct {
  604. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetAudioEncoderConfiguration"`
  605. // Contains the modified audio encoder configuration. The configuration shall exist in the device.
  606. Configuration AudioEncoderConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  607. // The ForcePersistence element is obsolete and should always be assumed to be true.
  608. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  609. }
  610. // SetAudioEncoderConfigurationResponse type
  611. type SetAudioEncoderConfigurationResponse struct {
  612. XMLName xml.Name `xml:"SetAudioEncoderConfigurationResponse"`
  613. }
  614. // SetAudioSourceConfiguration type
  615. type SetAudioSourceConfiguration struct {
  616. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetAudioSourceConfiguration"`
  617. // Contains the modified audio source configuration. The configuration shall exist in the device.
  618. Configuration AudioSourceConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  619. // The ForcePersistence element is obsolete and should always be assumed to be true.
  620. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  621. }
  622. // SetAudioSourceConfigurationResponse type
  623. type SetAudioSourceConfigurationResponse struct {
  624. XMLName xml.Name `xml:"SetAudioSourceConfigurationResponse"`
  625. }
  626. // SetVideoAnalyticsConfiguration type
  627. type SetVideoAnalyticsConfiguration struct {
  628. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetVideoAnalyticsConfiguration"`
  629. // Contains the modified video analytics configuration. The configuration shall exist in the device.
  630. Configuration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  631. // The ForcePersistence element is obsolete and should always be assumed to be true.
  632. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  633. }
  634. // SetVideoAnalyticsConfigurationResponse type
  635. type SetVideoAnalyticsConfigurationResponse struct {
  636. XMLName xml.Name `xml:"SetVideoAnalyticsConfigurationResponse"`
  637. }
  638. // SetMetadataConfiguration type
  639. type SetMetadataConfiguration struct {
  640. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetMetadataConfiguration"`
  641. // Contains the modified metadata configuration. The configuration shall exist in the device.
  642. Configuration MetadataConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  643. // The ForcePersistence element is obsolete and should always be assumed to be true.
  644. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  645. }
  646. // SetMetadataConfigurationResponse type
  647. type SetMetadataConfigurationResponse struct {
  648. XMLName xml.Name `xml:"SetMetadataConfigurationResponse"`
  649. }
  650. // SetAudioOutputConfiguration type
  651. type SetAudioOutputConfiguration struct {
  652. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetAudioOutputConfiguration"`
  653. // Contains the modified audio output configuration. The configuration shall exist in the device.
  654. Configuration AudioOutputConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  655. // The ForcePersistence element is obsolete and should always be assumed to be true.
  656. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  657. }
  658. // SetAudioOutputConfigurationResponse type
  659. type SetAudioOutputConfigurationResponse struct {
  660. XMLName xml.Name `xml:"SetAudioOutputConfigurationResponse"`
  661. }
  662. // SetAudioDecoderConfiguration type
  663. type SetAudioDecoderConfiguration struct {
  664. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetAudioDecoderConfiguration"`
  665. // Contains the modified audio decoder configuration. The configuration shall exist in the device.
  666. Configuration AudioDecoderConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl Configuration,omitempty"`
  667. // The ForcePersistence element is obsolete and should always be assumed to be true.
  668. ForcePersistence bool `xml:"http://www.onvif.org/ver10/media/wsdl ForcePersistence,omitempty"`
  669. }
  670. // SetAudioDecoderConfigurationResponse type
  671. type SetAudioDecoderConfigurationResponse struct {
  672. XMLName xml.Name `xml:"SetAudioDecoderConfigurationResponse"`
  673. }
  674. // GetVideoSourceConfigurationOptions type
  675. type GetVideoSourceConfigurationOptions struct {
  676. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoSourceConfigurationOptions"`
  677. // Optional video source configurationToken that specifies an existing configuration that the options are intended for.
  678. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  679. // Optional ProfileToken that specifies an existing media profile that the options shall be compatible with.
  680. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  681. }
  682. // GetVideoSourceConfigurationOptionsResponse type
  683. type GetVideoSourceConfigurationOptionsResponse struct {
  684. XMLName xml.Name `xml:"GetVideoSourceConfigurationOptionsResponse"`
  685. // This message contains the video source configuration options. If a video source configuration is specified, the options shall concern that particular configuration. If a media profile is specified, the options shall be compatible with that media profile. If no tokens are specified, the options shall be considered generic for the device.
  686. Options VideoSourceConfigurationOptions `xml:"Options,omitempty"`
  687. }
  688. // GetVideoEncoderConfigurationOptions type
  689. type GetVideoEncoderConfigurationOptions struct {
  690. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoEncoderConfigurationOptions"`
  691. // Optional video encoder configuration token that specifies an existing configuration that the options are intended for.
  692. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  693. // Optional ProfileToken that specifies an existing media profile that the options shall be compatible with.
  694. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  695. }
  696. // GetVideoEncoderConfigurationOptionsResponse type
  697. type GetVideoEncoderConfigurationOptionsResponse struct {
  698. XMLName xml.Name `xml:"GetVideoEncoderConfigurationOptionsResponse"`
  699. Options VideoEncoderConfigurationOptions `xml:"Options,omitempty"`
  700. }
  701. // GetAudioSourceConfigurationOptions type
  702. type GetAudioSourceConfigurationOptions struct {
  703. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioSourceConfigurationOptions"`
  704. // Optional audio source configuration token that specifies an existing configuration that the options are intended for.
  705. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  706. // Optional ProfileToken that specifies an existing media profile that the options shall be compatible with.
  707. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  708. }
  709. // GetAudioSourceConfigurationOptionsResponse type
  710. type GetAudioSourceConfigurationOptionsResponse struct {
  711. XMLName xml.Name `xml:"GetAudioSourceConfigurationOptionsResponse"`
  712. // This message contains the audio source configuration options. If a audio source configuration is specified, the options shall concern that particular configuration. If a media profile is specified, the options shall be compatible with that media profile. If no tokens are specified, the options shall be considered generic for the device.
  713. Options AudioSourceConfigurationOptions `xml:"Options,omitempty"`
  714. }
  715. // GetAudioEncoderConfigurationOptions type
  716. type GetAudioEncoderConfigurationOptions struct {
  717. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioEncoderConfigurationOptions"`
  718. // Optional audio encoder configuration token that specifies an existing configuration that the options are intended for.
  719. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  720. // Optional ProfileToken that specifies an existing media profile that the options shall be compatible with.
  721. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  722. }
  723. // GetAudioEncoderConfigurationOptionsResponse type
  724. type GetAudioEncoderConfigurationOptionsResponse struct {
  725. XMLName xml.Name `xml:"GetAudioEncoderConfigurationOptionsResponse"`
  726. // This message contains the audio encoder configuration options. If a audio encoder configuration is specified, the options shall concern that particular configuration. If a media profile is specified, the options shall be compatible with that media profile. If no tokens are specified, the options shall be considered generic for the device.
  727. Options AudioEncoderConfigurationOptions `xml:"Options,omitempty"`
  728. }
  729. // GetMetadataConfigurationOptions type
  730. type GetMetadataConfigurationOptions struct {
  731. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetMetadataConfigurationOptions"`
  732. // Optional metadata configuration token that specifies an existing configuration that the options are intended for.
  733. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  734. // Optional ProfileToken that specifies an existing media profile that the options shall be compatible with.
  735. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  736. }
  737. // GetMetadataConfigurationOptionsResponse type
  738. type GetMetadataConfigurationOptionsResponse struct {
  739. XMLName xml.Name `xml:"GetMetadataConfigurationOptionsResponse"`
  740. // This message contains the metadata configuration options. If a metadata configuration is specified, the options shall concern that particular configuration. If a media profile is specified, the options shall be compatible with that media profile. If no tokens are specified, the options shall be considered generic for the device.
  741. Options MetadataConfigurationOptions `xml:"Options,omitempty"`
  742. }
  743. // GetAudioOutputConfigurationOptions type
  744. type GetAudioOutputConfigurationOptions struct {
  745. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioOutputConfigurationOptions"`
  746. // Optional audio output configuration token that specifies an existing configuration that the options are intended for.
  747. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  748. // Optional ProfileToken that specifies an existing media profile that the options shall be compatible with.
  749. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  750. }
  751. // GetAudioOutputConfigurationOptionsResponse type
  752. type GetAudioOutputConfigurationOptionsResponse struct {
  753. XMLName xml.Name `xml:"GetAudioOutputConfigurationOptionsResponse"`
  754. // This message contains the audio output configuration options. If a audio output configuration is specified, the options shall concern that particular configuration. If a media profile is specified, the options shall be compatible with that media profile. If no tokens are specified, the options shall be considered generic for the device.
  755. Options AudioOutputConfigurationOptions `xml:"Options,omitempty"`
  756. }
  757. // GetAudioDecoderConfigurationOptions type
  758. type GetAudioDecoderConfigurationOptions struct {
  759. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetAudioDecoderConfigurationOptions"`
  760. // Optional audio decoder configuration token that specifies an existing configuration that the options are intended for.
  761. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  762. // Optional ProfileToken that specifies an existing media profile that the options shall be compatible with.
  763. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  764. }
  765. // GetAudioDecoderConfigurationOptionsResponse type
  766. type GetAudioDecoderConfigurationOptionsResponse struct {
  767. XMLName xml.Name `xml:"GetAudioDecoderConfigurationOptionsResponse"`
  768. // This message contains the audio decoder configuration options. If a audio decoder configuration is specified, the options shall concern that particular configuration. If a media profile is specified, the options shall be compatible with that media profile. If no tokens are specified, the options shall be considered generic for the device.
  769. Options AudioDecoderConfigurationOptions `xml:"Options,omitempty"`
  770. }
  771. // GetGuaranteedNumberOfVideoEncoderInstances type
  772. type GetGuaranteedNumberOfVideoEncoderInstances struct {
  773. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetGuaranteedNumberOfVideoEncoderInstances"`
  774. // Token of the video source configuration
  775. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  776. }
  777. // GetGuaranteedNumberOfVideoEncoderInstancesResponse type
  778. type GetGuaranteedNumberOfVideoEncoderInstancesResponse struct {
  779. XMLName xml.Name `xml:"GetGuaranteedNumberOfVideoEncoderInstancesResponse"`
  780. // The minimum guaranteed total number of encoder instances (applications) per VideoSourceConfiguration. The device is able to deliver the TotalNumber of streams
  781. TotalNumber int32 `xml:"TotalNumber,omitempty"`
  782. // If a device limits the number of instances for respective Video Codecs the response contains the information how many Jpeg streams can be set up at the same time per VideoSource.
  783. JPEG int32 `xml:"JPEG,omitempty"`
  784. // If a device limits the number of instances for respective Video Codecs the response contains the information how many H264 streams can be set up at the same time per VideoSource.
  785. H264 int32 `xml:"H264,omitempty"`
  786. // If a device limits the number of instances for respective Video Codecs the response contains the information how many Mpeg4 streams can be set up at the same time per VideoSource.
  787. MPEG4 int32 `xml:"MPEG4,omitempty"`
  788. }
  789. // GetStreamUri type
  790. type GetStreamUri struct {
  791. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetStreamUri"`
  792. // Stream Setup that should be used with the uri
  793. StreamSetup StreamSetup `xml:"http://www.onvif.org/ver10/media/wsdl StreamSetup,omitempty"`
  794. // The ProfileToken element indicates the media profile to use and will define the configuration of the content of the stream.
  795. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  796. }
  797. // GetStreamUriResponse type
  798. type GetStreamUriResponse struct {
  799. XMLName xml.Name `xml:"GetStreamUriResponse"`
  800. MediaUri MediaUri `xml:"MediaUri,omitempty"`
  801. }
  802. // StartMulticastStreaming type
  803. type StartMulticastStreaming struct {
  804. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl StartMulticastStreaming"`
  805. // Contains the token of the Profile that is used to define the multicast stream.
  806. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  807. }
  808. // StartMulticastStreamingResponse type
  809. type StartMulticastStreamingResponse struct {
  810. XMLName xml.Name `xml:"StartMulticastStreamingResponse"`
  811. }
  812. // StopMulticastStreaming type
  813. type StopMulticastStreaming struct {
  814. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl StopMulticastStreaming"`
  815. // Contains the token of the Profile that is used to define the multicast stream.
  816. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  817. }
  818. // StopMulticastStreamingResponse type
  819. type StopMulticastStreamingResponse struct {
  820. XMLName xml.Name `xml:"StopMulticastStreamingResponse"`
  821. }
  822. // SetSynchronizationPoint type
  823. type SetSynchronizationPoint struct {
  824. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetSynchronizationPoint"`
  825. // Contains a Profile reference for which a Synchronization Point is requested.
  826. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  827. }
  828. // SetSynchronizationPointResponse type
  829. type SetSynchronizationPointResponse struct {
  830. XMLName xml.Name `xml:"SetSynchronizationPointResponse"`
  831. }
  832. // GetSnapshotUri type
  833. type GetSnapshotUri struct {
  834. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetSnapshotUri"`
  835. // The ProfileToken element indicates the media profile to use and will define the source and dimensions of the snapshot.
  836. ProfileToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ProfileToken,omitempty"`
  837. }
  838. // GetSnapshotUriResponse type
  839. type GetSnapshotUriResponse struct {
  840. XMLName xml.Name `xml:"GetSnapshotUriResponse"`
  841. MediaUri MediaUri `xml:"MediaUri,omitempty"`
  842. }
  843. // GetVideoSourceModes type
  844. type GetVideoSourceModes struct {
  845. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetVideoSourceModes"`
  846. // Contains a video source reference for which a video source mode is requested.
  847. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl VideoSourceToken,omitempty"`
  848. }
  849. // GetVideoSourceModesResponse type
  850. type GetVideoSourceModesResponse struct {
  851. XMLName xml.Name `xml:"GetVideoSourceModesResponse"`
  852. // Return the information for specified video source mode.
  853. VideoSourceModes []VideoSourceMode `xml:"VideoSourceModes,omitempty"`
  854. }
  855. // SetVideoSourceMode type
  856. type SetVideoSourceMode struct {
  857. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetVideoSourceMode"`
  858. // Contains a video source reference for which a video source mode is requested.
  859. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl VideoSourceToken,omitempty"`
  860. // Indicate video source mode.
  861. VideoSourceModeToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl VideoSourceModeToken,omitempty"`
  862. }
  863. // SetVideoSourceModeResponse type
  864. type SetVideoSourceModeResponse struct {
  865. XMLName xml.Name `xml:"SetVideoSourceModeResponse"`
  866. // The response contains information about rebooting after returning response. When Reboot is set true, a device will reboot automatically after setting mode.
  867. Reboot bool `xml:"Reboot,omitempty"`
  868. }
  869. // GetOSDs type
  870. type GetOSDs struct {
  871. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetOSDs"`
  872. // Token of the Video Source Configuration, which has OSDs associated with are requested. If token not exist, request all available OSDs.
  873. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  874. }
  875. // GetOSDsResponse type
  876. type GetOSDsResponse struct {
  877. XMLName xml.Name `xml:"GetOSDsResponse"`
  878. // This element contains a list of requested OSDs.
  879. OSDs []OSDConfiguration `xml:"OSDs,omitempty"`
  880. }
  881. // GetOSD type
  882. type GetOSD struct {
  883. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetOSD"`
  884. // The GetOSD command fetches the OSD configuration if the OSD token is known.
  885. OSDToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl OSDToken,omitempty"`
  886. }
  887. // GetOSDResponse type
  888. type GetOSDResponse struct {
  889. XMLName xml.Name `xml:"GetOSDResponse"`
  890. // The requested OSD configuration.
  891. OSD OSDConfiguration `xml:"OSD,omitempty"`
  892. }
  893. // SetOSD type
  894. type SetOSD struct {
  895. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl SetOSD"`
  896. // Contains the modified OSD configuration.
  897. OSD OSDConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl OSD,omitempty"`
  898. }
  899. // SetOSDResponse type
  900. type SetOSDResponse struct {
  901. XMLName xml.Name `xml:"SetOSDResponse"`
  902. }
  903. // GetOSDOptions type
  904. type GetOSDOptions struct {
  905. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl GetOSDOptions"`
  906. // Video Source Configuration Token that specifies an existing video source configuration that the options shall be compatible with.
  907. ConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl ConfigurationToken,omitempty"`
  908. }
  909. // GetOSDOptionsResponse type
  910. type GetOSDOptionsResponse struct {
  911. XMLName xml.Name `xml:"GetOSDOptionsResponse"`
  912. OSDOptions OSDConfigurationOptions `xml:"OSDOptions,omitempty"`
  913. }
  914. // CreateOSD type
  915. type CreateOSD struct {
  916. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl CreateOSD"`
  917. // Contain the initial OSD configuration for create.
  918. OSD OSDConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl OSD,omitempty"`
  919. }
  920. // CreateOSDResponse type
  921. type CreateOSDResponse struct {
  922. XMLName xml.Name `xml:"CreateOSDResponse"`
  923. // Returns Token of the newly created OSD
  924. OSDToken ReferenceToken `xml:"OSDToken,omitempty"`
  925. }
  926. // DeleteOSD type
  927. type DeleteOSD struct {
  928. XMLName xml.Name `xml:"http://www.onvif.org/ver10/media/wsdl DeleteOSD"`
  929. // This element contains a reference to the OSD configuration that should be deleted.
  930. OSDToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl OSDToken,omitempty"`
  931. }
  932. // DeleteOSDResponse type
  933. type DeleteOSDResponse struct {
  934. XMLName xml.Name `xml:"DeleteOSDResponse"`
  935. }
  936. // Capabilities type
  937. type Capabilities struct {
  938. // Media profile capabilities.
  939. ProfileCapabilities ProfileCapabilities `xml:"http://www.onvif.org/ver10/media/wsdl ProfileCapabilities,omitempty"`
  940. // Streaming capabilities.
  941. StreamingCapabilities StreamingCapabilities `xml:"http://www.onvif.org/ver10/media/wsdl StreamingCapabilities,omitempty"`
  942. // Indicates if GetSnapshotUri is supported.
  943. SnapshotUri bool `xml:"http://www.onvif.org/ver10/media/wsdl SnapshotUri,attr,omitempty"`
  944. // Indicates whether or not Rotation feature is supported.
  945. Rotation bool `xml:"http://www.onvif.org/ver10/media/wsdl Rotation,attr,omitempty"`
  946. // Indicates the support for changing video source mode.
  947. VideoSourceMode bool `xml:"http://www.onvif.org/ver10/media/wsdl VideoSourceMode,attr,omitempty"`
  948. // Indicates if OSD is supported.
  949. OSD bool `xml:"http://www.onvif.org/ver10/media/wsdl OSD,attr,omitempty"`
  950. // Indicates the support for temporary osd text configuration.
  951. TemporaryOSDText bool `xml:"http://www.onvif.org/ver10/media/wsdl TemporaryOSDText,attr,omitempty"`
  952. // Indicates the support for the Efficient XML Interchange (EXI) binary XML format.
  953. EXICompression bool `xml:"http://www.onvif.org/ver10/media/wsdl EXICompression,attr,omitempty"`
  954. }
  955. // ProfileCapabilities type
  956. type ProfileCapabilities struct {
  957. // Maximum number of profiles supported.
  958. MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,attr,omitempty"`
  959. }
  960. // StreamingCapabilities type
  961. type StreamingCapabilities struct {
  962. // Indicates support for RTP multicast.
  963. RTPMulticast bool `xml:"http://www.onvif.org/ver10/media/wsdl RTPMulticast,attr,omitempty"`
  964. // Indicates support for RTP over TCP.
  965. RTP_TCP bool `xml:"http://www.onvif.org/ver10/media/wsdl RTP_TCP,attr,omitempty"`
  966. // Indicates support for RTP/RTSP/TCP.
  967. RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/media/wsdl RTP_RTSP_TCP,attr,omitempty"`
  968. // Indicates support for non aggregate RTSP control.
  969. NonAggregateControl bool `xml:"http://www.onvif.org/ver10/media/wsdl NonAggregateControl,attr,omitempty"`
  970. // Indicates the device does not support live media streaming via RTSP.
  971. NoRTSPStreaming bool `xml:"http://www.onvif.org/ver10/media/wsdl NoRTSPStreaming,attr,omitempty"`
  972. }
  973. // VideoSourceMode type
  974. type VideoSourceMode struct {
  975. // Max frame rate in frames per second for this video source mode.
  976. MaxFramerate float32 `xml:"http://www.onvif.org/ver10/schema MaxFramerate,omitempty"`
  977. // Max horizontal and vertical resolution for this video source mode.
  978. MaxResolution VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl MaxResolution,omitempty"`
  979. // Indication which encodings are supported for this video source. The list may contain one or more enumeration values of tt:VideoEncoding.
  980. Encodings EncodingTypes `xml:"http://www.onvif.org/ver10/media/wsdl Encodings,omitempty"`
  981. // After setting the mode if a device starts to reboot this value is true. If a device change the mode without rebooting this value is false. If true, configured parameters may not be guaranteed by the device after rebooting.
  982. Reboot bool `xml:"http://www.onvif.org/ver10/media/wsdl Reboot,omitempty"`
  983. // Informative description of this video source mode. This field should be described in English.
  984. Description Description `xml:"http://www.onvif.org/ver10/media/wsdl Description,omitempty"`
  985. Extension VideoSourceModeExtension `xml:"http://www.onvif.org/ver10/media/wsdl Extension,omitempty"`
  986. // Indicate token for video source mode.
  987. Token ReferenceToken `xml:"token,attr,omitempty"`
  988. // Indication of whether this mode is active. If active this value is true. In case of non-indication, it means as false. The value of true shall be had by only one video source mode.
  989. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,attr,omitempty"`
  990. }
  991. // VideoSourceModeExtension type
  992. type VideoSourceModeExtension struct {
  993. }
  994. // FaultcodeEnum type
  995. type FaultcodeEnum QName
  996. const (
  997. // FaultcodeEnumTnsDataEncodingUnknown const
  998. FaultcodeEnumTnsDataEncodingUnknown FaultcodeEnum = "tns:DataEncodingUnknown"
  999. // FaultcodeEnumTnsMustUnderstand const
  1000. FaultcodeEnumTnsMustUnderstand FaultcodeEnum = "tns:MustUnderstand"
  1001. // FaultcodeEnumTnsReceiver const
  1002. FaultcodeEnumTnsReceiver FaultcodeEnum = "tns:Receiver"
  1003. // FaultcodeEnumTnsSender const
  1004. FaultcodeEnumTnsSender FaultcodeEnum = "tns:Sender"
  1005. // FaultcodeEnumTnsVersionMismatch const
  1006. FaultcodeEnumTnsVersionMismatch FaultcodeEnum = "tns:VersionMismatch"
  1007. )
  1008. // NotUnderstood type
  1009. type NotUnderstood NotUnderstoodType
  1010. // Upgrade type
  1011. type Upgrade UpgradeType
  1012. // Envelope type
  1013. type Envelope struct {
  1014. Header Header `xml:"Header,omitempty"`
  1015. Body Body `xml:"Body,omitempty"`
  1016. }
  1017. // Header type
  1018. type Header struct {
  1019. }
  1020. // Body type
  1021. type Body struct {
  1022. }
  1023. // Fault type
  1024. type Fault struct {
  1025. Code Faultcode `xml:"Code,omitempty"`
  1026. Reason Faultreason `xml:"Reason,omitempty"`
  1027. Node AnyURI `xml:"http://www.onvif.org/ver10/schema Node,omitempty"`
  1028. Role AnyURI `xml:"http://www.onvif.org/ver10/schema Role,omitempty"`
  1029. Detail Detail `xml:"Detail,omitempty"`
  1030. }
  1031. // Faultreason type
  1032. type Faultreason struct {
  1033. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultreason"`
  1034. Text []Reasontext `xml:"Text,omitempty"`
  1035. }
  1036. // Reasontext type
  1037. type Reasontext struct {
  1038. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope reasontext"`
  1039. Value string
  1040. string `xml:",attr,omitempty"`
  1041. }
  1042. // Faultcode type
  1043. type Faultcode struct {
  1044. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultcode"`
  1045. Value FaultcodeEnum `xml:"Value,omitempty"`
  1046. Subcode *Subcode `xml:"Subcode,omitempty"`
  1047. }
  1048. // Subcode type
  1049. type Subcode struct {
  1050. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope subcode"`
  1051. Value QName `xml:"http://www.onvif.org/ver10/schema Value,omitempty"`
  1052. Subcode *Subcode `xml:"Subcode,omitempty"`
  1053. }
  1054. // Detail type
  1055. type Detail struct {
  1056. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope detail"`
  1057. }
  1058. // NotUnderstoodType type
  1059. type NotUnderstoodType struct {
  1060. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope NotUnderstood"`
  1061. Qname QName `xml:"qname,attr,omitempty"`
  1062. }
  1063. // SupportedEnvType type
  1064. type SupportedEnvType struct {
  1065. Qname QName `xml:"qname,attr,omitempty"`
  1066. }
  1067. // UpgradeType type
  1068. type UpgradeType struct {
  1069. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Upgrade"`
  1070. SupportedEnvelope []SupportedEnvType `xml:"SupportedEnvelope,omitempty"`
  1071. }
  1072. // RelationshipTypeOpenEnum type
  1073. type RelationshipTypeOpenEnum string
  1074. // RelationshipType type
  1075. type RelationshipType AnyURI
  1076. const (
  1077. // RelationshipTypeHttpwwww3org200508addressingreply const
  1078. RelationshipTypeHttpwwww3org200508addressingreply RelationshipType = "http://www.w3.org/2005/08/addressing/reply"
  1079. )
  1080. // FaultCodesType type
  1081. type FaultCodesType QName
  1082. const (
  1083. // FaultCodesTypeTnsInvalidAddressingHeader const
  1084. FaultCodesTypeTnsInvalidAddressingHeader FaultCodesType = "tns:InvalidAddressingHeader"
  1085. // FaultCodesTypeTnsInvalidAddress const
  1086. FaultCodesTypeTnsInvalidAddress FaultCodesType = "tns:InvalidAddress"
  1087. // FaultCodesTypeTnsInvalidEPR const
  1088. FaultCodesTypeTnsInvalidEPR FaultCodesType = "tns:InvalidEPR"
  1089. // FaultCodesTypeTnsInvalidCardinality const
  1090. FaultCodesTypeTnsInvalidCardinality FaultCodesType = "tns:InvalidCardinality"
  1091. // FaultCodesTypeTnsMissingAddressInEPR const
  1092. FaultCodesTypeTnsMissingAddressInEPR FaultCodesType = "tns:MissingAddressInEPR"
  1093. // FaultCodesTypeTnsDuplicateMessageID const
  1094. FaultCodesTypeTnsDuplicateMessageID FaultCodesType = "tns:DuplicateMessageID"
  1095. // FaultCodesTypeTnsActionMismatch const
  1096. FaultCodesTypeTnsActionMismatch FaultCodesType = "tns:ActionMismatch"
  1097. // FaultCodesTypeTnsMessageAddressingHeaderRequired const
  1098. FaultCodesTypeTnsMessageAddressingHeaderRequired FaultCodesType = "tns:MessageAddressingHeaderRequired"
  1099. // FaultCodesTypeTnsDestinationUnreachable const
  1100. FaultCodesTypeTnsDestinationUnreachable FaultCodesType = "tns:DestinationUnreachable"
  1101. // FaultCodesTypeTnsActionNotSupported const
  1102. FaultCodesTypeTnsActionNotSupported FaultCodesType = "tns:ActionNotSupported"
  1103. // FaultCodesTypeTnsEndpointUnavailable const
  1104. FaultCodesTypeTnsEndpointUnavailable FaultCodesType = "tns:EndpointUnavailable"
  1105. )
  1106. // EndpointReference type
  1107. type EndpointReference EndpointReferenceType
  1108. // Metadata type
  1109. type Metadata MetadataType
  1110. // RelatesTo type
  1111. type RelatesTo RelatesToType
  1112. // To type
  1113. type To AttributedURIType
  1114. // Action type
  1115. type Action AttributedURIType
  1116. // ProblemAction type
  1117. type ProblemAction ProblemActionType
  1118. // EndpointReferenceType type
  1119. type EndpointReferenceType struct {
  1120. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing EndpointReference"`
  1121. Address AttributedURIType `xml:"Address,omitempty"`
  1122. ReferenceParameters ReferenceParametersType `xml:"ReferenceParameters,omitempty"`
  1123. Metadata Metadata `xml:"Metadata,omitempty"`
  1124. }
  1125. // ReferenceParametersType type
  1126. type ReferenceParametersType struct {
  1127. }
  1128. // MetadataType type
  1129. type MetadataType struct {
  1130. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing Metadata"`
  1131. }
  1132. // RelatesToType type
  1133. type RelatesToType struct {
  1134. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing RelatesTo"`
  1135. Value AnyURI
  1136. RelationshipType RelationshipTypeOpenEnum `xml:"RelationshipType,attr,omitempty"`
  1137. }
  1138. // AttributedURIType type
  1139. type AttributedURIType struct {
  1140. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing MessageID"`
  1141. Value AnyURI
  1142. }
  1143. // ProblemActionType type
  1144. type ProblemActionType struct {
  1145. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing ProblemAction"`
  1146. Action Action `xml:"Action,omitempty"`
  1147. SoapAction AnyURI `xml:"http://www.onvif.org/ver10/schema SoapAction,omitempty"`
  1148. }
  1149. // BaseFault type
  1150. type BaseFault BaseFaultType
  1151. // BaseFaultType type
  1152. type BaseFaultType struct {
  1153. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsrf/bf-2 BaseFault"`
  1154. Timestamp string `xml:"http://www.onvif.org/ver10/schema Timestamp,omitempty"`
  1155. Originator EndpointReferenceType `xml:"Originator,omitempty"`
  1156. ErrorCode struct {
  1157. Dialect AnyURI `xml:"dialect,attr,omitempty"`
  1158. } `xml:"ErrorCode,omitempty"`
  1159. Description []struct {
  1160. Value string
  1161. string `xml:",attr,omitempty"`
  1162. } `xml:"Description,omitempty"`
  1163. FaultCause struct {
  1164. } `xml:"FaultCause,omitempty"`
  1165. }
  1166. // ConcreteTopicExpression type
  1167. type ConcreteTopicExpression string
  1168. // SimpleTopicExpression type
  1169. type SimpleTopicExpression QName
  1170. // TopicNamespace type
  1171. type TopicNamespace TopicNamespaceType
  1172. // TopicSet type
  1173. type TopicSet TopicSetType
  1174. // Documentation type
  1175. type Documentation struct {
  1176. }
  1177. // ExtensibleDocumented type
  1178. type ExtensibleDocumented struct {
  1179. Documentation Documentation `xml:"documentation,omitempty"`
  1180. }
  1181. // QueryExpressionType type
  1182. type QueryExpressionType struct {
  1183. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 ProducerProperties"`
  1184. Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
  1185. }
  1186. // TopicNamespaceType type
  1187. type TopicNamespaceType struct {
  1188. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicNamespace"`
  1189. *ExtensibleDocumented
  1190. Topic []struct {
  1191. *TopicType
  1192. Parent ConcreteTopicExpression `xml:"parent,attr,omitempty"`
  1193. } `xml:"Topic,omitempty"`
  1194. Name NCName `xml:"name,attr,omitempty"`
  1195. TargetNamespace AnyURI `xml:"targetNamespace,attr,omitempty"`
  1196. Final bool `xml:"final,attr,omitempty"`
  1197. }
  1198. // TopicType type
  1199. type TopicType struct {
  1200. *ExtensibleDocumented
  1201. MessagePattern QueryExpressionType `xml:"MessagePattern,omitempty"`
  1202. Topic []TopicType `xml:"Topic,omitempty"`
  1203. Name NCName `xml:"name,attr,omitempty"`
  1204. MessageTypes string `xml:"messageTypes,attr,omitempty"`
  1205. Final bool `xml:"final,attr,omitempty"`
  1206. }
  1207. // TopicSetType type
  1208. type TopicSetType struct {
  1209. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicSet"`
  1210. *ExtensibleDocumented
  1211. }
  1212. // AbsoluteOrRelativeTimeType type
  1213. type AbsoluteOrRelativeTimeType string
  1214. // TopicExpression type
  1215. type TopicExpression TopicExpressionType
  1216. // FixedTopicSet type
  1217. type FixedTopicSet bool
  1218. // TopicExpressionDialect type
  1219. type TopicExpressionDialect AnyURI
  1220. // ConsumerReference type
  1221. type ConsumerReference EndpointReferenceType
  1222. // Filter type
  1223. type Filter FilterType
  1224. // SubscriptionPolicy type
  1225. type SubscriptionPolicy SubscriptionPolicyType
  1226. // CreationTime type
  1227. type CreationTime time.Time
  1228. // SubscriptionReference type
  1229. type SubscriptionReference EndpointReferenceType
  1230. // Topic type
  1231. type Topic TopicExpressionType
  1232. // ProducerReference type
  1233. type ProducerReference EndpointReferenceType
  1234. // NotificationMessage type
  1235. type NotificationMessage NotificationMessageHolderType
  1236. // Notify type
  1237. type Notify struct {
  1238. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Notify"`
  1239. NotificationMessage []NotificationMessage `xml:"NotificationMessage,omitempty"`
  1240. }
  1241. // CurrentTime type
  1242. type CurrentTime time.Time
  1243. // TerminationTime type
  1244. type TerminationTime time.Time
  1245. // Subscribe type
  1246. type Subscribe struct {
  1247. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Subscribe"`
  1248. ConsumerReference EndpointReferenceType `xml:"ConsumerReference,omitempty"`
  1249. Filter FilterType `xml:"Filter,omitempty"`
  1250. InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"InitialTerminationTime,omitempty"`
  1251. SubscriptionPolicy struct {
  1252. } `xml:"SubscriptionPolicy,omitempty"`
  1253. }
  1254. // SubscribeCreationFailedFault type
  1255. type SubscribeCreationFailedFault SubscribeCreationFailedFaultType
  1256. // InvalidFilterFault type
  1257. type InvalidFilterFault InvalidFilterFaultType
  1258. // TopicExpressionDialectUnknownFault type
  1259. type TopicExpressionDialectUnknownFault TopicExpressionDialectUnknownFaultType
  1260. // InvalidTopicExpressionFault type
  1261. type InvalidTopicExpressionFault InvalidTopicExpressionFaultType
  1262. // TopicNotSupportedFault type
  1263. type TopicNotSupportedFault TopicNotSupportedFaultType
  1264. // MultipleTopicsSpecifiedFault type
  1265. type MultipleTopicsSpecifiedFault MultipleTopicsSpecifiedFaultType
  1266. // InvalidProducerPropertiesExpressionFault type
  1267. type InvalidProducerPropertiesExpressionFault InvalidProducerPropertiesExpressionFaultType
  1268. // InvalidMessageContentExpressionFault type
  1269. type InvalidMessageContentExpressionFault InvalidMessageContentExpressionFaultType
  1270. // UnrecognizedPolicyRequestFault type
  1271. type UnrecognizedPolicyRequestFault UnrecognizedPolicyRequestFaultType
  1272. // UnsupportedPolicyRequestFault type
  1273. type UnsupportedPolicyRequestFault UnsupportedPolicyRequestFaultType
  1274. // NotifyMessageNotSupportedFault type
  1275. type NotifyMessageNotSupportedFault NotifyMessageNotSupportedFaultType
  1276. // UnacceptableInitialTerminationTimeFault type
  1277. type UnacceptableInitialTerminationTimeFault UnacceptableInitialTerminationTimeFaultType
  1278. // NoCurrentMessageOnTopicFault type
  1279. type NoCurrentMessageOnTopicFault NoCurrentMessageOnTopicFaultType
  1280. // UnableToGetMessagesFault type
  1281. type UnableToGetMessagesFault UnableToGetMessagesFaultType
  1282. // UnableToDestroyPullPointFault type
  1283. type UnableToDestroyPullPointFault UnableToDestroyPullPointFaultType
  1284. // UnableToCreatePullPointFault type
  1285. type UnableToCreatePullPointFault UnableToCreatePullPointFaultType
  1286. // UnacceptableTerminationTimeFault type
  1287. type UnacceptableTerminationTimeFault UnacceptableTerminationTimeFaultType
  1288. // UnableToDestroySubscriptionFault type
  1289. type UnableToDestroySubscriptionFault UnableToDestroySubscriptionFaultType
  1290. // PauseFailedFault type
  1291. type PauseFailedFault PauseFailedFaultType
  1292. // ResumeFailedFault type
  1293. type ResumeFailedFault ResumeFailedFaultType
  1294. // Removed QueryExpressionType
  1295. // TopicExpressionType type
  1296. type TopicExpressionType struct {
  1297. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpression"`
  1298. Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
  1299. }
  1300. // FilterType type
  1301. type FilterType struct {
  1302. XMLName xml.Name `xml:"Filter"`
  1303. }
  1304. // SubscriptionPolicyType type
  1305. type SubscriptionPolicyType struct {
  1306. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscriptionPolicy"`
  1307. }
  1308. // NotificationMessageHolderType type
  1309. type NotificationMessageHolderType struct {
  1310. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotificationMessage"`
  1311. SubscriptionReference SubscriptionReference `xml:"SubscriptionReference,omitempty"`
  1312. Topic Topic `xml:"Topic,omitempty"`
  1313. ProducerReference ProducerReference `xml:"ProducerReference,omitempty"`
  1314. Message struct {
  1315. } `xml:"Message,omitempty"`
  1316. }
  1317. // SubscribeCreationFailedFaultType type
  1318. type SubscribeCreationFailedFaultType struct {
  1319. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscribeCreationFailedFault"`
  1320. *BaseFaultType
  1321. }
  1322. // InvalidFilterFaultType type
  1323. type InvalidFilterFaultType struct {
  1324. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidFilterFault"`
  1325. *BaseFaultType
  1326. UnknownFilter []QName `xml:"http://www.onvif.org/ver10/schema UnknownFilter,omitempty"`
  1327. }
  1328. // TopicExpressionDialectUnknownFaultType type
  1329. type TopicExpressionDialectUnknownFaultType struct {
  1330. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpressionDialectUnknownFault"`
  1331. *BaseFaultType
  1332. }
  1333. // InvalidTopicExpressionFaultType type
  1334. type InvalidTopicExpressionFaultType struct {
  1335. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidTopicExpressionFault"`
  1336. *BaseFaultType
  1337. }
  1338. // TopicNotSupportedFaultType type
  1339. type TopicNotSupportedFaultType struct {
  1340. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicNotSupportedFault"`
  1341. *BaseFaultType
  1342. }
  1343. // MultipleTopicsSpecifiedFaultType type
  1344. type MultipleTopicsSpecifiedFaultType struct {
  1345. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 MultipleTopicsSpecifiedFault"`
  1346. *BaseFaultType
  1347. }
  1348. // InvalidProducerPropertiesExpressionFaultType type
  1349. type InvalidProducerPropertiesExpressionFaultType struct {
  1350. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidProducerPropertiesExpressionFault"`
  1351. *BaseFaultType
  1352. }
  1353. // InvalidMessageContentExpressionFaultType type
  1354. type InvalidMessageContentExpressionFaultType struct {
  1355. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidMessageContentExpressionFault"`
  1356. *BaseFaultType
  1357. }
  1358. // UnrecognizedPolicyRequestFaultType type
  1359. type UnrecognizedPolicyRequestFaultType struct {
  1360. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnrecognizedPolicyRequestFault"`
  1361. *BaseFaultType
  1362. UnrecognizedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnrecognizedPolicy,omitempty"`
  1363. }
  1364. // UnsupportedPolicyRequestFaultType type
  1365. type UnsupportedPolicyRequestFaultType struct {
  1366. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnsupportedPolicyRequestFault"`
  1367. *BaseFaultType
  1368. UnsupportedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnsupportedPolicy,omitempty"`
  1369. }
  1370. // NotifyMessageNotSupportedFaultType type
  1371. type NotifyMessageNotSupportedFaultType struct {
  1372. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotifyMessageNotSupportedFault"`
  1373. *BaseFaultType
  1374. }
  1375. // UnacceptableInitialTerminationTimeFaultType type
  1376. type UnacceptableInitialTerminationTimeFaultType struct {
  1377. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableInitialTerminationTimeFault"`
  1378. *BaseFaultType
  1379. MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
  1380. MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
  1381. }
  1382. // NoCurrentMessageOnTopicFaultType type
  1383. type NoCurrentMessageOnTopicFaultType struct {
  1384. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NoCurrentMessageOnTopicFault"`
  1385. *BaseFaultType
  1386. }
  1387. // UnableToGetMessagesFaultType type
  1388. type UnableToGetMessagesFaultType struct {
  1389. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToGetMessagesFault"`
  1390. *BaseFaultType
  1391. }
  1392. // UnableToDestroyPullPointFaultType type
  1393. type UnableToDestroyPullPointFaultType struct {
  1394. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroyPullPointFault"`
  1395. *BaseFaultType
  1396. }
  1397. // UnableToCreatePullPointFaultType type
  1398. type UnableToCreatePullPointFaultType struct {
  1399. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToCreatePullPointFault"`
  1400. *BaseFaultType
  1401. }
  1402. // UnacceptableTerminationTimeFaultType type
  1403. type UnacceptableTerminationTimeFaultType struct {
  1404. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableTerminationTimeFault"`
  1405. *BaseFaultType
  1406. MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
  1407. MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
  1408. }
  1409. // UnableToDestroySubscriptionFaultType type
  1410. type UnableToDestroySubscriptionFaultType struct {
  1411. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroySubscriptionFault"`
  1412. *BaseFaultType
  1413. }
  1414. // PauseFailedFaultType type
  1415. type PauseFailedFaultType struct {
  1416. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 PauseFailedFault"`
  1417. *BaseFaultType
  1418. }
  1419. // ResumeFailedFaultType type
  1420. type ResumeFailedFaultType struct {
  1421. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 ResumeFailedFault"`
  1422. *BaseFaultType
  1423. }
  1424. // Include type
  1425. type Include struct {
  1426. Href AnyURI `xml:"href,attr,omitempty"`
  1427. }
  1428. // Unique identifier for a physical or logical resource.
  1429. // Tokens should be assigned such that they are unique within a device. Tokens must be at least unique within its class.
  1430. // Length up to 64 characters.
  1431. // ReferenceToken type
  1432. type ReferenceToken string
  1433. // MoveStatus type
  1434. type MoveStatus string
  1435. const (
  1436. // MoveStatusIDLE const
  1437. MoveStatusIDLE MoveStatus = "IDLE"
  1438. // MoveStatusMOVING const
  1439. MoveStatusMOVING MoveStatus = "MOVING"
  1440. // MoveStatusUNKNOWN const
  1441. MoveStatusUNKNOWN MoveStatus = "UNKNOWN"
  1442. )
  1443. // Entity type
  1444. type Entity string
  1445. const (
  1446. // EntityDevice const
  1447. EntityDevice Entity = "Device"
  1448. // EntityVideoSource const
  1449. EntityVideoSource Entity = "VideoSource"
  1450. // EntityAudioSource const
  1451. EntityAudioSource Entity = "AudioSource"
  1452. )
  1453. // IntRange type
  1454. type IntRange struct {
  1455. Min int32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  1456. Max int32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  1457. }
  1458. // Vector2D type
  1459. type Vector2D struct {
  1460. X float32 `xml:"x,attr,omitempty"`
  1461. Y float32 `xml:"y,attr,omitempty"`
  1462. //
  1463. // Pan/tilt coordinate space selector. The following options are defined:
  1464. //
  1465. Space AnyURI `xml:"space,attr,omitempty"`
  1466. }
  1467. // Vector1D type
  1468. type Vector1D struct {
  1469. X float32 `xml:"x,attr,omitempty"`
  1470. //
  1471. // Zoom coordinate space selector. The following options are defined:
  1472. //
  1473. Space AnyURI `xml:"space,attr,omitempty"`
  1474. }
  1475. // PTZVector type
  1476. type PTZVector struct {
  1477. // Pan and tilt position. The x component corresponds to pan and the y component to tilt.
  1478. PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  1479. //
  1480. // A zoom position.
  1481. //
  1482. Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  1483. }
  1484. // PTZStatus type
  1485. type PTZStatus struct {
  1486. //
  1487. // 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.
  1488. //
  1489. Position PTZVector `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  1490. //
  1491. // Indicates if the Pan/Tilt/Zoom device unit is currently moving, idle or in an unknown state.
  1492. //
  1493. MoveStatus PTZMoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  1494. //
  1495. // States a current PTZ error.
  1496. //
  1497. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  1498. //
  1499. // Specifies the UTC time when this status was generated.
  1500. //
  1501. UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,omitempty"`
  1502. }
  1503. // PTZMoveStatus type
  1504. type PTZMoveStatus struct {
  1505. PanTilt MoveStatus `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  1506. Zoom MoveStatus `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  1507. }
  1508. // Vector type
  1509. type Vector struct {
  1510. X float32 `xml:"x,attr,omitempty"`
  1511. Y float32 `xml:"y,attr,omitempty"`
  1512. }
  1513. // Rectangle type
  1514. type Rectangle struct {
  1515. Bottom float32 `xml:"bottom,attr,omitempty"`
  1516. Top float32 `xml:"top,attr,omitempty"`
  1517. Right float32 `xml:"right,attr,omitempty"`
  1518. Left float32 `xml:"left,attr,omitempty"`
  1519. }
  1520. // Polygon type
  1521. type Polygon struct {
  1522. Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
  1523. }
  1524. // Color type
  1525. type Color struct {
  1526. X float32 `xml:"http://www.onvif.org/ver10/schema X,attr,omitempty"`
  1527. Y float32 `xml:"http://www.onvif.org/ver10/schema Y,attr,omitempty"`
  1528. Z float32 `xml:"http://www.onvif.org/ver10/schema Z,attr,omitempty"`
  1529. //
  1530. // Acceptable values:
  1531. //
  1532. // If the Colorspace attribute is absent, YCbCr is implied.
  1533. //
  1534. // Deprecated values:
  1535. //
  1536. //
  1537. Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,attr,omitempty"`
  1538. }
  1539. // Transformation type
  1540. type Transformation struct {
  1541. Translate Vector `xml:"http://www.onvif.org/ver10/schema Translate,omitempty"`
  1542. Scale Vector `xml:"http://www.onvif.org/ver10/schema Scale,omitempty"`
  1543. Extension TransformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1544. }
  1545. // TransformationExtension type
  1546. type TransformationExtension struct {
  1547. }
  1548. // User readable name. Length up to 64 characters.
  1549. // Name type
  1550. type Name string
  1551. // IntAttrList type
  1552. type IntAttrList []int32
  1553. // FloatAttrList type
  1554. type FloatAttrList []float32
  1555. // StringAttrList type
  1556. type StringAttrList []string
  1557. // ReferenceTokenList type
  1558. type ReferenceTokenList []ReferenceToken
  1559. // RotateMode type
  1560. type RotateMode string
  1561. const (
  1562. // Enable the Rotate feature. Degree of rotation is specified Degree parameter.
  1563. // RotateModeOFF const
  1564. RotateModeOFF RotateMode = "OFF"
  1565. // Disable the Rotate feature.
  1566. // RotateModeON const
  1567. RotateModeON RotateMode = "ON"
  1568. // Rotate feature is automatically activated by the device.
  1569. // RotateModeAUTO const
  1570. RotateModeAUTO RotateMode = "AUTO"
  1571. )
  1572. // SceneOrientationMode type
  1573. type SceneOrientationMode string
  1574. const (
  1575. // SceneOrientationModeMANUAL const
  1576. SceneOrientationModeMANUAL SceneOrientationMode = "MANUAL"
  1577. // SceneOrientationModeAUTO const
  1578. SceneOrientationModeAUTO SceneOrientationMode = "AUTO"
  1579. )
  1580. // SceneOrientationOption type
  1581. type SceneOrientationOption string
  1582. const (
  1583. // SceneOrientationOptionBelow const
  1584. SceneOrientationOptionBelow SceneOrientationOption = "Below"
  1585. // SceneOrientationOptionHorizon const
  1586. SceneOrientationOptionHorizon SceneOrientationOption = "Horizon"
  1587. // SceneOrientationOptionAbove const
  1588. SceneOrientationOptionAbove SceneOrientationOption = "Above"
  1589. )
  1590. // Source view modes supported by device.
  1591. // ViewModes type
  1592. type ViewModes string
  1593. const (
  1594. // Undewarped viewmode from device supporting fisheye lens.
  1595. // ViewModesTtFisheye const
  1596. ViewModesTtFisheye ViewModes = "tt:Fisheye"
  1597. // 360 degree panoramic view.
  1598. // ViewModesTt360Panorama const
  1599. ViewModesTt360Panorama ViewModes = "tt:360Panorama"
  1600. // 180 degree panoramic view.
  1601. // ViewModesTt180Panorama const
  1602. ViewModesTt180Panorama ViewModes = "tt:180Panorama"
  1603. // View mode combining four streams in single Quad, eg., applicable for devices supporting four heads.
  1604. // ViewModesTtQuad const
  1605. ViewModesTtQuad ViewModes = "tt:Quad"
  1606. // Unaltered view from the sensor.
  1607. // ViewModesTtOriginal const
  1608. ViewModesTtOriginal ViewModes = "tt:Original"
  1609. // Viewmode combining the left side sensors, applicable for devices supporting multiple sensors.
  1610. // ViewModesTtLeftHalf const
  1611. ViewModesTtLeftHalf ViewModes = "tt:LeftHalf"
  1612. // Viewmode combining the right side sensors, applicable for devices supporting multiple sensors.
  1613. // ViewModesTtRightHalf const
  1614. ViewModesTtRightHalf ViewModes = "tt:RightHalf"
  1615. // Dewarped view mode for device supporting fisheye lens.
  1616. // ViewModesTtDewarp const
  1617. ViewModesTtDewarp ViewModes = "tt:Dewarp"
  1618. )
  1619. // VideoEncoding type
  1620. type VideoEncoding string
  1621. const (
  1622. // VideoEncodingJPEG const
  1623. VideoEncodingJPEG VideoEncoding = "JPEG"
  1624. // VideoEncodingMPEG4 const
  1625. VideoEncodingMPEG4 VideoEncoding = "MPEG4"
  1626. // VideoEncodingH264 const
  1627. VideoEncodingH264 VideoEncoding = "H264"
  1628. )
  1629. // Mpeg4Profile type
  1630. type Mpeg4Profile string
  1631. const (
  1632. // Mpeg4ProfileSP const
  1633. Mpeg4ProfileSP Mpeg4Profile = "SP"
  1634. // Mpeg4ProfileASP const
  1635. Mpeg4ProfileASP Mpeg4Profile = "ASP"
  1636. )
  1637. // H264Profile type
  1638. type H264Profile string
  1639. const (
  1640. // H264ProfileBaseline const
  1641. H264ProfileBaseline H264Profile = "Baseline"
  1642. // H264ProfileMain const
  1643. H264ProfileMain H264Profile = "Main"
  1644. // H264ProfileExtended const
  1645. H264ProfileExtended H264Profile = "Extended"
  1646. // H264ProfileHigh const
  1647. H264ProfileHigh H264Profile = "High"
  1648. )
  1649. // Video Media Subtypes as referenced by IANA (without the leading "video/" Video Media Type). See also .
  1650. // VideoEncodingMimeNames type
  1651. type VideoEncodingMimeNames string
  1652. const (
  1653. // VideoEncodingMimeNamesJPEG const
  1654. VideoEncodingMimeNamesJPEG VideoEncodingMimeNames = "JPEG"
  1655. // VideoEncodingMimeNamesMPV4ES const
  1656. VideoEncodingMimeNamesMPV4ES VideoEncodingMimeNames = "MPV4-ES"
  1657. // VideoEncodingMimeNamesH264 const
  1658. VideoEncodingMimeNamesH264 VideoEncodingMimeNames = "H264"
  1659. // VideoEncodingMimeNamesH265 const
  1660. VideoEncodingMimeNamesH265 VideoEncodingMimeNames = "H265"
  1661. )
  1662. // VideoEncodingProfiles type
  1663. type VideoEncodingProfiles string
  1664. const (
  1665. // VideoEncodingProfilesSimple const
  1666. VideoEncodingProfilesSimple VideoEncodingProfiles = "Simple"
  1667. // VideoEncodingProfilesAdvancedSimple const
  1668. VideoEncodingProfilesAdvancedSimple VideoEncodingProfiles = "AdvancedSimple"
  1669. // VideoEncodingProfilesBaseline const
  1670. VideoEncodingProfilesBaseline VideoEncodingProfiles = "Baseline"
  1671. // VideoEncodingProfilesMain const
  1672. VideoEncodingProfilesMain VideoEncodingProfiles = "Main"
  1673. // VideoEncodingProfilesMain10 const
  1674. VideoEncodingProfilesMain10 VideoEncodingProfiles = "Main10"
  1675. // VideoEncodingProfilesExtended const
  1676. VideoEncodingProfilesExtended VideoEncodingProfiles = "Extended"
  1677. // VideoEncodingProfilesHigh const
  1678. VideoEncodingProfilesHigh VideoEncodingProfiles = "High"
  1679. )
  1680. // AudioEncoding type
  1681. type AudioEncoding string
  1682. const (
  1683. // AudioEncodingG711 const
  1684. AudioEncodingG711 AudioEncoding = "G711"
  1685. // AudioEncodingG726 const
  1686. AudioEncodingG726 AudioEncoding = "G726"
  1687. // AudioEncodingAAC const
  1688. AudioEncodingAAC AudioEncoding = "AAC"
  1689. )
  1690. // Audio Media Subtypes as referenced by IANA (without the leading "audio/" Audio Media Type). See also .
  1691. // AudioEncodingMimeNames type
  1692. type AudioEncodingMimeNames string
  1693. const (
  1694. // AudioEncodingMimeNamesPCMU const
  1695. AudioEncodingMimeNamesPCMU AudioEncodingMimeNames = "PCMU"
  1696. // AudioEncodingMimeNamesG726 const
  1697. AudioEncodingMimeNamesG726 AudioEncodingMimeNames = "G726"
  1698. // AudioEncodingMimeNamesMP4ALATM const
  1699. AudioEncodingMimeNamesMP4ALATM AudioEncodingMimeNames = "MP4A-LATM"
  1700. // AudioEncodingMimeNamesMpeg4generic const
  1701. AudioEncodingMimeNamesMpeg4generic AudioEncodingMimeNames = "mpeg4-generic"
  1702. )
  1703. // MetadataCompressionType type
  1704. type MetadataCompressionType string
  1705. const (
  1706. // MetadataCompressionTypeNone const
  1707. MetadataCompressionTypeNone MetadataCompressionType = "None"
  1708. // MetadataCompressionTypeGZIP const
  1709. MetadataCompressionTypeGZIP MetadataCompressionType = "GZIP"
  1710. // MetadataCompressionTypeEXI const
  1711. MetadataCompressionTypeEXI MetadataCompressionType = "EXI"
  1712. )
  1713. // StreamType type
  1714. type StreamType string
  1715. const (
  1716. // StreamTypeRTPUnicast const
  1717. StreamTypeRTPUnicast StreamType = "RTP-Unicast"
  1718. // StreamTypeRTPMulticast const
  1719. StreamTypeRTPMulticast StreamType = "RTP-Multicast"
  1720. )
  1721. // TransportProtocol type
  1722. type TransportProtocol string
  1723. const (
  1724. // TransportProtocolUDP const
  1725. TransportProtocolUDP TransportProtocol = "UDP"
  1726. // This value is deprecated.
  1727. // TransportProtocolTCP const
  1728. TransportProtocolTCP TransportProtocol = "TCP"
  1729. // TransportProtocolRTSP const
  1730. TransportProtocolRTSP TransportProtocol = "RTSP"
  1731. // TransportProtocolHTTP const
  1732. TransportProtocolHTTP TransportProtocol = "HTTP"
  1733. )
  1734. // ScopeDefinition type
  1735. type ScopeDefinition string
  1736. const (
  1737. // ScopeDefinitionFixed const
  1738. ScopeDefinitionFixed ScopeDefinition = "Fixed"
  1739. // ScopeDefinitionConfigurable const
  1740. ScopeDefinitionConfigurable ScopeDefinition = "Configurable"
  1741. )
  1742. // DiscoveryMode type
  1743. type DiscoveryMode string
  1744. const (
  1745. // DiscoveryModeDiscoverable const
  1746. DiscoveryModeDiscoverable DiscoveryMode = "Discoverable"
  1747. // DiscoveryModeNonDiscoverable const
  1748. DiscoveryModeNonDiscoverable DiscoveryMode = "NonDiscoverable"
  1749. )
  1750. // NetworkInterfaceConfigPriority type
  1751. type NetworkInterfaceConfigPriority int32
  1752. // Duplex type
  1753. type Duplex string
  1754. const (
  1755. // DuplexFull const
  1756. DuplexFull Duplex = "Full"
  1757. // DuplexHalf const
  1758. DuplexHalf Duplex = "Half"
  1759. )
  1760. // IANAIfTypes type
  1761. type IANAIfTypes int32
  1762. // IPv6DHCPConfiguration type
  1763. type IPv6DHCPConfiguration string
  1764. const (
  1765. // IPv6DHCPConfigurationAuto const
  1766. IPv6DHCPConfigurationAuto IPv6DHCPConfiguration = "Auto"
  1767. // IPv6DHCPConfigurationStateful const
  1768. IPv6DHCPConfigurationStateful IPv6DHCPConfiguration = "Stateful"
  1769. // IPv6DHCPConfigurationStateless const
  1770. IPv6DHCPConfigurationStateless IPv6DHCPConfiguration = "Stateless"
  1771. // IPv6DHCPConfigurationOff const
  1772. IPv6DHCPConfigurationOff IPv6DHCPConfiguration = "Off"
  1773. )
  1774. // NetworkProtocolType type
  1775. type NetworkProtocolType string
  1776. const (
  1777. // NetworkProtocolTypeHTTP const
  1778. NetworkProtocolTypeHTTP NetworkProtocolType = "HTTP"
  1779. // NetworkProtocolTypeHTTPS const
  1780. NetworkProtocolTypeHTTPS NetworkProtocolType = "HTTPS"
  1781. // NetworkProtocolTypeRTSP const
  1782. NetworkProtocolTypeRTSP NetworkProtocolType = "RTSP"
  1783. )
  1784. // NetworkHostType type
  1785. type NetworkHostType string
  1786. const (
  1787. // NetworkHostTypeIPv4 const
  1788. NetworkHostTypeIPv4 NetworkHostType = "IPv4"
  1789. // NetworkHostTypeIPv6 const
  1790. NetworkHostTypeIPv6 NetworkHostType = "IPv6"
  1791. // NetworkHostTypeDNS const
  1792. NetworkHostTypeDNS NetworkHostType = "DNS"
  1793. )
  1794. // IPv4Address type
  1795. type IPv4Address string
  1796. // IPv6Address type
  1797. type IPv6Address string
  1798. // HwAddress type
  1799. type HwAddress string
  1800. // IPType type
  1801. type IPType string
  1802. const (
  1803. // IPTypeIPv4 const
  1804. IPTypeIPv4 IPType = "IPv4"
  1805. // IPTypeIPv6 const
  1806. IPTypeIPv6 IPType = "IPv6"
  1807. )
  1808. // DNSName type
  1809. type DNSName string
  1810. // IPAddressFilterType type
  1811. type IPAddressFilterType string
  1812. const (
  1813. // IPAddressFilterTypeAllow const
  1814. IPAddressFilterTypeAllow IPAddressFilterType = "Allow"
  1815. // IPAddressFilterTypeDeny const
  1816. IPAddressFilterTypeDeny IPAddressFilterType = "Deny"
  1817. )
  1818. // DynamicDNSType type
  1819. type DynamicDNSType string
  1820. const (
  1821. // DynamicDNSTypeNoUpdate const
  1822. DynamicDNSTypeNoUpdate DynamicDNSType = "NoUpdate"
  1823. // DynamicDNSTypeClientUpdates const
  1824. DynamicDNSTypeClientUpdates DynamicDNSType = "ClientUpdates"
  1825. // DynamicDNSTypeServerUpdates const
  1826. DynamicDNSTypeServerUpdates DynamicDNSType = "ServerUpdates"
  1827. )
  1828. // Dot11SSIDType type
  1829. type Dot11SSIDType []byte
  1830. // Dot11StationMode type
  1831. type Dot11StationMode string
  1832. const (
  1833. // Dot11StationModeAdhoc const
  1834. Dot11StationModeAdhoc Dot11StationMode = "Ad-hoc"
  1835. // Dot11StationModeInfrastructure const
  1836. Dot11StationModeInfrastructure Dot11StationMode = "Infrastructure"
  1837. // Dot11StationModeExtended const
  1838. Dot11StationModeExtended Dot11StationMode = "Extended"
  1839. )
  1840. // Dot11SecurityMode type
  1841. type Dot11SecurityMode string
  1842. const (
  1843. // Dot11SecurityModeNone const
  1844. Dot11SecurityModeNone Dot11SecurityMode = "None"
  1845. // Dot11SecurityModeWEP const
  1846. Dot11SecurityModeWEP Dot11SecurityMode = "WEP"
  1847. // Dot11SecurityModePSK const
  1848. Dot11SecurityModePSK Dot11SecurityMode = "PSK"
  1849. // Dot11SecurityModeDot1X const
  1850. Dot11SecurityModeDot1X Dot11SecurityMode = "Dot1X"
  1851. // Dot11SecurityModeExtended const
  1852. Dot11SecurityModeExtended Dot11SecurityMode = "Extended"
  1853. )
  1854. // Dot11Cipher type
  1855. type Dot11Cipher string
  1856. const (
  1857. // Dot11CipherCCMP const
  1858. Dot11CipherCCMP Dot11Cipher = "CCMP"
  1859. // Dot11CipherTKIP const
  1860. Dot11CipherTKIP Dot11Cipher = "TKIP"
  1861. // Dot11CipherAny const
  1862. Dot11CipherAny Dot11Cipher = "Any"
  1863. // Dot11CipherExtended const
  1864. Dot11CipherExtended Dot11Cipher = "Extended"
  1865. )
  1866. // Dot11PSK type
  1867. type Dot11PSK []byte
  1868. // Dot11PSKPassphrase type
  1869. type Dot11PSKPassphrase string
  1870. // Dot11SignalStrength type
  1871. type Dot11SignalStrength string
  1872. const (
  1873. // Dot11SignalStrengthNone const
  1874. Dot11SignalStrengthNone Dot11SignalStrength = "None"
  1875. // Dot11SignalStrengthVeryBad const
  1876. Dot11SignalStrengthVeryBad Dot11SignalStrength = "Very Bad"
  1877. // Dot11SignalStrengthBad const
  1878. Dot11SignalStrengthBad Dot11SignalStrength = "Bad"
  1879. // Dot11SignalStrengthGood const
  1880. Dot11SignalStrengthGood Dot11SignalStrength = "Good"
  1881. // Dot11SignalStrengthVeryGood const
  1882. Dot11SignalStrengthVeryGood Dot11SignalStrength = "Very Good"
  1883. // Dot11SignalStrengthExtended const
  1884. Dot11SignalStrengthExtended Dot11SignalStrength = "Extended"
  1885. )
  1886. // Dot11AuthAndMangementSuite type
  1887. type Dot11AuthAndMangementSuite string
  1888. const (
  1889. // Dot11AuthAndMangementSuiteNone const
  1890. Dot11AuthAndMangementSuiteNone Dot11AuthAndMangementSuite = "None"
  1891. // Dot11AuthAndMangementSuiteDot1X const
  1892. Dot11AuthAndMangementSuiteDot1X Dot11AuthAndMangementSuite = "Dot1X"
  1893. // Dot11AuthAndMangementSuitePSK const
  1894. Dot11AuthAndMangementSuitePSK Dot11AuthAndMangementSuite = "PSK"
  1895. // Dot11AuthAndMangementSuiteExtended const
  1896. Dot11AuthAndMangementSuiteExtended Dot11AuthAndMangementSuite = "Extended"
  1897. )
  1898. // CapabilityCategory type
  1899. type CapabilityCategory string
  1900. const (
  1901. // CapabilityCategoryAll const
  1902. CapabilityCategoryAll CapabilityCategory = "All"
  1903. // CapabilityCategoryAnalytics const
  1904. CapabilityCategoryAnalytics CapabilityCategory = "Analytics"
  1905. // CapabilityCategoryDevice const
  1906. CapabilityCategoryDevice CapabilityCategory = "Device"
  1907. // CapabilityCategoryEvents const
  1908. CapabilityCategoryEvents CapabilityCategory = "Events"
  1909. // CapabilityCategoryImaging const
  1910. CapabilityCategoryImaging CapabilityCategory = "Imaging"
  1911. // CapabilityCategoryMedia const
  1912. CapabilityCategoryMedia CapabilityCategory = "Media"
  1913. // CapabilityCategoryPTZ const
  1914. CapabilityCategoryPTZ CapabilityCategory = "PTZ"
  1915. )
  1916. // Enumeration describing the available system log modes.
  1917. // SystemLogType type
  1918. type SystemLogType string
  1919. const (
  1920. // Indicates that a system log is requested.
  1921. // SystemLogTypeSystem const
  1922. SystemLogTypeSystem SystemLogType = "System"
  1923. // Indicates that a access log is requested.
  1924. // SystemLogTypeAccess const
  1925. SystemLogTypeAccess SystemLogType = "Access"
  1926. )
  1927. // Enumeration describing the available factory default modes.
  1928. // FactoryDefaultType type
  1929. type FactoryDefaultType string
  1930. const (
  1931. // Indicates that a hard factory default is requested.
  1932. // FactoryDefaultTypeHard const
  1933. FactoryDefaultTypeHard FactoryDefaultType = "Hard"
  1934. // Indicates that a soft factory default is requested.
  1935. // FactoryDefaultTypeSoft const
  1936. FactoryDefaultTypeSoft FactoryDefaultType = "Soft"
  1937. )
  1938. // SetDateTimeType type
  1939. type SetDateTimeType string
  1940. const (
  1941. // Indicates that the date and time are set manually.
  1942. // SetDateTimeTypeManual const
  1943. SetDateTimeTypeManual SetDateTimeType = "Manual"
  1944. // Indicates that the date and time are set through NTP
  1945. // SetDateTimeTypeNTP const
  1946. SetDateTimeTypeNTP SetDateTimeType = "NTP"
  1947. )
  1948. // UserLevel type
  1949. type UserLevel string
  1950. const (
  1951. // UserLevelAdministrator const
  1952. UserLevelAdministrator UserLevel = "Administrator"
  1953. // UserLevelOperator const
  1954. UserLevelOperator UserLevel = "Operator"
  1955. // UserLevelUser const
  1956. UserLevelUser UserLevel = "User"
  1957. // UserLevelAnonymous const
  1958. UserLevelAnonymous UserLevel = "Anonymous"
  1959. // UserLevelExtended const
  1960. UserLevelExtended UserLevel = "Extended"
  1961. )
  1962. // RelayLogicalState type
  1963. type RelayLogicalState string
  1964. const (
  1965. // RelayLogicalStateActive const
  1966. RelayLogicalStateActive RelayLogicalState = "active"
  1967. // RelayLogicalStateInactive const
  1968. RelayLogicalStateInactive RelayLogicalState = "inactive"
  1969. )
  1970. // RelayIdleState type
  1971. type RelayIdleState string
  1972. const (
  1973. // RelayIdleStateClosed const
  1974. RelayIdleStateClosed RelayIdleState = "closed"
  1975. // RelayIdleStateOpen const
  1976. RelayIdleStateOpen RelayIdleState = "open"
  1977. )
  1978. // RelayMode type
  1979. type RelayMode string
  1980. const (
  1981. // RelayModeMonostable const
  1982. RelayModeMonostable RelayMode = "Monostable"
  1983. // RelayModeBistable const
  1984. RelayModeBistable RelayMode = "Bistable"
  1985. )
  1986. // DigitalIdleState type
  1987. type DigitalIdleState string
  1988. const (
  1989. // DigitalIdleStateClosed const
  1990. DigitalIdleStateClosed DigitalIdleState = "closed"
  1991. // DigitalIdleStateOpen const
  1992. DigitalIdleStateOpen DigitalIdleState = "open"
  1993. )
  1994. // EFlipMode type
  1995. type EFlipMode string
  1996. const (
  1997. // EFlipModeOFF const
  1998. EFlipModeOFF EFlipMode = "OFF"
  1999. // EFlipModeON const
  2000. EFlipModeON EFlipMode = "ON"
  2001. // EFlipModeExtended const
  2002. EFlipModeExtended EFlipMode = "Extended"
  2003. )
  2004. // ReverseMode type
  2005. type ReverseMode string
  2006. const (
  2007. // ReverseModeOFF const
  2008. ReverseModeOFF ReverseMode = "OFF"
  2009. // ReverseModeON const
  2010. ReverseModeON ReverseMode = "ON"
  2011. // ReverseModeAUTO const
  2012. ReverseModeAUTO ReverseMode = "AUTO"
  2013. // ReverseModeExtended const
  2014. ReverseModeExtended ReverseMode = "Extended"
  2015. )
  2016. // AuxiliaryData type
  2017. type AuxiliaryData string
  2018. // PTZPresetTourState type
  2019. type PTZPresetTourState string
  2020. const (
  2021. // PTZPresetTourStateIdle const
  2022. PTZPresetTourStateIdle PTZPresetTourState = "Idle"
  2023. // PTZPresetTourStateTouring const
  2024. PTZPresetTourStateTouring PTZPresetTourState = "Touring"
  2025. // PTZPresetTourStatePaused const
  2026. PTZPresetTourStatePaused PTZPresetTourState = "Paused"
  2027. // PTZPresetTourStateExtended const
  2028. PTZPresetTourStateExtended PTZPresetTourState = "Extended"
  2029. )
  2030. // PTZPresetTourDirection type
  2031. type PTZPresetTourDirection string
  2032. const (
  2033. // PTZPresetTourDirectionForward const
  2034. PTZPresetTourDirectionForward PTZPresetTourDirection = "Forward"
  2035. // PTZPresetTourDirectionBackward const
  2036. PTZPresetTourDirectionBackward PTZPresetTourDirection = "Backward"
  2037. // PTZPresetTourDirectionExtended const
  2038. PTZPresetTourDirectionExtended PTZPresetTourDirection = "Extended"
  2039. )
  2040. // PTZPresetTourOperation type
  2041. type PTZPresetTourOperation string
  2042. const (
  2043. // PTZPresetTourOperationStart const
  2044. PTZPresetTourOperationStart PTZPresetTourOperation = "Start"
  2045. // PTZPresetTourOperationStop const
  2046. PTZPresetTourOperationStop PTZPresetTourOperation = "Stop"
  2047. // PTZPresetTourOperationPause const
  2048. PTZPresetTourOperationPause PTZPresetTourOperation = "Pause"
  2049. // PTZPresetTourOperationExtended const
  2050. PTZPresetTourOperationExtended PTZPresetTourOperation = "Extended"
  2051. )
  2052. // AutoFocusMode type
  2053. type AutoFocusMode string
  2054. const (
  2055. // AutoFocusModeAUTO const
  2056. AutoFocusModeAUTO AutoFocusMode = "AUTO"
  2057. // AutoFocusModeMANUAL const
  2058. AutoFocusModeMANUAL AutoFocusMode = "MANUAL"
  2059. )
  2060. // AFModes type
  2061. type AFModes string
  2062. const (
  2063. // Focus of a moving camera is updated only once after stopping a pan, tilt or zoom movement.
  2064. // AFModesOnceAfterMove const
  2065. AFModesOnceAfterMove AFModes = "OnceAfterMove"
  2066. )
  2067. // WideDynamicMode type
  2068. type WideDynamicMode string
  2069. const (
  2070. // WideDynamicModeOFF const
  2071. WideDynamicModeOFF WideDynamicMode = "OFF"
  2072. // WideDynamicModeON const
  2073. WideDynamicModeON WideDynamicMode = "ON"
  2074. )
  2075. // Enumeration describing the available backlight compenstation modes.
  2076. // BacklightCompensationMode type
  2077. type BacklightCompensationMode string
  2078. const (
  2079. // Backlight compensation is disabled.
  2080. // BacklightCompensationModeOFF const
  2081. BacklightCompensationModeOFF BacklightCompensationMode = "OFF"
  2082. // Backlight compensation is enabled.
  2083. // BacklightCompensationModeON const
  2084. BacklightCompensationModeON BacklightCompensationMode = "ON"
  2085. )
  2086. // ExposurePriority type
  2087. type ExposurePriority string
  2088. const (
  2089. // ExposurePriorityLowNoise const
  2090. ExposurePriorityLowNoise ExposurePriority = "LowNoise"
  2091. // ExposurePriorityFrameRate const
  2092. ExposurePriorityFrameRate ExposurePriority = "FrameRate"
  2093. )
  2094. // ExposureMode type
  2095. type ExposureMode string
  2096. const (
  2097. // ExposureModeAUTO const
  2098. ExposureModeAUTO ExposureMode = "AUTO"
  2099. // ExposureModeMANUAL const
  2100. ExposureModeMANUAL ExposureMode = "MANUAL"
  2101. )
  2102. // Enabled type
  2103. type Enabled string
  2104. const (
  2105. // EnabledENABLED const
  2106. EnabledENABLED Enabled = "ENABLED"
  2107. // EnabledDISABLED const
  2108. EnabledDISABLED Enabled = "DISABLED"
  2109. )
  2110. // WhiteBalanceMode type
  2111. type WhiteBalanceMode string
  2112. const (
  2113. // WhiteBalanceModeAUTO const
  2114. WhiteBalanceModeAUTO WhiteBalanceMode = "AUTO"
  2115. // WhiteBalanceModeMANUAL const
  2116. WhiteBalanceModeMANUAL WhiteBalanceMode = "MANUAL"
  2117. )
  2118. // IrCutFilterMode type
  2119. type IrCutFilterMode string
  2120. const (
  2121. // IrCutFilterModeON const
  2122. IrCutFilterModeON IrCutFilterMode = "ON"
  2123. // IrCutFilterModeOFF const
  2124. IrCutFilterModeOFF IrCutFilterMode = "OFF"
  2125. // IrCutFilterModeAUTO const
  2126. IrCutFilterModeAUTO IrCutFilterMode = "AUTO"
  2127. )
  2128. // ImageStabilizationMode type
  2129. type ImageStabilizationMode string
  2130. const (
  2131. // ImageStabilizationModeOFF const
  2132. ImageStabilizationModeOFF ImageStabilizationMode = "OFF"
  2133. // ImageStabilizationModeON const
  2134. ImageStabilizationModeON ImageStabilizationMode = "ON"
  2135. // ImageStabilizationModeAUTO const
  2136. ImageStabilizationModeAUTO ImageStabilizationMode = "AUTO"
  2137. // ImageStabilizationModeExtended const
  2138. ImageStabilizationModeExtended ImageStabilizationMode = "Extended"
  2139. )
  2140. // IrCutFilterAutoBoundaryType type
  2141. type IrCutFilterAutoBoundaryType string
  2142. const (
  2143. // IrCutFilterAutoBoundaryTypeCommon const
  2144. IrCutFilterAutoBoundaryTypeCommon IrCutFilterAutoBoundaryType = "Common"
  2145. // IrCutFilterAutoBoundaryTypeToOn const
  2146. IrCutFilterAutoBoundaryTypeToOn IrCutFilterAutoBoundaryType = "ToOn"
  2147. // IrCutFilterAutoBoundaryTypeToOff const
  2148. IrCutFilterAutoBoundaryTypeToOff IrCutFilterAutoBoundaryType = "ToOff"
  2149. // IrCutFilterAutoBoundaryTypeExtended const
  2150. IrCutFilterAutoBoundaryTypeExtended IrCutFilterAutoBoundaryType = "Extended"
  2151. )
  2152. // ToneCompensationMode type
  2153. type ToneCompensationMode string
  2154. const (
  2155. // ToneCompensationModeOFF const
  2156. ToneCompensationModeOFF ToneCompensationMode = "OFF"
  2157. // ToneCompensationModeON const
  2158. ToneCompensationModeON ToneCompensationMode = "ON"
  2159. // ToneCompensationModeAUTO const
  2160. ToneCompensationModeAUTO ToneCompensationMode = "AUTO"
  2161. )
  2162. // DefoggingMode type
  2163. type DefoggingMode string
  2164. const (
  2165. // DefoggingModeOFF const
  2166. DefoggingModeOFF DefoggingMode = "OFF"
  2167. // DefoggingModeON const
  2168. DefoggingModeON DefoggingMode = "ON"
  2169. // DefoggingModeAUTO const
  2170. DefoggingModeAUTO DefoggingMode = "AUTO"
  2171. )
  2172. // TopicNamespaceLocation type
  2173. type TopicNamespaceLocation AnyURI
  2174. // PropertyOperation type
  2175. type PropertyOperation string
  2176. const (
  2177. // PropertyOperationInitialized const
  2178. PropertyOperationInitialized PropertyOperation = "Initialized"
  2179. // PropertyOperationDeleted const
  2180. PropertyOperationDeleted PropertyOperation = "Deleted"
  2181. // PropertyOperationChanged const
  2182. PropertyOperationChanged PropertyOperation = "Changed"
  2183. )
  2184. // Direction type
  2185. type Direction string
  2186. const (
  2187. // DirectionLeft const
  2188. DirectionLeft Direction = "Left"
  2189. // DirectionRight const
  2190. DirectionRight Direction = "Right"
  2191. // DirectionAny const
  2192. DirectionAny Direction = "Any"
  2193. )
  2194. //
  2195. // Specifies a receiver connection mode.
  2196. //
  2197. // ReceiverMode type
  2198. type ReceiverMode string
  2199. const (
  2200. // The receiver connects on demand, as required by consumers of the media streams.
  2201. // ReceiverModeAutoConnect const
  2202. ReceiverModeAutoConnect ReceiverMode = "AutoConnect"
  2203. // The receiver attempts to maintain a persistent connection to the configured endpoint.
  2204. // ReceiverModeAlwaysConnect const
  2205. ReceiverModeAlwaysConnect ReceiverMode = "AlwaysConnect"
  2206. // The receiver does not attempt to connect.
  2207. // ReceiverModeNeverConnect const
  2208. ReceiverModeNeverConnect ReceiverMode = "NeverConnect"
  2209. // This case should never happen.
  2210. // ReceiverModeUnknown const
  2211. ReceiverModeUnknown ReceiverMode = "Unknown"
  2212. )
  2213. //
  2214. // Specifies the current connection state of the receiver.
  2215. //
  2216. // ReceiverState type
  2217. type ReceiverState string
  2218. const (
  2219. // The receiver is not connected.
  2220. // ReceiverStateNotConnected const
  2221. ReceiverStateNotConnected ReceiverState = "NotConnected"
  2222. // The receiver is attempting to connect.
  2223. // ReceiverStateConnecting const
  2224. ReceiverStateConnecting ReceiverState = "Connecting"
  2225. // The receiver is connected.
  2226. // ReceiverStateConnected const
  2227. ReceiverStateConnected ReceiverState = "Connected"
  2228. // This case should never happen.
  2229. // ReceiverStateUnknown const
  2230. ReceiverStateUnknown ReceiverState = "Unknown"
  2231. )
  2232. // ReceiverReference type
  2233. type ReceiverReference ReferenceToken
  2234. // RecordingReference type
  2235. type RecordingReference ReferenceToken
  2236. // TrackReference type
  2237. type TrackReference ReferenceToken
  2238. // Description type
  2239. type Description string
  2240. // XPathExpression type
  2241. type XPathExpression string
  2242. // SearchState type
  2243. type SearchState string
  2244. const (
  2245. // The search is queued and not yet started.
  2246. // SearchStateQueued const
  2247. SearchStateQueued SearchState = "Queued"
  2248. // The search is underway and not yet completed.
  2249. // SearchStateSearching const
  2250. SearchStateSearching SearchState = "Searching"
  2251. // The search has been completed and no new results will be found.
  2252. // SearchStateCompleted const
  2253. SearchStateCompleted SearchState = "Completed"
  2254. // The state of the search is unknown. (This is not a valid response from GetSearchState.)
  2255. // SearchStateUnknown const
  2256. SearchStateUnknown SearchState = "Unknown"
  2257. )
  2258. // JobToken type
  2259. type JobToken ReferenceToken
  2260. // RecordingStatus type
  2261. type RecordingStatus string
  2262. const (
  2263. // RecordingStatusInitiated const
  2264. RecordingStatusInitiated RecordingStatus = "Initiated"
  2265. // RecordingStatusRecording const
  2266. RecordingStatusRecording RecordingStatus = "Recording"
  2267. // RecordingStatusStopped const
  2268. RecordingStatusStopped RecordingStatus = "Stopped"
  2269. // RecordingStatusRemoving const
  2270. RecordingStatusRemoving RecordingStatus = "Removing"
  2271. // RecordingStatusRemoved const
  2272. RecordingStatusRemoved RecordingStatus = "Removed"
  2273. // This case should never happen.
  2274. // RecordingStatusUnknown const
  2275. RecordingStatusUnknown RecordingStatus = "Unknown"
  2276. )
  2277. // TrackType type
  2278. type TrackType string
  2279. const (
  2280. // TrackTypeVideo const
  2281. TrackTypeVideo TrackType = "Video"
  2282. // TrackTypeAudio const
  2283. TrackTypeAudio TrackType = "Audio"
  2284. // TrackTypeMetadata const
  2285. TrackTypeMetadata TrackType = "Metadata"
  2286. // Placeholder for future extension.
  2287. // TrackTypeExtended const
  2288. TrackTypeExtended TrackType = "Extended"
  2289. )
  2290. // RecordingJobReference type
  2291. type RecordingJobReference ReferenceToken
  2292. // RecordingJobMode type
  2293. type RecordingJobMode string
  2294. // RecordingJobState type
  2295. type RecordingJobState string
  2296. // ModeOfOperation type
  2297. type ModeOfOperation string
  2298. const (
  2299. // ModeOfOperationIdle const
  2300. ModeOfOperationIdle ModeOfOperation = "Idle"
  2301. // ModeOfOperationActive const
  2302. ModeOfOperationActive ModeOfOperation = "Active"
  2303. // This case should never happen.
  2304. // ModeOfOperationUnknown const
  2305. ModeOfOperationUnknown ModeOfOperation = "Unknown"
  2306. )
  2307. //
  2308. // AudioClassType acceptable values are;
  2309. // gun_shot, scream, glass_breaking, tire_screech
  2310. //
  2311. // AudioClassType type
  2312. type AudioClassType string
  2313. // OSDType type
  2314. type OSDType string
  2315. const (
  2316. // OSDTypeText const
  2317. OSDTypeText OSDType = "Text"
  2318. // OSDTypeImage const
  2319. OSDTypeImage OSDType = "Image"
  2320. // OSDTypeExtended const
  2321. OSDTypeExtended OSDType = "Extended"
  2322. )
  2323. // Message type
  2324. type Message struct {
  2325. XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Message"`
  2326. // Token value pairs that triggered this message. Typically only one item is present.
  2327. Source ItemList `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  2328. Key ItemList `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  2329. Data ItemList `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  2330. Extension MessageExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2331. UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,attr,omitempty"`
  2332. PropertyOperation PropertyOperation `xml:"http://www.onvif.org/ver10/schema PropertyOperation,attr,omitempty"`
  2333. }
  2334. // DeviceEntity type
  2335. type DeviceEntity struct {
  2336. // Unique identifier referencing the physical entity.
  2337. Token ReferenceToken `xml:"token,attr,omitempty"`
  2338. }
  2339. // IntRectangle type
  2340. type IntRectangle struct {
  2341. X int32 `xml:"x,attr,omitempty"`
  2342. Y int32 `xml:"y,attr,omitempty"`
  2343. Width int32 `xml:"width,attr,omitempty"`
  2344. Height int32 `xml:"height,attr,omitempty"`
  2345. }
  2346. // IntRectangleRange type
  2347. type IntRectangleRange struct {
  2348. // Range of X-axis.
  2349. XRange IntRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  2350. // Range of Y-axis.
  2351. YRange IntRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
  2352. // Range of width.
  2353. WidthRange IntRange `xml:"http://www.onvif.org/ver10/schema WidthRange,omitempty"`
  2354. // Range of height.
  2355. HeightRange IntRange `xml:"http://www.onvif.org/ver10/schema HeightRange,omitempty"`
  2356. }
  2357. // FloatRange type
  2358. type FloatRange struct {
  2359. Min float32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  2360. Max float32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  2361. }
  2362. // DurationRange type
  2363. type DurationRange struct {
  2364. Min Duration `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  2365. Max Duration `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  2366. }
  2367. // IntList type
  2368. type IntList struct {
  2369. Items []int32 `xml:"http://www.onvif.org/ver10/schema Items,omitempty"`
  2370. }
  2371. // VideoSource type
  2372. type VideoSource struct {
  2373. *DeviceEntity
  2374. // Frame rate in frames per second.
  2375. Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
  2376. // Horizontal and vertical resolution
  2377. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl Resolution,omitempty"`
  2378. // Optional configuration of the image sensor.
  2379. Imaging ImagingSettings `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
  2380. Extension VideoSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2381. }
  2382. // VideoSourceExtension type
  2383. type VideoSourceExtension struct {
  2384. // Optional configuration of the image sensor. To be used if imaging service 2.00 is supported.
  2385. Imaging ImagingSettings20 `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
  2386. Extension VideoSourceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2387. }
  2388. // VideoSourceExtension2 type
  2389. type VideoSourceExtension2 struct {
  2390. }
  2391. // AudioSource type
  2392. type AudioSource struct {
  2393. *DeviceEntity
  2394. // number of available audio channels. (1: mono, 2: stereo)
  2395. Channels int32 `xml:"http://www.onvif.org/ver10/schema Channels,omitempty"`
  2396. }
  2397. // Profile type
  2398. type Profile struct {
  2399. // User readable name of the profile.
  2400. Name Name `xml:"http://www.onvif.org/ver10/media/wsdl Name,omitempty"`
  2401. // Optional configuration of the Video input.
  2402. VideoSourceConfiguration VideoSourceConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl VideoSourceConfiguration,omitempty"`
  2403. // Optional configuration of the Audio input.
  2404. AudioSourceConfiguration AudioSourceConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl AudioSourceConfiguration,omitempty"`
  2405. // Optional configuration of the Video encoder.
  2406. VideoEncoderConfiguration VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl VideoEncoderConfiguration,omitempty"`
  2407. // Optional configuration of the Audio encoder.
  2408. AudioEncoderConfiguration AudioEncoderConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl AudioEncoderConfiguration,omitempty"`
  2409. // Optional configuration of the video analytics module and rule engine.
  2410. VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl VideoAnalyticsConfiguration,omitempty"`
  2411. // Optional configuration of the pan tilt zoom unit.
  2412. PTZConfiguration PTZConfiguration `xml:"http://www.onvif.org/ver10/schema PTZConfiguration,omitempty"`
  2413. // Optional configuration of the metadata stream.
  2414. MetadataConfiguration MetadataConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl MetadataConfiguration,omitempty"`
  2415. // Extensions defined in ONVIF 2.0
  2416. Extension ProfileExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2417. // Unique identifier of the profile.
  2418. Token ReferenceToken `xml:"token,attr,omitempty"`
  2419. // A value of true signals that the profile cannot be deleted. Default is false.
  2420. Fixed bool `xml:"fixed,attr,omitempty"`
  2421. }
  2422. // ProfileExtension type
  2423. type ProfileExtension struct {
  2424. // Optional configuration of the Audio output.
  2425. AudioOutputConfiguration AudioOutputConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl AudioOutputConfiguration,omitempty"`
  2426. // Optional configuration of the Audio decoder.
  2427. AudioDecoderConfiguration AudioDecoderConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl AudioDecoderConfiguration,omitempty"`
  2428. Extension ProfileExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2429. }
  2430. // ProfileExtension2 type
  2431. type ProfileExtension2 struct {
  2432. }
  2433. // ConfigurationEntity type
  2434. type ConfigurationEntity struct {
  2435. // User readable name. Length up to 64 characters.
  2436. Name Name `xml:"http://www.onvif.org/ver10/media/wsdl Name,omitempty"`
  2437. // Number of internal references currently using this configuration.
  2438. UseCount int32 `xml:"http://www.onvif.org/ver10/schema UseCount,omitempty"`
  2439. // Token that uniquely references this configuration. Length up to 64 characters.
  2440. Token ReferenceToken `xml:"token,attr,omitempty"`
  2441. }
  2442. // VideoSourceConfiguration type
  2443. type VideoSourceConfiguration struct {
  2444. *ConfigurationEntity
  2445. // Reference to the physical input.
  2446. SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl SourceToken,omitempty"`
  2447. // Rectangle specifying the Video capturing area. The capturing area shall not be larger than the whole Video source area.
  2448. Bounds IntRectangle `xml:"http://www.onvif.org/ver10/schema Bounds,omitempty"`
  2449. Extension VideoSourceConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2450. // Readonly parameter signalling Source configuration's view mode, for devices supporting different view modes as defined in tt:viewModes.
  2451. ViewMode string `xml:"http://www.onvif.org/ver10/schema ViewMode,attr,omitempty"`
  2452. }
  2453. // VideoSourceConfigurationExtension type
  2454. type VideoSourceConfigurationExtension struct {
  2455. // Optional element to configure rotation of captured image.
  2456. // What resolutions a device supports shall be unaffected by the Rotate parameters.
  2457. // 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.
  2458. // The device shall automatically apply the same rotation to its pan/tilt control direction depending on the following condition:
  2459. // if Reverse=AUTO in PTControlDirection or if the device doesn’t support Reverse in PTControlDirection
  2460. //
  2461. Rotate Rotate `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
  2462. Extension VideoSourceConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2463. }
  2464. // VideoSourceConfigurationExtension2 type
  2465. type VideoSourceConfigurationExtension2 struct {
  2466. // Optional element describing the geometric lens distortion. Multiple instances for future variable lens support.
  2467. LensDescription []LensDescription `xml:"http://www.onvif.org/ver10/schema LensDescription,omitempty"`
  2468. // Optional element describing the scene orientation in the camera’s field of view.
  2469. SceneOrientation SceneOrientation `xml:"http://www.onvif.org/ver10/schema SceneOrientation,omitempty"`
  2470. }
  2471. // Rotate type
  2472. type Rotate struct {
  2473. // Parameter to enable/disable Rotation feature.
  2474. Mode RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2475. // 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.
  2476. Degree int32 `xml:"http://www.onvif.org/ver10/schema Degree,omitempty"`
  2477. Extension RotateExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2478. }
  2479. // RotateExtension type
  2480. type RotateExtension struct {
  2481. }
  2482. // LensProjection type
  2483. type LensProjection struct {
  2484. // Angle of incidence.
  2485. Angle float32 `xml:"http://www.onvif.org/ver10/schema Angle,omitempty"`
  2486. // Mapping radius as a consequence of the emergent angle.
  2487. Radius float32 `xml:"http://www.onvif.org/ver10/schema Radius,omitempty"`
  2488. // Optional ray absorption at the given angle due to vignetting. A value of one means no absorption.
  2489. Transmittance float32 `xml:"http://www.onvif.org/ver10/schema Transmittance,omitempty"`
  2490. }
  2491. // LensOffset type
  2492. type LensOffset struct {
  2493. // Optional horizontal offset of the lens center in normalized coordinates.
  2494. X float32 `xml:"x,attr,omitempty"`
  2495. // Optional vertical offset of the lens center in normalized coordinates.
  2496. Y float32 `xml:"y,attr,omitempty"`
  2497. }
  2498. // LensDescription type
  2499. type LensDescription struct {
  2500. // Offset of the lens center to the imager center in normalized coordinates.
  2501. Offset LensOffset `xml:"http://www.onvif.org/ver10/schema Offset,omitempty"`
  2502. // Radial description of the projection characteristics. The resulting curve is defined by the B-Spline interpolation
  2503. // over the given elements. The element for Radius zero shall not be provided. The projection points shall be ordered with ascending Radius.
  2504. // Items outside the last projection Radius shall be assumed to be invisible (black).
  2505. Projection []LensProjection `xml:"http://www.onvif.org/ver10/schema Projection,omitempty"`
  2506. // Compensation of the x coordinate needed for the ONVIF normalized coordinate system.
  2507. XFactor float32 `xml:"http://www.onvif.org/ver10/schema XFactor,omitempty"`
  2508. // Optional focal length of the optical system.
  2509. FocalLength float32 `xml:"http://www.onvif.org/ver10/schema FocalLength,attr,omitempty"`
  2510. }
  2511. // VideoSourceConfigurationOptions type
  2512. type VideoSourceConfigurationOptions struct {
  2513. //
  2514. // Supported range for the capturing area.
  2515. // Device that does not support cropped streaming shall express BoundsRange option as mentioned below
  2516. // BoundsRange->XRange and BoundsRange->YRange with same Min/Max values HeightRange and WidthRange Min/Max values same as VideoSource Height and Width Limits.
  2517. //
  2518. BoundsRange IntRectangleRange `xml:"http://www.onvif.org/ver10/schema BoundsRange,omitempty"`
  2519. // List of physical inputs.
  2520. VideoSourceTokensAvailable []ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl VideoSourceTokensAvailable,omitempty"`
  2521. Extension VideoSourceConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2522. // Maximum number of profiles.
  2523. MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,attr,omitempty"`
  2524. }
  2525. // VideoSourceConfigurationOptionsExtension type
  2526. type VideoSourceConfigurationOptionsExtension struct {
  2527. // Options of parameters for Rotation feature.
  2528. Rotate RotateOptions `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
  2529. Extension VideoSourceConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2530. }
  2531. // VideoSourceConfigurationOptionsExtension2 type
  2532. type VideoSourceConfigurationOptionsExtension2 struct {
  2533. // Scene orientation modes supported by the device for this configuration.
  2534. SceneOrientationMode []SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema SceneOrientationMode,omitempty"`
  2535. }
  2536. // RotateOptions type
  2537. type RotateOptions struct {
  2538. // Supported options of Rotate mode parameter.
  2539. Mode []RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2540. // List of supported degree value for rotation.
  2541. DegreeList IntList `xml:"http://www.onvif.org/ver10/schema DegreeList,omitempty"`
  2542. Extension RotateOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2543. // After setting the rotation, if a device starts to reboot this value is true.
  2544. // If a device can handle rotation setting without rebooting this value is false.
  2545. Reboot bool `xml:"http://www.onvif.org/ver10/media/wsdl Reboot,attr,omitempty"`
  2546. }
  2547. // RotateOptionsExtension type
  2548. type RotateOptionsExtension struct {
  2549. }
  2550. // SceneOrientation type
  2551. type SceneOrientation struct {
  2552. //
  2553. // Parameter to assign the way the camera determines the scene orientation.
  2554. //
  2555. Mode SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2556. //
  2557. // Assigned or determined scene orientation based on the Mode. When assigning the Mode to AUTO, this field
  2558. // is optional and will be ignored by the device. When assigning the Mode to MANUAL, this field is required
  2559. // and the device will return an InvalidArgs fault if missing.
  2560. //
  2561. Orientation string `xml:"http://www.onvif.org/ver10/schema Orientation,omitempty"`
  2562. }
  2563. // VideoEncoderConfiguration type
  2564. type VideoEncoderConfiguration struct {
  2565. *ConfigurationEntity
  2566. // Used video codec, either Jpeg, H.264 or Mpeg4
  2567. Encoding VideoEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  2568. // Configured video resolution
  2569. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl Resolution,omitempty"`
  2570. // Relative value for the video quantizers and the quality of the video. A high value within supported quality range means higher quality
  2571. Quality float32 `xml:"http://www.onvif.org/ver10/schema Quality,omitempty"`
  2572. // Optional element to configure rate control related parameters.
  2573. RateControl VideoRateControl `xml:"http://www.onvif.org/ver10/schema RateControl,omitempty"`
  2574. // Optional element to configure Mpeg4 related parameters.
  2575. MPEG4 Mpeg4Configuration `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
  2576. // Optional element to configure H.264 related parameters.
  2577. H264 H264Configuration `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
  2578. // Defines the multicast settings that could be used for video streaming.
  2579. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  2580. // The rtsp session timeout for the related video stream
  2581. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  2582. //
  2583. // A value of true indicates that frame rate is a fixed value rather than an upper limit,
  2584. // and that the video encoder shall prioritize frame rate over all other adaptable
  2585. // configuration values such as bitrate. Default is false.
  2586. //
  2587. GuaranteedFrameRate bool `xml:"http://www.onvif.org/ver10/media/wsdl GuaranteedFrameRate,attr,omitempty"`
  2588. }
  2589. // VideoResolution type
  2590. type VideoResolution struct {
  2591. // Number of the columns of the Video image.
  2592. Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
  2593. // Number of the lines of the Video image.
  2594. Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
  2595. }
  2596. // VideoRateControl type
  2597. type VideoRateControl struct {
  2598. // Maximum output framerate in fps. If an EncodingInterval is provided the resulting encoded framerate will be reduced by the given factor.
  2599. FrameRateLimit int32 `xml:"http://www.onvif.org/ver10/schema FrameRateLimit,omitempty"`
  2600. // 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 ...)
  2601. EncodingInterval int32 `xml:"http://www.onvif.org/ver10/schema EncodingInterval,omitempty"`
  2602. // the maximum output bitrate in kbps
  2603. BitrateLimit int32 `xml:"http://www.onvif.org/ver10/schema BitrateLimit,omitempty"`
  2604. }
  2605. // Mpeg4Configuration type
  2606. type Mpeg4Configuration struct {
  2607. // 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.
  2608. GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
  2609. // the Mpeg4 profile, either simple profile (SP) or advanced simple profile (ASP)
  2610. Mpeg4Profile Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4Profile,omitempty"`
  2611. }
  2612. // H264Configuration type
  2613. type H264Configuration struct {
  2614. // 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.
  2615. GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
  2616. // the H.264 profile, either baseline, main, extended or high
  2617. H264Profile H264Profile `xml:"http://www.onvif.org/ver10/schema H264Profile,omitempty"`
  2618. }
  2619. // VideoEncoderConfigurationOptions type
  2620. type VideoEncoderConfigurationOptions struct {
  2621. // Range of the quality values. A high value means higher quality.
  2622. QualityRange IntRange `xml:"http://www.onvif.org/ver10/schema QualityRange,omitempty"`
  2623. // Optional JPEG encoder settings ranges (See also Extension element).
  2624. JPEG JpegOptions `xml:"http://www.onvif.org/ver10/schema JPEG,omitempty"`
  2625. // Optional MPEG-4 encoder settings ranges (See also Extension element).
  2626. MPEG4 Mpeg4Options `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
  2627. // Optional H.264 encoder settings ranges (See also Extension element).
  2628. H264 H264Options `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
  2629. Extension VideoEncoderOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2630. //
  2631. // Indicates the support for the GuaranteedFrameRate attribute on the VideoEncoderConfiguration element.
  2632. //
  2633. GuaranteedFrameRateSupported bool `xml:"http://www.onvif.org/ver10/media/wsdl GuaranteedFrameRateSupported,attr,omitempty"`
  2634. }
  2635. // VideoEncoderOptionsExtension type
  2636. type VideoEncoderOptionsExtension struct {
  2637. // Optional JPEG encoder settings ranges.
  2638. JPEG JpegOptions2 `xml:"http://www.onvif.org/ver10/schema JPEG,omitempty"`
  2639. // Optional MPEG-4 encoder settings ranges.
  2640. MPEG4 Mpeg4Options2 `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
  2641. // Optional H.264 encoder settings ranges.
  2642. H264 H264Options2 `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
  2643. Extension VideoEncoderOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2644. }
  2645. // VideoEncoderOptionsExtension2 type
  2646. type VideoEncoderOptionsExtension2 struct {
  2647. }
  2648. // JpegOptions type
  2649. type JpegOptions struct {
  2650. // List of supported image sizes.
  2651. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl ResolutionsAvailable,omitempty"`
  2652. // Supported frame rate in fps (frames per second).
  2653. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  2654. // 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.
  2655. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  2656. }
  2657. // JpegOptions2 type
  2658. type JpegOptions2 struct {
  2659. *JpegOptions
  2660. // Supported range of encoded bitrate in kbps.
  2661. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  2662. }
  2663. // Mpeg4Options type
  2664. type Mpeg4Options struct {
  2665. // List of supported image sizes.
  2666. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl ResolutionsAvailable,omitempty"`
  2667. // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
  2668. GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
  2669. // Supported frame rate in fps (frames per second).
  2670. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  2671. // 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.
  2672. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  2673. // List of supported MPEG-4 profiles.
  2674. Mpeg4ProfilesSupported []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4ProfilesSupported,omitempty"`
  2675. }
  2676. // Mpeg4Options2 type
  2677. type Mpeg4Options2 struct {
  2678. *Mpeg4Options
  2679. // Supported range of encoded bitrate in kbps.
  2680. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  2681. }
  2682. // H264Options type
  2683. type H264Options struct {
  2684. // List of supported image sizes.
  2685. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl ResolutionsAvailable,omitempty"`
  2686. // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
  2687. GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
  2688. // Supported frame rate in fps (frames per second).
  2689. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  2690. // 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.
  2691. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  2692. // List of supported H.264 profiles.
  2693. H264ProfilesSupported []H264Profile `xml:"http://www.onvif.org/ver10/schema H264ProfilesSupported,omitempty"`
  2694. }
  2695. // H264Options2 type
  2696. type H264Options2 struct {
  2697. *H264Options
  2698. // Supported range of encoded bitrate in kbps.
  2699. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  2700. }
  2701. // AudioSourceConfiguration type
  2702. type AudioSourceConfiguration struct {
  2703. *ConfigurationEntity
  2704. // Token of the Audio Source the configuration applies to
  2705. SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl SourceToken,omitempty"`
  2706. }
  2707. // AudioSourceConfigurationOptions type
  2708. type AudioSourceConfigurationOptions struct {
  2709. // Tokens of the audio source the configuration can be used for.
  2710. InputTokensAvailable []ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl InputTokensAvailable,omitempty"`
  2711. Extension AudioSourceOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2712. }
  2713. // AudioSourceOptionsExtension type
  2714. type AudioSourceOptionsExtension struct {
  2715. }
  2716. // AudioEncoderConfiguration type
  2717. type AudioEncoderConfiguration struct {
  2718. *ConfigurationEntity
  2719. // Audio codec used for encoding the audio input (either G.711, G.726 or AAC)
  2720. Encoding AudioEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  2721. // The output bitrate in kbps.
  2722. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2723. // The output sample rate in kHz.
  2724. SampleRate int32 `xml:"http://www.onvif.org/ver10/schema SampleRate,omitempty"`
  2725. // Defines the multicast settings that could be used for video streaming.
  2726. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  2727. // The rtsp session timeout for the related audio stream
  2728. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  2729. }
  2730. // AudioEncoderConfigurationOptions type
  2731. type AudioEncoderConfigurationOptions struct {
  2732. // list of supported AudioEncoderConfigurations
  2733. Options []AudioEncoderConfigurationOption `xml:"http://www.onvif.org/ver10/media/wsdl Options,omitempty"`
  2734. }
  2735. // AudioEncoderConfigurationOption type
  2736. type AudioEncoderConfigurationOption struct {
  2737. // The enoding used for audio data (either G.711, G.726 or AAC)
  2738. Encoding AudioEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  2739. // List of supported bitrates in kbps for the specified Encoding
  2740. BitrateList IntList `xml:"http://www.onvif.org/ver10/schema BitrateList,omitempty"`
  2741. // List of supported Sample Rates in kHz for the specified Encoding
  2742. SampleRateList IntList `xml:"http://www.onvif.org/ver10/schema SampleRateList,omitempty"`
  2743. }
  2744. // VideoAnalyticsConfiguration type
  2745. type VideoAnalyticsConfiguration struct {
  2746. *ConfigurationEntity
  2747. AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  2748. RuleEngineConfiguration RuleEngineConfiguration `xml:"http://www.onvif.org/ver10/schema RuleEngineConfiguration,omitempty"`
  2749. }
  2750. // MetadataConfiguration type
  2751. type MetadataConfiguration struct {
  2752. *ConfigurationEntity
  2753. // optional element to configure which PTZ related data is to include in the metadata stream
  2754. PTZStatus PTZFilter `xml:"http://www.onvif.org/ver10/schema PTZStatus,omitempty"`
  2755. // Optional element to configure the streaming of events. A client might be interested in receiving all,
  2756. // none or some of the events produced by the device:
  2757. //
  2758. Events EventSubscription `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
  2759. // Defines whether the streamed metadata will include metadata from the analytics engines (video, cell motion, audio etc.)
  2760. Analytics bool `xml:"http://www.onvif.org/ver10/media/wsdl Analytics,omitempty"`
  2761. // Defines the multicast settings that could be used for video streaming.
  2762. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  2763. // The rtsp session timeout for the related audio stream (when using Media2 Service, this value is deprecated and ignored)
  2764. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  2765. AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  2766. Extension MetadataConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2767. // Optional parameter to configure compression type of Metadata payload. Use values from enumeration MetadataCompressionType.
  2768. CompressionType string `xml:"http://www.onvif.org/ver10/schema CompressionType,attr,omitempty"`
  2769. // Optional parameter to configure if the metadata stream shall contain the Geo Location coordinates of each target.
  2770. GeoLocation bool `xml:"http://www.onvif.org/ver10/media/wsdl GeoLocation,attr,omitempty"`
  2771. }
  2772. // MetadataConfigurationExtension type
  2773. type MetadataConfigurationExtension struct {
  2774. }
  2775. // PTZFilter type
  2776. type PTZFilter struct {
  2777. // True if the metadata stream shall contain the PTZ status (IDLE, MOVING or UNKNOWN)
  2778. Status bool `xml:"http://www.onvif.org/ver10/media/wsdl Status,omitempty"`
  2779. // True if the metadata stream shall contain the PTZ position
  2780. Position bool `xml:"http://www.onvif.org/ver10/media/wsdl Position,omitempty"`
  2781. }
  2782. // EventSubscription type
  2783. type EventSubscription struct {
  2784. Filter FilterType `xml:"Filter,omitempty"`
  2785. SubscriptionPolicy struct {
  2786. } `xml:"SubscriptionPolicy,omitempty"`
  2787. }
  2788. // MetadataConfigurationOptions type
  2789. type MetadataConfigurationOptions struct {
  2790. PTZStatusFilterOptions PTZStatusFilterOptions `xml:"http://www.onvif.org/ver10/schema PTZStatusFilterOptions,omitempty"`
  2791. Extension MetadataConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2792. // True if the device is able to stream the Geo Located positions of each target.
  2793. GeoLocation bool `xml:"http://www.onvif.org/ver10/media/wsdl GeoLocation,attr,omitempty"`
  2794. }
  2795. // MetadataConfigurationOptionsExtension type
  2796. type MetadataConfigurationOptionsExtension struct {
  2797. // List of supported metadata compression type. Its options shall be chosen from tt:MetadataCompressionType.
  2798. CompressionType []string `xml:"http://www.onvif.org/ver10/schema CompressionType,omitempty"`
  2799. Extension MetadataConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2800. }
  2801. // MetadataConfigurationOptionsExtension2 type
  2802. type MetadataConfigurationOptionsExtension2 struct {
  2803. }
  2804. // PTZStatusFilterOptions type
  2805. type PTZStatusFilterOptions struct {
  2806. // True if the device is able to stream pan or tilt status information.
  2807. PanTiltStatusSupported bool `xml:"http://www.onvif.org/ver10/media/wsdl PanTiltStatusSupported,omitempty"`
  2808. // True if the device is able to stream zoom status inforamtion.
  2809. ZoomStatusSupported bool `xml:"http://www.onvif.org/ver10/media/wsdl ZoomStatusSupported,omitempty"`
  2810. // True if the device is able to stream the pan or tilt position.
  2811. PanTiltPositionSupported bool `xml:"http://www.onvif.org/ver10/media/wsdl PanTiltPositionSupported,omitempty"`
  2812. // True if the device is able to stream zoom position information.
  2813. ZoomPositionSupported bool `xml:"http://www.onvif.org/ver10/media/wsdl ZoomPositionSupported,omitempty"`
  2814. Extension PTZStatusFilterOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2815. }
  2816. // PTZStatusFilterOptionsExtension type
  2817. type PTZStatusFilterOptionsExtension struct {
  2818. }
  2819. // VideoOutput type
  2820. type VideoOutput struct {
  2821. *DeviceEntity
  2822. Layout Layout `xml:"http://www.onvif.org/ver10/schema Layout,omitempty"`
  2823. // Resolution of the display in Pixel.
  2824. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl Resolution,omitempty"`
  2825. // Refresh rate of the display in Hertz.
  2826. RefreshRate float32 `xml:"http://www.onvif.org/ver10/schema RefreshRate,omitempty"`
  2827. // Aspect ratio of the display as physical extent of width divided by height.
  2828. AspectRatio float32 `xml:"http://www.onvif.org/ver10/schema AspectRatio,omitempty"`
  2829. Extension VideoOutputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2830. }
  2831. // VideoOutputExtension type
  2832. type VideoOutputExtension struct {
  2833. }
  2834. // VideoDecoderConfigurationOptions type
  2835. type VideoDecoderConfigurationOptions struct {
  2836. // If the device is able to decode Jpeg streams this element describes the supported codecs and configurations
  2837. JpegDecOptions JpegDecOptions `xml:"http://www.onvif.org/ver10/schema JpegDecOptions,omitempty"`
  2838. // If the device is able to decode H.264 streams this element describes the supported codecs and configurations
  2839. H264DecOptions H264DecOptions `xml:"http://www.onvif.org/ver10/schema H264DecOptions,omitempty"`
  2840. // If the device is able to decode Mpeg4 streams this element describes the supported codecs and configurations
  2841. Mpeg4DecOptions Mpeg4DecOptions `xml:"http://www.onvif.org/ver10/schema Mpeg4DecOptions,omitempty"`
  2842. Extension VideoDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2843. }
  2844. // H264DecOptions type
  2845. type H264DecOptions struct {
  2846. // List of supported H.264 Video Resolutions
  2847. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl ResolutionsAvailable,omitempty"`
  2848. // List of supported H264 Profiles (either baseline, main, extended or high)
  2849. SupportedH264Profiles []H264Profile `xml:"http://www.onvif.org/ver10/schema SupportedH264Profiles,omitempty"`
  2850. // Supported H.264 bitrate range in kbps
  2851. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  2852. // Supported H.264 framerate range in fps
  2853. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  2854. }
  2855. // JpegDecOptions type
  2856. type JpegDecOptions struct {
  2857. // List of supported Jpeg Video Resolutions
  2858. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl ResolutionsAvailable,omitempty"`
  2859. // Supported Jpeg bitrate range in kbps
  2860. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  2861. // Supported Jpeg framerate range in fps
  2862. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  2863. }
  2864. // Mpeg4DecOptions type
  2865. type Mpeg4DecOptions struct {
  2866. // List of supported Mpeg4 Video Resolutions
  2867. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/media/wsdl ResolutionsAvailable,omitempty"`
  2868. // List of supported Mpeg4 Profiles (either SP or ASP)
  2869. SupportedMpeg4Profiles []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema SupportedMpeg4Profiles,omitempty"`
  2870. // Supported Mpeg4 bitrate range in kbps
  2871. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  2872. // Supported Mpeg4 framerate range in fps
  2873. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  2874. }
  2875. // VideoDecoderConfigurationOptionsExtension type
  2876. type VideoDecoderConfigurationOptionsExtension struct {
  2877. }
  2878. // AudioOutput type
  2879. type AudioOutput struct {
  2880. *DeviceEntity
  2881. }
  2882. // AudioOutputConfiguration type
  2883. type AudioOutputConfiguration struct {
  2884. *ConfigurationEntity
  2885. // Token of the phsycial Audio output.
  2886. OutputToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl OutputToken,omitempty"`
  2887. //
  2888. // An audio channel MAY support different types of audio transmission. While for full duplex
  2889. // operation no special handling is required, in half duplex operation the transmission direction
  2890. // needs to be switched.
  2891. // The optional SendPrimacy parameter inside the AudioOutputConfiguration indicates which
  2892. // direction is currently active. An NVC can switch between different modes by setting the
  2893. // AudioOutputConfiguration.
  2894. // The following modes for the Send-Primacy are defined:
  2895. // Acoustic echo cancellation is out of ONVIF scope.
  2896. SendPrimacy AnyURI `xml:"http://www.onvif.org/ver10/schema SendPrimacy,omitempty"`
  2897. // Volume setting of the output. The applicable range is defined via the option AudioOutputOptions.OutputLevelRange.
  2898. OutputLevel int32 `xml:"http://www.onvif.org/ver10/schema OutputLevel,omitempty"`
  2899. }
  2900. // AudioOutputConfigurationOptions type
  2901. type AudioOutputConfigurationOptions struct {
  2902. // Tokens of the physical Audio outputs (typically one).
  2903. OutputTokensAvailable []ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl OutputTokensAvailable,omitempty"`
  2904. //
  2905. // An channel MAY support different types of audio transmission. While for full duplex
  2906. // operation no special handling is required, in half duplex operation the transmission direction
  2907. // needs to be switched.
  2908. // The optional SendPrimacy parameter inside the AudioOutputConfiguration indicates which
  2909. // direction is currently active. An NVC can switch between different modes by setting the
  2910. // AudioOutputConfiguration.
  2911. // The following modes for the Send-Primacy are defined:
  2912. // Acoustic echo cancellation is out of ONVIF scope.
  2913. SendPrimacyOptions []AnyURI `xml:"http://www.onvif.org/ver10/schema SendPrimacyOptions,omitempty"`
  2914. // Minimum and maximum level range supported for this Output.
  2915. OutputLevelRange IntRange `xml:"http://www.onvif.org/ver10/schema OutputLevelRange,omitempty"`
  2916. }
  2917. // AudioDecoderConfiguration type
  2918. type AudioDecoderConfiguration struct {
  2919. *ConfigurationEntity
  2920. }
  2921. // AudioDecoderConfigurationOptions type
  2922. type AudioDecoderConfigurationOptions struct {
  2923. // If the device is able to decode AAC encoded audio this section describes the supported configurations
  2924. AACDecOptions AACDecOptions `xml:"http://www.onvif.org/ver10/schema AACDecOptions,omitempty"`
  2925. // If the device is able to decode G711 encoded audio this section describes the supported configurations
  2926. G711DecOptions G711DecOptions `xml:"http://www.onvif.org/ver10/schema G711DecOptions,omitempty"`
  2927. // If the device is able to decode G726 encoded audio this section describes the supported configurations
  2928. G726DecOptions G726DecOptions `xml:"http://www.onvif.org/ver10/schema G726DecOptions,omitempty"`
  2929. Extension AudioDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2930. }
  2931. // G711DecOptions type
  2932. type G711DecOptions struct {
  2933. // List of supported bitrates in kbps
  2934. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2935. // List of supported sample rates in kHz
  2936. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2937. }
  2938. // AACDecOptions type
  2939. type AACDecOptions struct {
  2940. // List of supported bitrates in kbps
  2941. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2942. // List of supported sample rates in kHz
  2943. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2944. }
  2945. // G726DecOptions type
  2946. type G726DecOptions struct {
  2947. // List of supported bitrates in kbps
  2948. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2949. // List of supported sample rates in kHz
  2950. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2951. }
  2952. // AudioDecoderConfigurationOptionsExtension type
  2953. type AudioDecoderConfigurationOptionsExtension struct {
  2954. }
  2955. // MulticastConfiguration type
  2956. type MulticastConfiguration struct {
  2957. // The multicast address (if this address is set to 0 no multicast streaming is enaled)
  2958. Address IPAddress `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  2959. // 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.
  2960. Port int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
  2961. // 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.
  2962. TTL int32 `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
  2963. // Read only property signalling that streaming is persistant. Use the methods StartMulticastStreaming and StopMulticastStreaming to switch its state.
  2964. AutoStart bool `xml:"http://www.onvif.org/ver10/media/wsdl AutoStart,omitempty"`
  2965. }
  2966. // StreamSetup type
  2967. type StreamSetup struct {
  2968. // Defines if a multicast or unicast stream is requested
  2969. Stream StreamType `xml:"http://www.onvif.org/ver10/schema Stream,omitempty"`
  2970. Transport Transport `xml:"http://www.onvif.org/ver10/schema Transport,omitempty"`
  2971. }
  2972. // Transport type
  2973. type Transport struct {
  2974. // Defines the network protocol for streaming, either UDP=RTP/UDP, RTSP=RTP/RTSP/TCP or HTTP=RTP/RTSP/HTTP/TCP
  2975. Protocol TransportProtocol `xml:"http://www.onvif.org/ver10/schema Protocol,omitempty"`
  2976. // Optional element to describe further tunnel options. This element is normally not needed
  2977. Tunnel *Transport `xml:"http://www.onvif.org/ver10/schema Tunnel,omitempty"`
  2978. }
  2979. // MediaUri type
  2980. type MediaUri struct {
  2981. // Stable Uri to be used for requesting the media stream
  2982. Uri AnyURI `xml:"http://www.onvif.org/ver10/schema Uri,omitempty"`
  2983. // Indicates if the Uri is only valid until the connection is established. The value shall be set to "false".
  2984. InvalidAfterConnect bool `xml:"http://www.onvif.org/ver10/media/wsdl InvalidAfterConnect,omitempty"`
  2985. // Indicates if the Uri is invalid after a reboot of the device. The value shall be set to "false".
  2986. InvalidAfterReboot bool `xml:"http://www.onvif.org/ver10/media/wsdl InvalidAfterReboot,omitempty"`
  2987. // Duration how long the Uri is valid. This parameter shall be set to PT0S to indicate that this stream URI is indefinitely valid even if the profile changes
  2988. Timeout Duration `xml:"http://www.onvif.org/ver10/schema Timeout,omitempty"`
  2989. }
  2990. // Scope type
  2991. type Scope struct {
  2992. // Indicates if the scope is fixed or configurable.
  2993. ScopeDef ScopeDefinition `xml:"http://www.onvif.org/ver10/schema ScopeDef,omitempty"`
  2994. // Scope item URI.
  2995. ScopeItem AnyURI `xml:"http://www.onvif.org/ver10/schema ScopeItem,omitempty"`
  2996. }
  2997. // NetworkInterface type
  2998. type NetworkInterface struct {
  2999. *DeviceEntity
  3000. // Indicates whether or not an interface is enabled.
  3001. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3002. // Network interface information
  3003. Info NetworkInterfaceInfo `xml:"http://www.onvif.org/ver10/schema Info,omitempty"`
  3004. // Link configuration.
  3005. Link NetworkInterfaceLink `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
  3006. // IPv4 network interface configuration.
  3007. IPv4 IPv4NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
  3008. // IPv6 network interface configuration.
  3009. IPv6 IPv6NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
  3010. Extension NetworkInterfaceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3011. }
  3012. // NetworkInterfaceExtension type
  3013. type NetworkInterfaceExtension struct {
  3014. InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
  3015. // Extension point prepared for future 802.3 configuration.
  3016. Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
  3017. Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
  3018. Extension NetworkInterfaceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3019. }
  3020. // Dot3Configuration type
  3021. type Dot3Configuration struct {
  3022. }
  3023. // NetworkInterfaceExtension2 type
  3024. type NetworkInterfaceExtension2 struct {
  3025. }
  3026. // NetworkInterfaceLink type
  3027. type NetworkInterfaceLink struct {
  3028. // Configured link settings.
  3029. AdminSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema AdminSettings,omitempty"`
  3030. // Current active link settings.
  3031. OperSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema OperSettings,omitempty"`
  3032. // Integer indicating interface type, for example: 6 is ethernet.
  3033. InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
  3034. }
  3035. // NetworkInterfaceConnectionSetting type
  3036. type NetworkInterfaceConnectionSetting struct {
  3037. // Auto negotiation on/off.
  3038. AutoNegotiation bool `xml:"http://www.onvif.org/ver10/media/wsdl AutoNegotiation,omitempty"`
  3039. // Speed.
  3040. Speed int32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3041. // Duplex type, Half or Full.
  3042. Duplex Duplex `xml:"http://www.onvif.org/ver10/schema Duplex,omitempty"`
  3043. }
  3044. // NetworkInterfaceInfo type
  3045. type NetworkInterfaceInfo struct {
  3046. // Network interface name, for example eth0.
  3047. Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  3048. // Network interface MAC address.
  3049. HwAddress HwAddress `xml:"http://www.onvif.org/ver10/schema HwAddress,omitempty"`
  3050. // Maximum transmission unit.
  3051. MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
  3052. }
  3053. // IPv6NetworkInterface type
  3054. type IPv6NetworkInterface struct {
  3055. // Indicates whether or not IPv6 is enabled.
  3056. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3057. // IPv6 configuration.
  3058. Config IPv6Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
  3059. }
  3060. // IPv4NetworkInterface type
  3061. type IPv4NetworkInterface struct {
  3062. // Indicates whether or not IPv4 is enabled.
  3063. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3064. // IPv4 configuration.
  3065. Config IPv4Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
  3066. }
  3067. // IPv4Configuration type
  3068. type IPv4Configuration struct {
  3069. // List of manually added IPv4 addresses.
  3070. Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  3071. // Link local address.
  3072. LinkLocal PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
  3073. // IPv4 address configured by using DHCP.
  3074. FromDHCP PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
  3075. // Indicates whether or not DHCP is used.
  3076. DHCP bool `xml:"http://www.onvif.org/ver10/media/wsdl DHCP,omitempty"`
  3077. }
  3078. // IPv6Configuration type
  3079. type IPv6Configuration struct {
  3080. // Indicates whether router advertisment is used.
  3081. AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/media/wsdl AcceptRouterAdvert,omitempty"`
  3082. // DHCP configuration.
  3083. DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
  3084. // List of manually entered IPv6 addresses.
  3085. Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  3086. // List of link local IPv6 addresses.
  3087. LinkLocal []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
  3088. // List of IPv6 addresses configured by using DHCP.
  3089. FromDHCP []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
  3090. // List of IPv6 addresses configured by using router advertisment.
  3091. FromRA []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromRA,omitempty"`
  3092. Extension IPv6ConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3093. }
  3094. // IPv6ConfigurationExtension type
  3095. type IPv6ConfigurationExtension struct {
  3096. }
  3097. // NetworkProtocol type
  3098. type NetworkProtocol struct {
  3099. // Network protocol type string.
  3100. Name NetworkProtocolType `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  3101. // Indicates if the protocol is enabled or not.
  3102. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3103. // The port that is used by the protocol.
  3104. Port []int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
  3105. Extension NetworkProtocolExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3106. }
  3107. // NetworkProtocolExtension type
  3108. type NetworkProtocolExtension struct {
  3109. }
  3110. // NetworkHost type
  3111. type NetworkHost struct {
  3112. // Network host type: IPv4, IPv6 or DNS.
  3113. Type NetworkHostType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  3114. // IPv4 address.
  3115. IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  3116. // IPv6 address.
  3117. IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  3118. // DNS name.
  3119. DNSname DNSName `xml:"http://www.onvif.org/ver10/schema DNSname,omitempty"`
  3120. Extension NetworkHostExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3121. }
  3122. // NetworkHostExtension type
  3123. type NetworkHostExtension struct {
  3124. }
  3125. // IPAddress type
  3126. type IPAddress struct {
  3127. // Indicates if the address is an IPv4 or IPv6 address.
  3128. Type IPType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  3129. // IPv4 address.
  3130. IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  3131. // IPv6 address
  3132. IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  3133. }
  3134. // PrefixedIPv4Address type
  3135. type PrefixedIPv4Address struct {
  3136. // IPv4 address
  3137. Address IPv4Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  3138. // Prefix/submask length
  3139. PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
  3140. }
  3141. // PrefixedIPv6Address type
  3142. type PrefixedIPv6Address struct {
  3143. // IPv6 address
  3144. Address IPv6Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  3145. // Prefix/submask length
  3146. PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
  3147. }
  3148. // HostnameInformation type
  3149. type HostnameInformation struct {
  3150. // Indicates whether the hostname is obtained from DHCP or not.
  3151. FromDHCP bool `xml:"http://www.onvif.org/ver10/media/wsdl FromDHCP,omitempty"`
  3152. // Indicates the hostname.
  3153. Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  3154. Extension HostnameInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3155. }
  3156. // HostnameInformationExtension type
  3157. type HostnameInformationExtension struct {
  3158. }
  3159. // DNSInformation type
  3160. type DNSInformation struct {
  3161. // Indicates whether or not DNS information is retrieved from DHCP.
  3162. FromDHCP bool `xml:"http://www.onvif.org/ver10/media/wsdl FromDHCP,omitempty"`
  3163. // Search domain.
  3164. SearchDomain []string `xml:"http://www.onvif.org/ver10/schema SearchDomain,omitempty"`
  3165. // List of DNS addresses received from DHCP.
  3166. DNSFromDHCP []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSFromDHCP,omitempty"`
  3167. // List of manually entered DNS addresses.
  3168. DNSManual []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSManual,omitempty"`
  3169. Extension DNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3170. }
  3171. // DNSInformationExtension type
  3172. type DNSInformationExtension struct {
  3173. }
  3174. // NTPInformation type
  3175. type NTPInformation struct {
  3176. // Indicates if NTP information is to be retrieved by using DHCP.
  3177. FromDHCP bool `xml:"http://www.onvif.org/ver10/media/wsdl FromDHCP,omitempty"`
  3178. // List of NTP addresses retrieved by using DHCP.
  3179. NTPFromDHCP []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPFromDHCP,omitempty"`
  3180. // List of manually entered NTP addresses.
  3181. NTPManual []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPManual,omitempty"`
  3182. Extension NTPInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3183. }
  3184. // NTPInformationExtension type
  3185. type NTPInformationExtension struct {
  3186. }
  3187. // DynamicDNSInformation type
  3188. type DynamicDNSInformation struct {
  3189. // Dynamic DNS type.
  3190. Type DynamicDNSType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  3191. // DNS name.
  3192. Name DNSName `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  3193. // Time to live.
  3194. TTL Duration `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
  3195. Extension DynamicDNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3196. }
  3197. // DynamicDNSInformationExtension type
  3198. type DynamicDNSInformationExtension struct {
  3199. }
  3200. // NetworkInterfaceSetConfiguration type
  3201. type NetworkInterfaceSetConfiguration struct {
  3202. // Indicates whether or not an interface is enabled.
  3203. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3204. // Link configuration.
  3205. Link NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
  3206. // Maximum transmission unit.
  3207. MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
  3208. // IPv4 network interface configuration.
  3209. IPv4 IPv4NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
  3210. // IPv6 network interface configuration.
  3211. IPv6 IPv6NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
  3212. Extension NetworkInterfaceSetConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3213. }
  3214. // NetworkInterfaceSetConfigurationExtension type
  3215. type NetworkInterfaceSetConfigurationExtension struct {
  3216. Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
  3217. Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
  3218. Extension NetworkInterfaceSetConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3219. }
  3220. // IPv6NetworkInterfaceSetConfiguration type
  3221. type IPv6NetworkInterfaceSetConfiguration struct {
  3222. // Indicates whether or not IPv6 is enabled.
  3223. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3224. // Indicates whether router advertisment is used.
  3225. AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/media/wsdl AcceptRouterAdvert,omitempty"`
  3226. // List of manually added IPv6 addresses.
  3227. Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  3228. // DHCP configuration.
  3229. DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
  3230. }
  3231. // IPv4NetworkInterfaceSetConfiguration type
  3232. type IPv4NetworkInterfaceSetConfiguration struct {
  3233. // Indicates whether or not IPv4 is enabled.
  3234. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3235. // List of manually added IPv4 addresses.
  3236. Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  3237. // Indicates whether or not DHCP is used.
  3238. DHCP bool `xml:"http://www.onvif.org/ver10/media/wsdl DHCP,omitempty"`
  3239. }
  3240. // NetworkZeroConfiguration type
  3241. type NetworkZeroConfiguration struct {
  3242. // Unique identifier of network interface.
  3243. InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl InterfaceToken,omitempty"`
  3244. // Indicates whether the zero-configuration is enabled or not.
  3245. Enabled bool `xml:"http://www.onvif.org/ver10/media/wsdl Enabled,omitempty"`
  3246. // The zero-configuration IPv4 address(es)
  3247. Addresses []IPv4Address `xml:"http://www.onvif.org/ver10/schema Addresses,omitempty"`
  3248. Extension *NetworkZeroConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3249. }
  3250. // NetworkZeroConfigurationExtension type
  3251. type NetworkZeroConfigurationExtension struct {
  3252. // Optional array holding the configuration for the second and possibly further interfaces.
  3253. Additional []NetworkZeroConfiguration `xml:"http://www.onvif.org/ver10/schema Additional,omitempty"`
  3254. Extension NetworkZeroConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3255. }
  3256. // NetworkZeroConfigurationExtension2 type
  3257. type NetworkZeroConfigurationExtension2 struct {
  3258. }
  3259. // IPAddressFilter type
  3260. type IPAddressFilter struct {
  3261. Type IPAddressFilterType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  3262. IPv4Address []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  3263. IPv6Address []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  3264. Extension IPAddressFilterExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3265. }
  3266. // IPAddressFilterExtension type
  3267. type IPAddressFilterExtension struct {
  3268. }
  3269. // Dot11Configuration type
  3270. type Dot11Configuration struct {
  3271. SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
  3272. Mode Dot11StationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3273. Alias Name `xml:"http://www.onvif.org/ver10/media/wsdl Alias,omitempty"`
  3274. Priority NetworkInterfaceConfigPriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3275. Security Dot11SecurityConfiguration `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
  3276. }
  3277. // Dot11SecurityConfiguration type
  3278. type Dot11SecurityConfiguration struct {
  3279. Mode Dot11SecurityMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3280. Algorithm Dot11Cipher `xml:"http://www.onvif.org/ver10/schema Algorithm,omitempty"`
  3281. PSK Dot11PSKSet `xml:"http://www.onvif.org/ver10/schema PSK,omitempty"`
  3282. Dot1X ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl Dot1X,omitempty"`
  3283. Extension Dot11SecurityConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3284. }
  3285. // Dot11SecurityConfigurationExtension type
  3286. type Dot11SecurityConfigurationExtension struct {
  3287. }
  3288. // Dot11PSKSet type
  3289. type Dot11PSKSet struct {
  3290. //
  3291. // According to IEEE802.11-2007 H.4.1 the RSNA PSK consists of 256 bits, or 64 octets when represented in hex
  3292. // Either Key or Passphrase shall be given, if both are supplied Key shall be used by the device and Passphrase ignored.
  3293. //
  3294. Key Dot11PSK `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  3295. //
  3296. // According to IEEE802.11-2007 H.4.1 a pass-phrase is a sequence of between 8 and 63 ASCII-encoded characters and
  3297. // each character in the pass-phrase must have an encoding in the range of 32 to 126 (decimal),inclusive.
  3298. // If only Passpharse is supplied the Key shall be derived using the algorithm described in IEEE802.11-2007 section H.4
  3299. //
  3300. Passphrase Dot11PSKPassphrase `xml:"http://www.onvif.org/ver10/schema Passphrase,omitempty"`
  3301. Extension Dot11PSKSetExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3302. }
  3303. // Dot11PSKSetExtension type
  3304. type Dot11PSKSetExtension struct {
  3305. }
  3306. // NetworkInterfaceSetConfigurationExtension2 type
  3307. type NetworkInterfaceSetConfigurationExtension2 struct {
  3308. }
  3309. // Dot11AvailableNetworks type
  3310. type Dot11AvailableNetworks struct {
  3311. SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
  3312. BSSID string `xml:"http://www.onvif.org/ver10/schema BSSID,omitempty"`
  3313. // See IEEE802.11 7.3.2.25.2 for details.
  3314. AuthAndMangementSuite []Dot11AuthAndMangementSuite `xml:"http://www.onvif.org/ver10/schema AuthAndMangementSuite,omitempty"`
  3315. PairCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema PairCipher,omitempty"`
  3316. GroupCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema GroupCipher,omitempty"`
  3317. SignalStrength Dot11SignalStrength `xml:"http://www.onvif.org/ver10/schema SignalStrength,omitempty"`
  3318. Extension Dot11AvailableNetworksExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3319. }
  3320. // Dot11AvailableNetworksExtension type
  3321. type Dot11AvailableNetworksExtension struct {
  3322. }
  3323. /* Removed type Capabilities struct {
  3324. // Analytics capabilities
  3325. Analytics AnalyticsCapabilities `xml:"http://www.onvif.org/ver10/schema Analytics,omitempty"`
  3326. // Device capabilities
  3327. Device DeviceCapabilities `xml:"http://www.onvif.org/ver10/schema Device,omitempty"`
  3328. // Event capabilities
  3329. Events EventCapabilities `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
  3330. // Imaging capabilities
  3331. Imaging ImagingCapabilities `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
  3332. // Media capabilities
  3333. Media MediaCapabilities `xml:"http://www.onvif.org/ver10/schema Media,omitempty"`
  3334. // PTZ capabilities
  3335. PTZ PTZCapabilities `xml:"http://www.onvif.org/ver10/schema PTZ,omitempty"`
  3336. Extension CapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3337. } Removed*/
  3338. // CapabilitiesExtension type
  3339. type CapabilitiesExtension struct {
  3340. DeviceIO DeviceIOCapabilities `xml:"http://www.onvif.org/ver10/schema DeviceIO,omitempty"`
  3341. Display DisplayCapabilities `xml:"http://www.onvif.org/ver10/schema Display,omitempty"`
  3342. Recording RecordingCapabilities `xml:"http://www.onvif.org/ver10/schema Recording,omitempty"`
  3343. Search SearchCapabilities `xml:"http://www.onvif.org/ver10/schema Search,omitempty"`
  3344. Replay ReplayCapabilities `xml:"http://www.onvif.org/ver10/schema Replay,omitempty"`
  3345. Receiver ReceiverCapabilities `xml:"http://www.onvif.org/ver10/schema Receiver,omitempty"`
  3346. AnalyticsDevice AnalyticsDeviceCapabilities `xml:"http://www.onvif.org/ver10/schema AnalyticsDevice,omitempty"`
  3347. Extensions CapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extensions,omitempty"`
  3348. }
  3349. // CapabilitiesExtension2 type
  3350. type CapabilitiesExtension2 struct {
  3351. }
  3352. // AnalyticsCapabilities type
  3353. type AnalyticsCapabilities struct {
  3354. // Analytics service URI.
  3355. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3356. // Indicates whether or not rules are supported.
  3357. RuleSupport bool `xml:"http://www.onvif.org/ver10/media/wsdl RuleSupport,omitempty"`
  3358. // Indicates whether or not modules are supported.
  3359. AnalyticsModuleSupport bool `xml:"http://www.onvif.org/ver10/media/wsdl AnalyticsModuleSupport,omitempty"`
  3360. }
  3361. // DeviceCapabilities type
  3362. type DeviceCapabilities struct {
  3363. // Device service URI.
  3364. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3365. // Network capabilities.
  3366. Network NetworkCapabilities `xml:"http://www.onvif.org/ver10/schema Network,omitempty"`
  3367. // System capabilities.
  3368. System SystemCapabilities `xml:"http://www.onvif.org/ver10/schema System,omitempty"`
  3369. // I/O capabilities.
  3370. IO IOCapabilities `xml:"http://www.onvif.org/ver10/schema IO,omitempty"`
  3371. // Security capabilities.
  3372. Security SecurityCapabilities `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
  3373. Extension DeviceCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3374. }
  3375. // DeviceCapabilitiesExtension type
  3376. type DeviceCapabilitiesExtension struct {
  3377. }
  3378. // EventCapabilities type
  3379. type EventCapabilities struct {
  3380. // Event service URI.
  3381. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3382. // Indicates whether or not WS Subscription policy is supported.
  3383. WSSubscriptionPolicySupport bool `xml:"http://www.onvif.org/ver10/media/wsdl WSSubscriptionPolicySupport,omitempty"`
  3384. // Indicates whether or not WS Pull Point is supported.
  3385. WSPullPointSupport bool `xml:"http://www.onvif.org/ver10/media/wsdl WSPullPointSupport,omitempty"`
  3386. // Indicates whether or not WS Pausable Subscription Manager Interface is supported.
  3387. WSPausableSubscriptionManagerInterfaceSupport bool `xml:"http://www.onvif.org/ver10/media/wsdl WSPausableSubscriptionManagerInterfaceSupport,omitempty"`
  3388. }
  3389. // IOCapabilities type
  3390. type IOCapabilities struct {
  3391. // Number of input connectors.
  3392. InputConnectors int32 `xml:"http://www.onvif.org/ver10/schema InputConnectors,omitempty"`
  3393. // Number of relay outputs.
  3394. RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
  3395. Extension IOCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3396. }
  3397. // IOCapabilitiesExtension type
  3398. type IOCapabilitiesExtension struct {
  3399. Auxiliary bool `xml:"http://www.onvif.org/ver10/media/wsdl Auxiliary,omitempty"`
  3400. AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
  3401. Extension IOCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3402. }
  3403. // IOCapabilitiesExtension2 type
  3404. type IOCapabilitiesExtension2 struct {
  3405. }
  3406. // MediaCapabilities type
  3407. type MediaCapabilities struct {
  3408. // Media service URI.
  3409. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3410. // Streaming capabilities.
  3411. StreamingCapabilities RealTimeStreamingCapabilities `xml:"http://www.onvif.org/ver10/schema StreamingCapabilities,omitempty"`
  3412. Extension MediaCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3413. }
  3414. // MediaCapabilitiesExtension type
  3415. type MediaCapabilitiesExtension struct {
  3416. ProfileCapabilities ProfileCapabilities `xml:"http://www.onvif.org/ver10/media/wsdl ProfileCapabilities,omitempty"`
  3417. }
  3418. // RealTimeStreamingCapabilities type
  3419. type RealTimeStreamingCapabilities struct {
  3420. // Indicates whether or not RTP multicast is supported.
  3421. RTPMulticast bool `xml:"http://www.onvif.org/ver10/media/wsdl RTPMulticast,omitempty"`
  3422. // Indicates whether or not RTP over TCP is supported.
  3423. RTP_TCP bool `xml:"http://www.onvif.org/ver10/media/wsdl RTP_TCP,omitempty"`
  3424. // Indicates whether or not RTP/RTSP/TCP is supported.
  3425. RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/media/wsdl RTP_RTSP_TCP,omitempty"`
  3426. Extension RealTimeStreamingCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3427. }
  3428. // RealTimeStreamingCapabilitiesExtension type
  3429. type RealTimeStreamingCapabilitiesExtension struct {
  3430. }
  3431. // NetworkCapabilities type
  3432. type NetworkCapabilities struct {
  3433. // Indicates whether or not IP filtering is supported.
  3434. IPFilter bool `xml:"http://www.onvif.org/ver10/media/wsdl IPFilter,omitempty"`
  3435. // Indicates whether or not zeroconf is supported.
  3436. ZeroConfiguration bool `xml:"http://www.onvif.org/ver10/media/wsdl ZeroConfiguration,omitempty"`
  3437. // Indicates whether or not IPv6 is supported.
  3438. IPVersion6 bool `xml:"http://www.onvif.org/ver10/media/wsdl IPVersion6,omitempty"`
  3439. // Indicates whether or not is supported.
  3440. DynDNS bool `xml:"http://www.onvif.org/ver10/media/wsdl DynDNS,omitempty"`
  3441. Extension NetworkCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3442. }
  3443. // NetworkCapabilitiesExtension type
  3444. type NetworkCapabilitiesExtension struct {
  3445. Dot11Configuration bool `xml:"http://www.onvif.org/ver10/media/wsdl Dot11Configuration,omitempty"`
  3446. Extension NetworkCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3447. }
  3448. // NetworkCapabilitiesExtension2 type
  3449. type NetworkCapabilitiesExtension2 struct {
  3450. }
  3451. // SecurityCapabilities type
  3452. type SecurityCapabilities struct {
  3453. // Indicates whether or not TLS 1.1 is supported.
  3454. TLS11 bool `xml:"TLS1.1,omitempty"`
  3455. // Indicates whether or not TLS 1.2 is supported.
  3456. TLS12 bool `xml:"TLS1.2,omitempty"`
  3457. // Indicates whether or not onboard key generation is supported.
  3458. OnboardKeyGeneration bool `xml:"http://www.onvif.org/ver10/media/wsdl OnboardKeyGeneration,omitempty"`
  3459. // Indicates whether or not access policy configuration is supported.
  3460. AccessPolicyConfig bool `xml:"http://www.onvif.org/ver10/media/wsdl AccessPolicyConfig,omitempty"`
  3461. // Indicates whether or not WS-Security X.509 token is supported.
  3462. X509Token bool `xml:"X.509Token,omitempty"`
  3463. // Indicates whether or not WS-Security SAML token is supported.
  3464. SAMLToken bool `xml:"http://www.onvif.org/ver10/media/wsdl SAMLToken,omitempty"`
  3465. // Indicates whether or not WS-Security Kerberos token is supported.
  3466. KerberosToken bool `xml:"http://www.onvif.org/ver10/media/wsdl KerberosToken,omitempty"`
  3467. // Indicates whether or not WS-Security REL token is supported.
  3468. RELToken bool `xml:"http://www.onvif.org/ver10/media/wsdl RELToken,omitempty"`
  3469. Extension SecurityCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3470. }
  3471. // SecurityCapabilitiesExtension type
  3472. type SecurityCapabilitiesExtension struct {
  3473. TLS10 bool `xml:"TLS1.0,omitempty"`
  3474. Extension SecurityCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3475. }
  3476. // SecurityCapabilitiesExtension2 type
  3477. type SecurityCapabilitiesExtension2 struct {
  3478. Dot1X bool `xml:"http://www.onvif.org/ver10/media/wsdl Dot1X,omitempty"`
  3479. // EAP Methods supported by the device. The int values refer to the .
  3480. SupportedEAPMethod []int32 `xml:"http://www.onvif.org/ver10/schema SupportedEAPMethod,omitempty"`
  3481. RemoteUserHandling bool `xml:"http://www.onvif.org/ver10/media/wsdl RemoteUserHandling,omitempty"`
  3482. }
  3483. // SystemCapabilities type
  3484. type SystemCapabilities struct {
  3485. // Indicates whether or not WS Discovery resolve requests are supported.
  3486. DiscoveryResolve bool `xml:"http://www.onvif.org/ver10/media/wsdl DiscoveryResolve,omitempty"`
  3487. // Indicates whether or not WS-Discovery Bye is supported.
  3488. DiscoveryBye bool `xml:"http://www.onvif.org/ver10/media/wsdl DiscoveryBye,omitempty"`
  3489. // Indicates whether or not remote discovery is supported.
  3490. RemoteDiscovery bool `xml:"http://www.onvif.org/ver10/media/wsdl RemoteDiscovery,omitempty"`
  3491. // Indicates whether or not system backup is supported.
  3492. SystemBackup bool `xml:"http://www.onvif.org/ver10/media/wsdl SystemBackup,omitempty"`
  3493. // Indicates whether or not system logging is supported.
  3494. SystemLogging bool `xml:"http://www.onvif.org/ver10/media/wsdl SystemLogging,omitempty"`
  3495. // Indicates whether or not firmware upgrade is supported.
  3496. FirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/media/wsdl FirmwareUpgrade,omitempty"`
  3497. // Indicates supported ONVIF version(s).
  3498. SupportedVersions []OnvifVersion `xml:"http://www.onvif.org/ver10/schema SupportedVersions,omitempty"`
  3499. Extension SystemCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3500. }
  3501. // SystemCapabilitiesExtension type
  3502. type SystemCapabilitiesExtension struct {
  3503. HttpFirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/media/wsdl HttpFirmwareUpgrade,omitempty"`
  3504. HttpSystemBackup bool `xml:"http://www.onvif.org/ver10/media/wsdl HttpSystemBackup,omitempty"`
  3505. HttpSystemLogging bool `xml:"http://www.onvif.org/ver10/media/wsdl HttpSystemLogging,omitempty"`
  3506. HttpSupportInformation bool `xml:"http://www.onvif.org/ver10/media/wsdl HttpSupportInformation,omitempty"`
  3507. Extension SystemCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3508. }
  3509. // SystemCapabilitiesExtension2 type
  3510. type SystemCapabilitiesExtension2 struct {
  3511. }
  3512. // OnvifVersion type
  3513. type OnvifVersion struct {
  3514. // Major version number.
  3515. Major int32 `xml:"http://www.onvif.org/ver10/schema Major,omitempty"`
  3516. //
  3517. // Two digit minor version number.
  3518. // 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.
  3519. // Otherwise, minor number is month of release, such as "06" for June.
  3520. //
  3521. Minor int32 `xml:"http://www.onvif.org/ver10/schema Minor,omitempty"`
  3522. }
  3523. // ImagingCapabilities type
  3524. type ImagingCapabilities struct {
  3525. // Imaging service URI.
  3526. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3527. }
  3528. // PTZCapabilities type
  3529. type PTZCapabilities struct {
  3530. // PTZ service URI.
  3531. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3532. }
  3533. // DeviceIOCapabilities type
  3534. type DeviceIOCapabilities struct {
  3535. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3536. VideoSources int32 `xml:"http://www.onvif.org/ver10/schema VideoSources,omitempty"`
  3537. VideoOutputs int32 `xml:"http://www.onvif.org/ver10/schema VideoOutputs,omitempty"`
  3538. AudioSources int32 `xml:"http://www.onvif.org/ver10/schema AudioSources,omitempty"`
  3539. AudioOutputs int32 `xml:"http://www.onvif.org/ver10/schema AudioOutputs,omitempty"`
  3540. RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
  3541. }
  3542. // DisplayCapabilities type
  3543. type DisplayCapabilities struct {
  3544. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3545. // Indication that the SetLayout command supports only predefined layouts.
  3546. FixedLayout bool `xml:"http://www.onvif.org/ver10/media/wsdl FixedLayout,omitempty"`
  3547. }
  3548. // RecordingCapabilities type
  3549. type RecordingCapabilities struct {
  3550. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3551. ReceiverSource bool `xml:"http://www.onvif.org/ver10/media/wsdl ReceiverSource,omitempty"`
  3552. MediaProfileSource bool `xml:"http://www.onvif.org/ver10/media/wsdl MediaProfileSource,omitempty"`
  3553. DynamicRecordings bool `xml:"http://www.onvif.org/ver10/media/wsdl DynamicRecordings,omitempty"`
  3554. DynamicTracks bool `xml:"http://www.onvif.org/ver10/media/wsdl DynamicTracks,omitempty"`
  3555. MaxStringLength int32 `xml:"http://www.onvif.org/ver10/schema MaxStringLength,omitempty"`
  3556. }
  3557. // SearchCapabilities type
  3558. type SearchCapabilities struct {
  3559. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3560. MetadataSearch bool `xml:"http://www.onvif.org/ver10/media/wsdl MetadataSearch,omitempty"`
  3561. }
  3562. // ReplayCapabilities type
  3563. type ReplayCapabilities struct {
  3564. // The address of the replay service.
  3565. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3566. }
  3567. // ReceiverCapabilities type
  3568. type ReceiverCapabilities struct {
  3569. // The address of the receiver service.
  3570. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3571. // Indicates whether the device can receive RTP multicast streams.
  3572. RTP_Multicast bool `xml:"http://www.onvif.org/ver10/media/wsdl RTP_Multicast,omitempty"`
  3573. // Indicates whether the device can receive RTP/TCP streams
  3574. RTP_TCP bool `xml:"http://www.onvif.org/ver10/media/wsdl RTP_TCP,omitempty"`
  3575. // Indicates whether the device can receive RTP/RTSP/TCP streams.
  3576. RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/media/wsdl RTP_RTSP_TCP,omitempty"`
  3577. // The maximum number of receivers supported by the device.
  3578. SupportedReceivers int32 `xml:"http://www.onvif.org/ver10/schema SupportedReceivers,omitempty"`
  3579. // The maximum allowed length for RTSP URIs.
  3580. MaximumRTSPURILength int32 `xml:"http://www.onvif.org/ver10/schema MaximumRTSPURILength,omitempty"`
  3581. }
  3582. // AnalyticsDeviceCapabilities type
  3583. type AnalyticsDeviceCapabilities struct {
  3584. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  3585. // Obsolete property.
  3586. RuleSupport bool `xml:"http://www.onvif.org/ver10/media/wsdl RuleSupport,omitempty"`
  3587. Extension AnalyticsDeviceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3588. }
  3589. // AnalyticsDeviceExtension type
  3590. type AnalyticsDeviceExtension struct {
  3591. }
  3592. // BinaryData type
  3593. type BinaryData struct {
  3594. // base64 encoded binary data.
  3595. Data []byte `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  3596. ContentType string `xml:"contentType,attr,omitempty"`
  3597. }
  3598. // SystemDateTime type
  3599. type SystemDateTime struct {
  3600. // Indicates if the time is set manully or through NTP.
  3601. DateTimeType SetDateTimeType `xml:"http://www.onvif.org/ver10/schema DateTimeType,omitempty"`
  3602. // Informative indicator whether daylight savings is currently on/off.
  3603. DaylightSavings bool `xml:"http://www.onvif.org/ver10/media/wsdl DaylightSavings,omitempty"`
  3604. // Timezone information in Posix format.
  3605. TimeZone TimeZone `xml:"http://www.onvif.org/ver10/schema TimeZone,omitempty"`
  3606. // Current system date and time in UTC format. This field is mandatory since version 2.0.
  3607. UTCDateTime string `xml:"http://www.onvif.org/ver10/schema UTCDateTime,omitempty"`
  3608. // Date and time in local format.
  3609. LocalDateTime string `xml:"http://www.onvif.org/ver10/schema LocalDateTime,omitempty"`
  3610. Extension SystemDateTimeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3611. }
  3612. // SystemDateTimeExtension type
  3613. type SystemDateTimeExtension struct {
  3614. }
  3615. // DateTime type
  3616. type DateTime struct {
  3617. Time string `xml:"http://www.onvif.org/ver10/schema DateTime,omitempty"`
  3618. Date string `xml:"http://www.onvif.org/ver10/schema Date,omitempty"`
  3619. }
  3620. // Date type
  3621. type Date struct {
  3622. Year int32 `xml:"http://www.onvif.org/ver10/schema Year,omitempty"`
  3623. // Range is 1 to 12.
  3624. Month int32 `xml:"http://www.onvif.org/ver10/schema Month,omitempty"`
  3625. // Range is 1 to 31.
  3626. Day int32 `xml:"http://www.onvif.org/ver10/schema Day,omitempty"`
  3627. }
  3628. // Time type
  3629. type Time struct {
  3630. // Range is 0 to 23.
  3631. Hour int32 `xml:"http://www.onvif.org/ver10/schema Hour,omitempty"`
  3632. // Range is 0 to 59.
  3633. Minute int32 `xml:"http://www.onvif.org/ver10/schema Minute,omitempty"`
  3634. // Range is 0 to 61 (typically 59).
  3635. Second int32 `xml:"http://www.onvif.org/ver10/schema Second,omitempty"`
  3636. }
  3637. // TimeZone type
  3638. type TimeZone struct {
  3639. // Posix timezone string.
  3640. TZ string `xml:"http://www.onvif.org/ver10/schema TZ,omitempty"`
  3641. }
  3642. // User type
  3643. type User struct {
  3644. // Username string.
  3645. Username string `xml:"http://www.onvif.org/ver10/schema Username,omitempty"`
  3646. // Password string.
  3647. Password string `xml:"http://www.onvif.org/ver10/schema Password,omitempty"`
  3648. // User level string.
  3649. UserLevel UserLevel `xml:"http://www.onvif.org/ver10/schema UserLevel,omitempty"`
  3650. Extension UserExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3651. }
  3652. // UserExtension type
  3653. type UserExtension struct {
  3654. }
  3655. // CertificateGenerationParameters type
  3656. type CertificateGenerationParameters struct {
  3657. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  3658. Subject string `xml:"http://www.onvif.org/ver10/schema Subject,omitempty"`
  3659. ValidNotBefore string `xml:"http://www.onvif.org/ver10/schema ValidNotBefore,omitempty"`
  3660. ValidNotAfter string `xml:"http://www.onvif.org/ver10/schema ValidNotAfter,omitempty"`
  3661. Extension CertificateGenerationParametersExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3662. }
  3663. // CertificateGenerationParametersExtension type
  3664. type CertificateGenerationParametersExtension struct {
  3665. }
  3666. // Certificate type
  3667. type Certificate struct {
  3668. // Certificate id.
  3669. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  3670. // base64 encoded DER representation of certificate.
  3671. Certificate BinaryData `xml:"http://www.onvif.org/ver10/schema Certificate,omitempty"`
  3672. }
  3673. // CertificateInformation type
  3674. type CertificateInformation struct {
  3675. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  3676. IssuerDN string `xml:"http://www.onvif.org/ver10/schema IssuerDN,omitempty"`
  3677. SubjectDN string `xml:"http://www.onvif.org/ver10/schema SubjectDN,omitempty"`
  3678. KeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema KeyUsage,omitempty"`
  3679. ExtendedKeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema ExtendedKeyUsage,omitempty"`
  3680. KeyLength int32 `xml:"http://www.onvif.org/ver10/schema KeyLength,omitempty"`
  3681. Version string `xml:"http://www.onvif.org/ver10/schema Version,omitempty"`
  3682. SerialNum string `xml:"http://www.onvif.org/ver10/schema SerialNum,omitempty"`
  3683. // Validity Range is from "NotBefore" to "NotAfter"; the corresponding DateTimeRange is from "From" to "Until"
  3684. SignatureAlgorithm string `xml:"http://www.onvif.org/ver10/schema SignatureAlgorithm,omitempty"`
  3685. Validity DateTimeRange `xml:"http://www.onvif.org/ver10/schema Validity,omitempty"`
  3686. Extension CertificateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3687. }
  3688. // CertificateUsage type
  3689. type CertificateUsage struct {
  3690. Value string
  3691. Critical bool `xml:"http://www.onvif.org/ver10/media/wsdl Critical,attr,omitempty"`
  3692. }
  3693. // CertificateInformationExtension type
  3694. type CertificateInformationExtension struct {
  3695. }
  3696. // Dot1XConfiguration type
  3697. type Dot1XConfiguration struct {
  3698. Dot1XConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl Dot1XConfigurationToken,omitempty"`
  3699. Identity string `xml:"http://www.onvif.org/ver10/schema Identity,omitempty"`
  3700. AnonymousID string `xml:"http://www.onvif.org/ver10/schema AnonymousID,omitempty"`
  3701. //
  3702. // EAP Method type as defined in .
  3703. //
  3704. EAPMethod int32 `xml:"http://www.onvif.org/ver10/schema EAPMethod,omitempty"`
  3705. CACertificateID []string `xml:"http://www.onvif.org/ver10/schema CACertificateID,omitempty"`
  3706. EAPMethodConfiguration EAPMethodConfiguration `xml:"http://www.onvif.org/ver10/schema EAPMethodConfiguration,omitempty"`
  3707. Extension Dot1XConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3708. }
  3709. // Dot1XConfigurationExtension type
  3710. type Dot1XConfigurationExtension struct {
  3711. }
  3712. // EAPMethodConfiguration type
  3713. type EAPMethodConfiguration struct {
  3714. // Confgiuration information for TLS Method.
  3715. TLSConfiguration TLSConfiguration `xml:"http://www.onvif.org/ver10/schema TLSConfiguration,omitempty"`
  3716. // Password for those EAP Methods that require a password. The password shall never be returned on a get method.
  3717. Password string `xml:"http://www.onvif.org/ver10/schema Password,omitempty"`
  3718. Extension EapMethodExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3719. }
  3720. // EapMethodExtension type
  3721. type EapMethodExtension struct {
  3722. }
  3723. // TLSConfiguration type
  3724. type TLSConfiguration struct {
  3725. CertificateID string `xml:"http://www.onvif.org/ver10/schema CertificateID,omitempty"`
  3726. }
  3727. // RelayOutputSettings type
  3728. type RelayOutputSettings struct {
  3729. //
  3730. // 'Bistable' or 'Monostable'
  3731. //
  3732. //
  3733. Mode RelayMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3734. // 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.
  3735. DelayTime Duration `xml:"http://www.onvif.org/ver10/schema DelayTime,omitempty"`
  3736. //
  3737. // 'open' or 'closed'
  3738. //
  3739. //
  3740. IdleState RelayIdleState `xml:"http://www.onvif.org/ver10/schema IdleState,omitempty"`
  3741. }
  3742. // RelayOutput type
  3743. type RelayOutput struct {
  3744. *DeviceEntity
  3745. Properties RelayOutputSettings `xml:"http://www.onvif.org/ver10/schema Properties,omitempty"`
  3746. }
  3747. // PTZNode type
  3748. type PTZNode struct {
  3749. *DeviceEntity
  3750. //
  3751. // A unique identifier that is used to reference PTZ Nodes.
  3752. //
  3753. Name Name `xml:"http://www.onvif.org/ver10/media/wsdl Name,omitempty"`
  3754. //
  3755. // A list of Coordinate Systems available for the PTZ Node. For each Coordinate System, the PTZ Node MUST specify its allowed range.
  3756. //
  3757. SupportedPTZSpaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema SupportedPTZSpaces,omitempty"`
  3758. //
  3759. // All preset operations MUST be available for this PTZ Node if one preset is supported.
  3760. //
  3761. MaximumNumberOfPresets int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresets,omitempty"`
  3762. //
  3763. // 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.
  3764. //
  3765. HomeSupported bool `xml:"http://www.onvif.org/ver10/media/wsdl HomeSupported,omitempty"`
  3766. //
  3767. // A list of supported Auxiliary commands. If the list is not empty, the Auxiliary Operations MUST be available for this PTZ Node.
  3768. //
  3769. AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
  3770. Extension PTZNodeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3771. //
  3772. // Indication whether the HomePosition of a Node is fixed or it can be changed via the SetHomePosition command.
  3773. //
  3774. FixedHomePosition bool `xml:"http://www.onvif.org/ver10/media/wsdl FixedHomePosition,attr,omitempty"`
  3775. //
  3776. // Indication whether the Node supports the geo-referenced move command.
  3777. //
  3778. GeoMove bool `xml:"http://www.onvif.org/ver10/media/wsdl GeoMove,attr,omitempty"`
  3779. }
  3780. // PTZNodeExtension type
  3781. type PTZNodeExtension struct {
  3782. //
  3783. // Detail of supported Preset Tour feature.
  3784. //
  3785. SupportedPresetTour PTZPresetTourSupported `xml:"http://www.onvif.org/ver10/schema SupportedPresetTour,omitempty"`
  3786. Extension PTZNodeExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3787. }
  3788. // PTZNodeExtension2 type
  3789. type PTZNodeExtension2 struct {
  3790. }
  3791. // PTZPresetTourSupported type
  3792. type PTZPresetTourSupported struct {
  3793. // 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.
  3794. MaximumNumberOfPresetTours int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresetTours,omitempty"`
  3795. // Indicates which preset tour operations are available for this PTZ Node.
  3796. PTZPresetTourOperation []PTZPresetTourOperation `xml:"http://www.onvif.org/ver10/schema PTZPresetTourOperation,omitempty"`
  3797. Extension PTZPresetTourSupportedExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3798. }
  3799. // PTZPresetTourSupportedExtension type
  3800. type PTZPresetTourSupportedExtension struct {
  3801. }
  3802. // PTZConfiguration type
  3803. type PTZConfiguration struct {
  3804. *ConfigurationEntity
  3805. //
  3806. // A mandatory reference to the PTZ Node that the PTZ Configuration belongs to.
  3807. //
  3808. NodeToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl NodeToken,omitempty"`
  3809. //
  3810. // If the PTZ Node supports absolute Pan/Tilt movements, it shall specify one Absolute Pan/Tilt Position Space as default.
  3811. //
  3812. DefaultAbsolutePantTiltPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsolutePantTiltPositionSpace,omitempty"`
  3813. //
  3814. // If the PTZ Node supports absolute zoom movements, it shall specify one Absolute Zoom Position Space as default.
  3815. //
  3816. DefaultAbsoluteZoomPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsoluteZoomPositionSpace,omitempty"`
  3817. //
  3818. // If the PTZ Node supports relative Pan/Tilt movements, it shall specify one RelativePan/Tilt Translation Space as default.
  3819. //
  3820. DefaultRelativePanTiltTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativePanTiltTranslationSpace,omitempty"`
  3821. //
  3822. // If the PTZ Node supports relative zoom movements, it shall specify one Relative Zoom Translation Space as default.
  3823. //
  3824. DefaultRelativeZoomTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativeZoomTranslationSpace,omitempty"`
  3825. //
  3826. // If the PTZ Node supports continuous Pan/Tilt movements, it shall specify one Continuous Pan/Tilt Velocity Space as default.
  3827. //
  3828. DefaultContinuousPanTiltVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousPanTiltVelocitySpace,omitempty"`
  3829. //
  3830. // If the PTZ Node supports continuous zoom movements, it shall specify one Continuous Zoom Velocity Space as default.
  3831. //
  3832. DefaultContinuousZoomVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousZoomVelocitySpace,omitempty"`
  3833. //
  3834. // If the PTZ Node supports absolute or relative PTZ movements, it shall specify corresponding default Pan/Tilt and Zoom speeds.
  3835. //
  3836. DefaultPTZSpeed PTZSpeed `xml:"http://www.onvif.org/ver10/schema DefaultPTZSpeed,omitempty"`
  3837. //
  3838. // If the PTZ Node supports continuous movements, it shall specify a default timeout, after which the movement stops.
  3839. //
  3840. DefaultPTZTimeout Duration `xml:"http://www.onvif.org/ver10/schema DefaultPTZTimeout,omitempty"`
  3841. //
  3842. // 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.
  3843. //
  3844. PanTiltLimits PanTiltLimits `xml:"http://www.onvif.org/ver10/schema PanTiltLimits,omitempty"`
  3845. //
  3846. // 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.
  3847. //
  3848. ZoomLimits ZoomLimits `xml:"http://www.onvif.org/ver10/schema ZoomLimits,omitempty"`
  3849. Extension PTZConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3850. // The optional acceleration ramp used by the device when moving.
  3851. MoveRamp int32 `xml:"http://www.onvif.org/ver10/schema MoveRamp,attr,omitempty"`
  3852. // The optional acceleration ramp used by the device when recalling presets.
  3853. PresetRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetRamp,attr,omitempty"`
  3854. // The optional acceleration ramp used by the device when executing PresetTours.
  3855. PresetTourRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetTourRamp,attr,omitempty"`
  3856. }
  3857. // PTZConfigurationExtension type
  3858. type PTZConfigurationExtension struct {
  3859. // Optional element to configure PT Control Direction related features.
  3860. PTControlDirection PTControlDirection `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
  3861. Extension PTZConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3862. }
  3863. // PTZConfigurationExtension2 type
  3864. type PTZConfigurationExtension2 struct {
  3865. }
  3866. // PTControlDirection type
  3867. type PTControlDirection struct {
  3868. // Optional element to configure related parameters for E-Flip.
  3869. EFlip EFlip `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
  3870. // Optional element to configure related parameters for reversing of PT Control Direction.
  3871. Reverse Reverse `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
  3872. Extension PTControlDirectionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3873. }
  3874. // PTControlDirectionExtension type
  3875. type PTControlDirectionExtension struct {
  3876. }
  3877. // EFlip type
  3878. type EFlip struct {
  3879. // Parameter to enable/disable E-Flip feature.
  3880. Mode EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3881. }
  3882. // Reverse type
  3883. type Reverse struct {
  3884. // Parameter to enable/disable Reverse feature.
  3885. Mode ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3886. }
  3887. // PTZConfigurationOptions type
  3888. type PTZConfigurationOptions struct {
  3889. //
  3890. // A list of supported coordinate systems including their range limitations.
  3891. //
  3892. Spaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema Spaces,omitempty"`
  3893. //
  3894. // A timeout Range within which Timeouts are accepted by the PTZ Node.
  3895. //
  3896. PTZTimeout DurationRange `xml:"http://www.onvif.org/ver10/schema PTZTimeout,omitempty"`
  3897. // Supported options for PT Direction Control.
  3898. PTControlDirection PTControlDirectionOptions `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
  3899. Extension PTZConfigurationOptions2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3900. //
  3901. // The list of acceleration ramps supported by the device. The
  3902. // smallest acceleration value corresponds to the minimal index, the
  3903. // highest acceleration corresponds to the maximum index.
  3904. //
  3905. PTZRamps IntAttrList `xml:"http://www.onvif.org/ver10/schema PTZRamps,attr,omitempty"`
  3906. }
  3907. // PTZConfigurationOptions2 type
  3908. type PTZConfigurationOptions2 struct {
  3909. }
  3910. // PTControlDirectionOptions type
  3911. type PTControlDirectionOptions struct {
  3912. // Supported options for EFlip feature.
  3913. EFlip EFlipOptions `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
  3914. // Supported options for Reverse feature.
  3915. Reverse ReverseOptions `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
  3916. Extension PTControlDirectionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3917. }
  3918. // PTControlDirectionOptionsExtension type
  3919. type PTControlDirectionOptionsExtension struct {
  3920. }
  3921. // EFlipOptions type
  3922. type EFlipOptions struct {
  3923. // Options of EFlip mode parameter.
  3924. Mode []EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3925. Extension EFlipOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3926. }
  3927. // EFlipOptionsExtension type
  3928. type EFlipOptionsExtension struct {
  3929. }
  3930. // ReverseOptions type
  3931. type ReverseOptions struct {
  3932. // Options of Reverse mode parameter.
  3933. Mode []ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3934. Extension ReverseOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3935. }
  3936. // ReverseOptionsExtension type
  3937. type ReverseOptionsExtension struct {
  3938. }
  3939. // PanTiltLimits type
  3940. type PanTiltLimits struct {
  3941. //
  3942. // A range of pan tilt limits.
  3943. //
  3944. Range Space2DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
  3945. }
  3946. // ZoomLimits type
  3947. type ZoomLimits struct {
  3948. //
  3949. // A range of zoom limit
  3950. //
  3951. Range Space1DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
  3952. }
  3953. // PTZSpaces type
  3954. type PTZSpaces struct {
  3955. //
  3956. // 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.
  3957. // 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.
  3958. //
  3959. AbsolutePanTiltPositionSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema AbsolutePanTiltPositionSpace,omitempty"`
  3960. //
  3961. // 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.
  3962. // Instead, the range should be defined as the full range of the Zoom normalized to the range 0 (wide) to 1 (tele).
  3963. // There is no assumption about how the generic zoom range is mapped to magnification, FOV or other physical zoom dimension.
  3964. //
  3965. AbsoluteZoomPositionSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema AbsoluteZoomPositionSpace,omitempty"`
  3966. //
  3967. // 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.
  3968. // 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,
  3969. // where positive translation would mean clockwise rotation or movement in right/up direction resulting in the following space description.
  3970. //
  3971. RelativePanTiltTranslationSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema RelativePanTiltTranslationSpace,omitempty"`
  3972. //
  3973. // 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.
  3974. // 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,
  3975. // 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).
  3976. // 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.
  3977. //
  3978. RelativeZoomTranslationSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema RelativeZoomTranslationSpace,omitempty"`
  3979. //
  3980. // The generic Pan/Tilt velocity space shall be provided by every PTZ node, since it does not relate to a specific physical range.
  3981. // 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
  3982. // 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.
  3983. //
  3984. ContinuousPanTiltVelocitySpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousPanTiltVelocitySpace,omitempty"`
  3985. //
  3986. // 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,
  3987. // where a positive velocity would map to TELE direction. A generic zoom velocity space description resembles the following.
  3988. //
  3989. ContinuousZoomVelocitySpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousZoomVelocitySpace,omitempty"`
  3990. //
  3991. // The speed space specifies the speed for a Pan/Tilt movement when moving to an absolute position or to a relative translation.
  3992. // In contrast to the velocity spaces, speed spaces do not contain any directional information. The speed of a combined Pan/Tilt
  3993. // movement is represented by a single non-negative scalar value.
  3994. //
  3995. PanTiltSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltSpeedSpace,omitempty"`
  3996. //
  3997. // The speed space specifies the speed for a Zoom movement when moving to an absolute position or to a relative translation.
  3998. // In contrast to the velocity spaces, speed spaces do not contain any directional information.
  3999. //
  4000. ZoomSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomSpeedSpace,omitempty"`
  4001. Extension PTZSpacesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4002. }
  4003. // PTZSpacesExtension type
  4004. type PTZSpacesExtension struct {
  4005. }
  4006. // Space2DDescription type
  4007. type Space2DDescription struct {
  4008. //
  4009. // A URI of coordinate systems.
  4010. //
  4011. URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
  4012. //
  4013. // A range of x-axis.
  4014. //
  4015. XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  4016. //
  4017. // A range of y-axis.
  4018. //
  4019. YRange FloatRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
  4020. }
  4021. // Space1DDescription type
  4022. type Space1DDescription struct {
  4023. //
  4024. // A URI of coordinate systems.
  4025. //
  4026. URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
  4027. //
  4028. // A range of x-axis.
  4029. //
  4030. XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  4031. }
  4032. // PTZSpeed type
  4033. type PTZSpeed struct {
  4034. // 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.
  4035. PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  4036. //
  4037. // A zoom speed. If omitted in a request, the current (if any) Zoom movement should not be affected.
  4038. //
  4039. Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  4040. }
  4041. // PTZPreset type
  4042. type PTZPreset struct {
  4043. //
  4044. // A list of preset position name.
  4045. //
  4046. Name Name `xml:"http://www.onvif.org/ver10/media/wsdl Name,omitempty"`
  4047. //
  4048. // A list of preset position.
  4049. //
  4050. PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
  4051. Token ReferenceToken `xml:"token,attr,omitempty"`
  4052. }
  4053. // PTZPresetTourSpot type
  4054. type PTZPresetTourSpot struct {
  4055. // Detail definition of preset position of the tour spot.
  4056. PresetDetail PTZPresetTourPresetDetail `xml:"http://www.onvif.org/ver10/schema PresetDetail,omitempty"`
  4057. // Optional parameter to specify Pan/Tilt and Zoom speed on moving toward this tour spot.
  4058. Speed PTZSpeed `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  4059. // Optional parameter to specify time duration of staying on this tour sport.
  4060. StayTime Duration `xml:"http://www.onvif.org/ver10/schema StayTime,omitempty"`
  4061. Extension PTZPresetTourSpotExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4062. }
  4063. // PTZPresetTourSpotExtension type
  4064. type PTZPresetTourSpotExtension struct {
  4065. }
  4066. // PTZPresetTourPresetDetail type
  4067. type PTZPresetTourPresetDetail struct {
  4068. // Option to specify the preset position with Preset Token defined in advance.
  4069. PresetToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl PresetToken,omitempty"`
  4070. // 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.
  4071. Home bool `xml:"http://www.onvif.org/ver10/media/wsdl Home,omitempty"`
  4072. // Option to specify the preset position with vector of PTZ node directly.
  4073. PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
  4074. TypeExtension PTZPresetTourTypeExtension `xml:"http://www.onvif.org/ver10/schema TypeExtension,omitempty"`
  4075. }
  4076. // PTZPresetTourTypeExtension type
  4077. type PTZPresetTourTypeExtension struct {
  4078. }
  4079. // PTZPresetTourStatus type
  4080. type PTZPresetTourStatus struct {
  4081. // Indicates state of this preset tour by Idle/Touring/Paused.
  4082. State PTZPresetTourState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  4083. // Indicates a tour spot currently staying.
  4084. CurrentTourSpot PTZPresetTourSpot `xml:"http://www.onvif.org/ver10/schema CurrentTourSpot,omitempty"`
  4085. Extension PTZPresetTourStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4086. }
  4087. // PTZPresetTourStatusExtension type
  4088. type PTZPresetTourStatusExtension struct {
  4089. }
  4090. // PTZPresetTourStartingCondition type
  4091. type PTZPresetTourStartingCondition struct {
  4092. // Optional parameter to specify how many times the preset tour is recurred.
  4093. RecurringTime int32 `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
  4094. // Optional parameter to specify how long time duration the preset tour is recurred.
  4095. RecurringDuration Duration `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
  4096. // Optional parameter to choose which direction the preset tour goes. Forward shall be chosen in case it is omitted.
  4097. Direction PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
  4098. Extension PTZPresetTourStartingConditionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4099. // 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.
  4100. RandomPresetOrder bool `xml:"http://www.onvif.org/ver10/media/wsdl RandomPresetOrder,attr,omitempty"`
  4101. }
  4102. // PTZPresetTourStartingConditionExtension type
  4103. type PTZPresetTourStartingConditionExtension struct {
  4104. }
  4105. // PTZPresetTourPresetDetailOptions type
  4106. type PTZPresetTourPresetDetailOptions struct {
  4107. // A list of available Preset Tokens for tour spots.
  4108. PresetToken []ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl PresetToken,omitempty"`
  4109. // An option to indicate Home postion for tour spots.
  4110. Home bool `xml:"http://www.onvif.org/ver10/media/wsdl Home,omitempty"`
  4111. // Supported range of Pan and Tilt for tour spots.
  4112. PanTiltPositionSpace Space2DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltPositionSpace,omitempty"`
  4113. // Supported range of Zoom for a tour spot.
  4114. ZoomPositionSpace Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomPositionSpace,omitempty"`
  4115. Extension PTZPresetTourPresetDetailOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4116. }
  4117. // PTZPresetTourPresetDetailOptionsExtension type
  4118. type PTZPresetTourPresetDetailOptionsExtension struct {
  4119. }
  4120. // PTZPresetTourStartingConditionOptions type
  4121. type PTZPresetTourStartingConditionOptions struct {
  4122. // Supported range of Recurring Time.
  4123. RecurringTime IntRange `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
  4124. // Supported range of Recurring Duration.
  4125. RecurringDuration DurationRange `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
  4126. // Supported options for Direction of Preset Tour.
  4127. Direction []PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
  4128. Extension PTZPresetTourStartingConditionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4129. }
  4130. // PTZPresetTourStartingConditionOptionsExtension type
  4131. type PTZPresetTourStartingConditionOptionsExtension struct {
  4132. }
  4133. // ImagingStatus type
  4134. type ImagingStatus struct {
  4135. FocusStatus FocusStatus `xml:"http://www.onvif.org/ver10/schema FocusStatus,omitempty"`
  4136. }
  4137. // FocusStatus type
  4138. type FocusStatus struct {
  4139. //
  4140. // Status of focus position.
  4141. //
  4142. Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  4143. //
  4144. // Status of focus MoveStatus.
  4145. //
  4146. MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  4147. //
  4148. // Error status of focus.
  4149. //
  4150. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  4151. }
  4152. // FocusConfiguration type
  4153. type FocusConfiguration struct {
  4154. AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
  4155. DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  4156. // Parameter to set autofocus near limit (unit: meter).
  4157. NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  4158. // Parameter to set autofocus far limit (unit: meter).
  4159. // If set to 0.0, infinity will be used.
  4160. FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  4161. }
  4162. // ImagingSettings type
  4163. type ImagingSettings struct {
  4164. // Enabled/disabled BLC mode (on/off).
  4165. BacklightCompensation BacklightCompensation `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  4166. // Image brightness (unit unspecified).
  4167. Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  4168. // Color saturation of the image (unit unspecified).
  4169. ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  4170. // Contrast of the image (unit unspecified).
  4171. Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  4172. // Exposure mode of the device.
  4173. Exposure Exposure `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  4174. // Focus configuration.
  4175. Focus FocusConfiguration `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  4176. // Infrared Cutoff Filter settings.
  4177. IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
  4178. // Sharpness of the Video image.
  4179. Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  4180. // WDR settings.
  4181. WideDynamicRange WideDynamicRange `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  4182. // White balance settings.
  4183. WhiteBalance WhiteBalance `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  4184. Extension ImagingSettingsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4185. }
  4186. // ImagingSettingsExtension type
  4187. type ImagingSettingsExtension struct {
  4188. }
  4189. // Exposure type
  4190. type Exposure struct {
  4191. //
  4192. // Exposure Mode
  4193. //
  4194. //
  4195. Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4196. //
  4197. // The exposure priority mode (low noise/framerate).
  4198. //
  4199. Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  4200. //
  4201. // Rectangular exposure mask.
  4202. //
  4203. Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
  4204. //
  4205. // Minimum value of exposure time range allowed to be used by the algorithm.
  4206. //
  4207. MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  4208. //
  4209. // Maximum value of exposure time range allowed to be used by the algorithm.
  4210. //
  4211. MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  4212. //
  4213. // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
  4214. //
  4215. MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  4216. //
  4217. // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
  4218. //
  4219. MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  4220. //
  4221. // Minimum value of the iris range allowed to be used by the algorithm.
  4222. //
  4223. MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  4224. //
  4225. // Maximum value of the iris range allowed to be used by the algorithm.
  4226. //
  4227. MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  4228. //
  4229. // The fixed exposure time used by the image sensor (μs).
  4230. //
  4231. ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  4232. //
  4233. // The fixed gain used by the image sensor (dB).
  4234. //
  4235. Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  4236. //
  4237. // The fixed attenuation of input light affected by the iris (dB). 0dB maps to a fully opened iris.
  4238. //
  4239. Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  4240. }
  4241. // WideDynamicRange type
  4242. type WideDynamicRange struct {
  4243. //
  4244. // White dynamic range (on/off)
  4245. //
  4246. Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4247. //
  4248. // Optional level parameter (unitless)
  4249. //
  4250. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4251. }
  4252. // BacklightCompensation type
  4253. type BacklightCompensation struct {
  4254. // Backlight compensation mode (on/off).
  4255. Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4256. // Optional level parameter (unit unspecified).
  4257. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4258. }
  4259. // ImagingOptions type
  4260. type ImagingOptions struct {
  4261. BacklightCompensation BacklightCompensationOptions `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  4262. Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  4263. ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  4264. Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  4265. Exposure ExposureOptions `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  4266. Focus FocusOptions `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  4267. IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
  4268. Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  4269. WideDynamicRange WideDynamicRangeOptions `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  4270. WhiteBalance WhiteBalanceOptions `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  4271. }
  4272. // WideDynamicRangeOptions type
  4273. type WideDynamicRangeOptions struct {
  4274. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4275. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4276. }
  4277. // BacklightCompensationOptions type
  4278. type BacklightCompensationOptions struct {
  4279. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4280. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4281. }
  4282. // FocusOptions type
  4283. type FocusOptions struct {
  4284. AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
  4285. DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  4286. NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  4287. FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  4288. }
  4289. // ExposureOptions type
  4290. type ExposureOptions struct {
  4291. Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4292. Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  4293. MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  4294. MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  4295. MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  4296. MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  4297. MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  4298. MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  4299. ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  4300. Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  4301. Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  4302. }
  4303. // WhiteBalanceOptions type
  4304. type WhiteBalanceOptions struct {
  4305. Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4306. YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
  4307. YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
  4308. }
  4309. // WhiteBalance type
  4310. type WhiteBalance struct {
  4311. // Auto whitebalancing mode (auto/manual).
  4312. Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4313. // Rgain (unitless).
  4314. CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
  4315. // Bgain (unitless).
  4316. CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
  4317. }
  4318. // ImagingStatus20 type
  4319. type ImagingStatus20 struct {
  4320. //
  4321. // Status of focus.
  4322. //
  4323. FocusStatus20 FocusStatus20 `xml:"http://www.onvif.org/ver10/schema FocusStatus20,omitempty"`
  4324. Extension ImagingStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4325. }
  4326. // ImagingStatus20Extension type
  4327. type ImagingStatus20Extension struct {
  4328. }
  4329. // FocusStatus20 type
  4330. type FocusStatus20 struct {
  4331. //
  4332. // Status of focus position.
  4333. //
  4334. Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  4335. //
  4336. // Status of focus MoveStatus.
  4337. //
  4338. MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  4339. //
  4340. // Error status of focus.
  4341. //
  4342. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  4343. Extension FocusStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4344. }
  4345. // FocusStatus20Extension type
  4346. type FocusStatus20Extension struct {
  4347. }
  4348. // ImagingSettings20 type
  4349. type ImagingSettings20 struct {
  4350. // Enabled/disabled BLC mode (on/off).
  4351. BacklightCompensation BacklightCompensation20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  4352. // Image brightness (unit unspecified).
  4353. Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  4354. // Color saturation of the image (unit unspecified).
  4355. ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  4356. // Contrast of the image (unit unspecified).
  4357. Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  4358. // Exposure mode of the device.
  4359. Exposure Exposure20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  4360. // Focus configuration.
  4361. Focus FocusConfiguration20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  4362. // Infrared Cutoff Filter settings.
  4363. IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
  4364. // Sharpness of the Video image.
  4365. Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  4366. // WDR settings.
  4367. WideDynamicRange WideDynamicRange20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  4368. // White balance settings.
  4369. WhiteBalance WhiteBalance20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  4370. Extension ImagingSettingsExtension20 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4371. }
  4372. // ImagingSettingsExtension20 type
  4373. type ImagingSettingsExtension20 struct {
  4374. // Optional element to configure Image Stabilization feature.
  4375. ImageStabilization ImageStabilization `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
  4376. Extension ImagingSettingsExtension202 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4377. }
  4378. // ImagingSettingsExtension202 type
  4379. type ImagingSettingsExtension202 struct {
  4380. // An optional parameter applied to only auto mode to adjust timing of toggling Ir cut filter.
  4381. IrCutFilterAutoAdjustment []IrCutFilterAutoAdjustment `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
  4382. Extension ImagingSettingsExtension203 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4383. }
  4384. // ImagingSettingsExtension203 type
  4385. type ImagingSettingsExtension203 struct {
  4386. // Optional element to configure Image Contrast Compensation.
  4387. ToneCompensation ToneCompensation `xml:"http://www.onvif.org/ver10/schema ToneCompensation,omitempty"`
  4388. // Optional element to configure Image Defogging.
  4389. Defogging Defogging `xml:"http://www.onvif.org/ver10/schema Defogging,omitempty"`
  4390. // Optional element to configure Image Noise Reduction.
  4391. NoiseReduction NoiseReduction `xml:"http://www.onvif.org/ver10/schema NoiseReduction,omitempty"`
  4392. Extension ImagingSettingsExtension204 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4393. }
  4394. // ImagingSettingsExtension204 type
  4395. type ImagingSettingsExtension204 struct {
  4396. }
  4397. // ImageStabilization type
  4398. type ImageStabilization struct {
  4399. // Parameter to enable/disable Image Stabilization feature.
  4400. Mode ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4401. // Optional level parameter (unit unspecified)
  4402. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4403. Extension ImageStabilizationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4404. }
  4405. // ImageStabilizationExtension type
  4406. type ImageStabilizationExtension struct {
  4407. }
  4408. // IrCutFilterAutoAdjustment type
  4409. type IrCutFilterAutoAdjustment struct {
  4410. // Specifies which boundaries to automatically toggle Ir cut filter following parameters are applied to. Its options shall be chosen from tt:IrCutFilterAutoBoundaryType.
  4411. BoundaryType string `xml:"http://www.onvif.org/ver10/schema BoundaryType,omitempty"`
  4412. // 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).
  4413. BoundaryOffset float32 `xml:"http://www.onvif.org/ver10/schema BoundaryOffset,omitempty"`
  4414. // Delay time of toggling Ir cut filter to on/off after crossing of the boundary exposure levels.
  4415. ResponseTime Duration `xml:"http://www.onvif.org/ver10/schema ResponseTime,omitempty"`
  4416. Extension IrCutFilterAutoAdjustmentExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4417. }
  4418. // IrCutFilterAutoAdjustmentExtension type
  4419. type IrCutFilterAutoAdjustmentExtension struct {
  4420. }
  4421. // WideDynamicRange20 type
  4422. type WideDynamicRange20 struct {
  4423. // Wide dynamic range mode (on/off).
  4424. Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4425. // Optional level parameter (unit unspecified).
  4426. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4427. }
  4428. // BacklightCompensation20 type
  4429. type BacklightCompensation20 struct {
  4430. // Backlight compensation mode (on/off).
  4431. Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4432. // Optional level parameter (unit unspecified).
  4433. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4434. }
  4435. // Exposure20 type
  4436. type Exposure20 struct {
  4437. //
  4438. // Exposure Mode
  4439. //
  4440. //
  4441. Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4442. //
  4443. // The exposure priority mode (low noise/framerate).
  4444. //
  4445. Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  4446. //
  4447. // Rectangular exposure mask.
  4448. //
  4449. Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
  4450. //
  4451. // Minimum value of exposure time range allowed to be used by the algorithm.
  4452. //
  4453. MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  4454. //
  4455. // Maximum value of exposure time range allowed to be used by the algorithm.
  4456. //
  4457. MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  4458. //
  4459. // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
  4460. //
  4461. MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  4462. //
  4463. // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
  4464. //
  4465. MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  4466. //
  4467. // 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.
  4468. //
  4469. MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  4470. //
  4471. // 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.
  4472. //
  4473. MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  4474. //
  4475. // The fixed exposure time used by the image sensor (μs).
  4476. //
  4477. ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  4478. //
  4479. // The fixed gain used by the image sensor (dB).
  4480. //
  4481. Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  4482. //
  4483. // 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.
  4484. //
  4485. Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  4486. }
  4487. // ToneCompensation type
  4488. type ToneCompensation struct {
  4489. // Parameter to enable/disable or automatic ToneCompensation feature. Its options shall be chosen from tt:ToneCompensationMode Type.
  4490. Mode string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4491. // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
  4492. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4493. Extension ToneCompensationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4494. }
  4495. // ToneCompensationExtension type
  4496. type ToneCompensationExtension struct {
  4497. }
  4498. // Defogging type
  4499. type Defogging struct {
  4500. // Parameter to enable/disable or automatic Defogging feature. Its options shall be chosen from tt:DefoggingMode Type.
  4501. Mode string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4502. // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
  4503. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4504. Extension DefoggingExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4505. }
  4506. // DefoggingExtension type
  4507. type DefoggingExtension struct {
  4508. }
  4509. // NoiseReduction type
  4510. type NoiseReduction struct {
  4511. // Level parameter specified with unitless normalized value from 0.0 to +1.0. Level=0 means no noise reduction or minimal noise reduction.
  4512. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4513. }
  4514. // ImagingOptions20 type
  4515. type ImagingOptions20 struct {
  4516. //
  4517. // Valid range of Backlight Compensation.
  4518. //
  4519. BacklightCompensation BacklightCompensationOptions20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  4520. //
  4521. // Valid range of Brightness.
  4522. //
  4523. Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  4524. //
  4525. // Valid range of Color Saturation.
  4526. //
  4527. ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  4528. //
  4529. // Valid range of Contrast.
  4530. //
  4531. Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  4532. //
  4533. // Valid range of Exposure.
  4534. //
  4535. Exposure ExposureOptions20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  4536. //
  4537. // Valid range of Focus.
  4538. //
  4539. Focus FocusOptions20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  4540. //
  4541. // Valid range of IrCutFilterModes.
  4542. //
  4543. IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
  4544. //
  4545. // Valid range of Sharpness.
  4546. //
  4547. Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  4548. //
  4549. // Valid range of WideDynamicRange.
  4550. //
  4551. WideDynamicRange WideDynamicRangeOptions20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  4552. //
  4553. // Valid range of WhiteBalance.
  4554. //
  4555. WhiteBalance WhiteBalanceOptions20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  4556. Extension ImagingOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4557. }
  4558. // ImagingOptions20Extension type
  4559. type ImagingOptions20Extension struct {
  4560. // Options of parameters for Image Stabilization feature.
  4561. ImageStabilization ImageStabilizationOptions `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
  4562. Extension ImagingOptions20Extension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4563. }
  4564. // ImagingOptions20Extension2 type
  4565. type ImagingOptions20Extension2 struct {
  4566. // Options of parameters for adjustment of Ir cut filter auto mode.
  4567. IrCutFilterAutoAdjustment IrCutFilterAutoAdjustmentOptions `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
  4568. Extension ImagingOptions20Extension3 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4569. }
  4570. // ImagingOptions20Extension3 type
  4571. type ImagingOptions20Extension3 struct {
  4572. // Options of parameters for Tone Compensation feature.
  4573. ToneCompensationOptions ToneCompensationOptions `xml:"http://www.onvif.org/ver10/schema ToneCompensationOptions,omitempty"`
  4574. // Options of parameters for Defogging feature.
  4575. DefoggingOptions DefoggingOptions `xml:"http://www.onvif.org/ver10/schema DefoggingOptions,omitempty"`
  4576. // Options of parameter for Noise Reduction feature.
  4577. NoiseReductionOptions NoiseReductionOptions `xml:"http://www.onvif.org/ver10/schema NoiseReductionOptions,omitempty"`
  4578. Extension ImagingOptions20Extension4 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4579. }
  4580. // ImagingOptions20Extension4 type
  4581. type ImagingOptions20Extension4 struct {
  4582. }
  4583. // ImageStabilizationOptions type
  4584. type ImageStabilizationOptions struct {
  4585. // Supported options of Image Stabilization mode parameter.
  4586. Mode []ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4587. // Valid range of the Image Stabilization.
  4588. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4589. Extension ImageStabilizationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4590. }
  4591. // ImageStabilizationOptionsExtension type
  4592. type ImageStabilizationOptionsExtension struct {
  4593. }
  4594. // IrCutFilterAutoAdjustmentOptions type
  4595. type IrCutFilterAutoAdjustmentOptions struct {
  4596. // Supported options of boundary types for adjustment of Ir cut filter auto mode. The opptions shall be chosen from tt:IrCutFilterAutoBoundaryType.
  4597. BoundaryType []string `xml:"http://www.onvif.org/ver10/schema BoundaryType,omitempty"`
  4598. // Indicates whether or not boundary offset for toggling Ir cut filter is supported.
  4599. BoundaryOffset bool `xml:"http://www.onvif.org/ver10/media/wsdl BoundaryOffset,omitempty"`
  4600. // Supported range of delay time for toggling Ir cut filter.
  4601. ResponseTimeRange DurationRange `xml:"http://www.onvif.org/ver10/schema ResponseTimeRange,omitempty"`
  4602. Extension IrCutFilterAutoAdjustmentOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4603. }
  4604. // IrCutFilterAutoAdjustmentOptionsExtension type
  4605. type IrCutFilterAutoAdjustmentOptionsExtension struct {
  4606. }
  4607. // WideDynamicRangeOptions20 type
  4608. type WideDynamicRangeOptions20 struct {
  4609. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4610. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4611. }
  4612. // BacklightCompensationOptions20 type
  4613. type BacklightCompensationOptions20 struct {
  4614. //
  4615. // 'ON' or 'OFF'
  4616. //
  4617. Mode []BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4618. //
  4619. // Level range of BacklightCompensation.
  4620. //
  4621. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  4622. }
  4623. // ExposureOptions20 type
  4624. type ExposureOptions20 struct {
  4625. //
  4626. // Exposure Mode
  4627. //
  4628. //
  4629. Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4630. //
  4631. // The exposure priority mode (low noise/framerate).
  4632. //
  4633. Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  4634. //
  4635. // Valid range of the Minimum ExposureTime.
  4636. //
  4637. MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  4638. //
  4639. // Valid range of the Maximum ExposureTime.
  4640. //
  4641. MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  4642. //
  4643. // Valid range of the Minimum Gain.
  4644. //
  4645. MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  4646. //
  4647. // Valid range of the Maximum Gain.
  4648. //
  4649. MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  4650. //
  4651. // Valid range of the Minimum Iris.
  4652. //
  4653. MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  4654. //
  4655. // Valid range of the Maximum Iris.
  4656. //
  4657. MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  4658. //
  4659. // Valid range of the ExposureTime.
  4660. //
  4661. ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  4662. //
  4663. // Valid range of the Gain.
  4664. //
  4665. Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  4666. //
  4667. // Valid range of the Iris.
  4668. //
  4669. Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  4670. }
  4671. // WhiteBalance20 type
  4672. type WhiteBalance20 struct {
  4673. //
  4674. // 'AUTO' or 'MANUAL'
  4675. //
  4676. Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4677. //
  4678. // Rgain (unitless).
  4679. //
  4680. CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
  4681. //
  4682. // Bgain (unitless).
  4683. //
  4684. CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
  4685. Extension WhiteBalance20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4686. }
  4687. // WhiteBalance20Extension type
  4688. type WhiteBalance20Extension struct {
  4689. }
  4690. // FocusConfiguration20 type
  4691. type FocusConfiguration20 struct {
  4692. //
  4693. // Mode of auto focus.
  4694. //
  4695. // 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.
  4696. //
  4697. AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
  4698. DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  4699. // Parameter to set autofocus near limit (unit: meter).
  4700. NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  4701. // Parameter to set autofocus far limit (unit: meter).
  4702. FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  4703. Extension FocusConfiguration20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4704. // Zero or more modes as defined in enumeration tt:AFModes.
  4705. AFMode StringAttrList `xml:"http://www.onvif.org/ver10/schema AFMode,attr,omitempty"`
  4706. }
  4707. // FocusConfiguration20Extension type
  4708. type FocusConfiguration20Extension struct {
  4709. }
  4710. // WhiteBalanceOptions20 type
  4711. type WhiteBalanceOptions20 struct {
  4712. //
  4713. // Mode of WhiteBalance.
  4714. //
  4715. //
  4716. Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4717. YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
  4718. YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
  4719. Extension WhiteBalanceOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4720. }
  4721. // WhiteBalanceOptions20Extension type
  4722. type WhiteBalanceOptions20Extension struct {
  4723. }
  4724. // FocusOptions20 type
  4725. type FocusOptions20 struct {
  4726. //
  4727. // Supported modes for auto focus.
  4728. //
  4729. //
  4730. AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
  4731. //
  4732. // Valid range of DefaultSpeed.
  4733. //
  4734. DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  4735. //
  4736. // Valid range of NearLimit.
  4737. //
  4738. NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  4739. //
  4740. // Valid range of FarLimit.
  4741. //
  4742. FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  4743. Extension FocusOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4744. }
  4745. // FocusOptions20Extension type
  4746. type FocusOptions20Extension struct {
  4747. // Supported options for auto focus. Options shall be chosen from tt:AFModes.
  4748. AFModes StringAttrList `xml:"http://www.onvif.org/ver10/schema AFModes,omitempty"`
  4749. }
  4750. // ToneCompensationOptions type
  4751. type ToneCompensationOptions struct {
  4752. // Supported options for Tone Compensation mode. Its options shall be chosen from tt:ToneCompensationMode Type.
  4753. Mode []string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4754. // Indicates whether or not support Level parameter for Tone Compensation.
  4755. Level bool `xml:"http://www.onvif.org/ver10/media/wsdl Level,omitempty"`
  4756. }
  4757. // DefoggingOptions type
  4758. type DefoggingOptions struct {
  4759. // Supported options for Defogging mode. Its options shall be chosen from tt:DefoggingMode Type.
  4760. Mode []string `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4761. // Indicates whether or not support Level parameter for Defogging.
  4762. Level bool `xml:"http://www.onvif.org/ver10/media/wsdl Level,omitempty"`
  4763. }
  4764. // NoiseReductionOptions type
  4765. type NoiseReductionOptions struct {
  4766. // Indicates whether or not support Level parameter for NoiseReduction.
  4767. Level bool `xml:"http://www.onvif.org/ver10/media/wsdl Level,omitempty"`
  4768. }
  4769. // MessageExtension type
  4770. type MessageExtension struct {
  4771. }
  4772. // ItemList type
  4773. type ItemList struct {
  4774. SimpleItem []struct {
  4775. // Item name.
  4776. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  4777. // Item value. The type is defined in the corresponding description.
  4778. Value AnySimpleType `xml:"Value,attr,omitempty"`
  4779. } `xml:"SimpleItem,omitempty"`
  4780. ElementItem []struct {
  4781. // Item name.
  4782. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  4783. } `xml:"ElementItem,omitempty"`
  4784. Extension ItemListExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4785. }
  4786. // ItemListExtension type
  4787. type ItemListExtension struct {
  4788. }
  4789. // MessageDescription type
  4790. type MessageDescription struct {
  4791. // Set of tokens producing this message. The list may only contain SimpleItemDescription items.
  4792. // The set of tokens identify the component within the WS-Endpoint, which is responsible for the producing the message.
  4793. // For analytics events the token set shall include the VideoSourceConfigurationToken, the VideoAnalyticsConfigurationToken
  4794. // and the name of the analytics module or rule.
  4795. //
  4796. Source ItemListDescription `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  4797. // Describes optional message payload parameters that may be used as key. E.g. object IDs of tracked objects are conveyed as key.
  4798. Key ItemListDescription `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  4799. // Describes the payload of the message.
  4800. Data ItemListDescription `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  4801. Extension MessageDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4802. // 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.
  4803. IsProperty bool `xml:"http://www.onvif.org/ver10/media/wsdl IsProperty,attr,omitempty"`
  4804. }
  4805. // MessageDescriptionExtension type
  4806. type MessageDescriptionExtension struct {
  4807. }
  4808. // ItemListDescription type
  4809. type ItemListDescription struct {
  4810. SimpleItemDescription []struct {
  4811. // Item name. Must be unique within a list.
  4812. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  4813. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4814. } `xml:"SimpleItemDescription,omitempty"`
  4815. ElementItemDescription []struct {
  4816. // Item name. Must be unique within a list.
  4817. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  4818. // The type of the item. The Type must reference a defined type.
  4819. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4820. } `xml:"ElementItemDescription,omitempty"`
  4821. Extension ItemListDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4822. }
  4823. // ItemListDescriptionExtension type
  4824. type ItemListDescriptionExtension struct {
  4825. }
  4826. // Polyline type
  4827. type Polyline struct {
  4828. Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
  4829. }
  4830. // AnalyticsEngineConfiguration type
  4831. type AnalyticsEngineConfiguration struct {
  4832. AnalyticsModule []Config `xml:"http://www.onvif.org/ver10/schema AnalyticsModule,omitempty"`
  4833. Extension AnalyticsEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4834. }
  4835. // AnalyticsEngineConfigurationExtension type
  4836. type AnalyticsEngineConfigurationExtension struct {
  4837. }
  4838. // RuleEngineConfiguration type
  4839. type RuleEngineConfiguration struct {
  4840. Rule []Config `xml:"http://www.onvif.org/ver10/schema Rule,omitempty"`
  4841. Extension RuleEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4842. }
  4843. // RuleEngineConfigurationExtension type
  4844. type RuleEngineConfigurationExtension struct {
  4845. }
  4846. // Config type
  4847. type Config struct {
  4848. // List of configuration parameters as defined in the correspding description.
  4849. Parameters ItemList `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
  4850. // Name of the configuration.
  4851. Name string `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  4852. // 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.
  4853. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4854. }
  4855. // ConfigDescription type
  4856. type ConfigDescription struct {
  4857. //
  4858. // List describing the configuration parameters. The names of the parameters must be unique. If possible SimpleItems
  4859. // should be used to transport the information to ease parsing of dynamically defined messages by a client
  4860. // application.
  4861. //
  4862. Parameters ItemListDescription `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
  4863. Messages []struct {
  4864. *MessageDescription
  4865. //
  4866. // The ParentTopic labels the message (e.g. "nn:RuleEngine/LineCrossing"). The real message can extend the ParentTopic
  4867. // by for example the name of the instaniated rule (e.g. "nn:RuleEngine/LineCrossing/corssMyFirstLine").
  4868. // Even without knowing the complete topic name, the subscriber will be able to distiguish the
  4869. // messages produced by different rule instances of the same type via the Source fields of the message.
  4870. // There the name of the rule instance, which produced the message, must be listed.
  4871. //
  4872. ParentTopic string `xml:"http://www.onvif.org/ver10/schema ParentTopic,omitempty"`
  4873. } `xml:"Messages,omitempty"`
  4874. Extension ConfigDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4875. // The Name attribute (e.g. "tt::LineDetector") uniquely identifies the type of rule, not a type definition in a schema.
  4876. Name QName `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  4877. // The fixed attribute signals that it is not allowed to add or remove this type of configuration.
  4878. Fixed bool `xml:"fixed,attr,omitempty"`
  4879. // The maxInstances attribute signals the maximum number of instances per configuration.
  4880. MaxInstances int32 `xml:"maxInstances,attr,omitempty"`
  4881. }
  4882. // ConfigDescriptionExtension type
  4883. type ConfigDescriptionExtension struct {
  4884. }
  4885. // SupportedRules type
  4886. type SupportedRules struct {
  4887. // Lists the location of all schemas that are referenced in the rules.
  4888. RuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema RuleContentSchemaLocation,omitempty"`
  4889. // List of rules supported by the Video Analytics configuration..
  4890. RuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema RuleDescription,omitempty"`
  4891. Extension SupportedRulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4892. }
  4893. // SupportedRulesExtension type
  4894. type SupportedRulesExtension struct {
  4895. }
  4896. // SupportedAnalyticsModules type
  4897. type SupportedAnalyticsModules struct {
  4898. // It optionally contains a list of URLs that provide the location of schema files.
  4899. // These schema files describe the types and elements used in the analytics module descriptions.
  4900. // Analytics module descriptions that reference types or elements imported from any ONVIF defined schema files
  4901. // need not explicitly list those schema files.
  4902. AnalyticsModuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleContentSchemaLocation,omitempty"`
  4903. AnalyticsModuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleDescription,omitempty"`
  4904. Extension SupportedAnalyticsModulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4905. }
  4906. // SupportedAnalyticsModulesExtension type
  4907. type SupportedAnalyticsModulesExtension struct {
  4908. }
  4909. // PolylineArray type
  4910. type PolylineArray struct {
  4911. // Contains array of Polyline
  4912. Segment []Polyline `xml:"http://www.onvif.org/ver10/schema Segment,omitempty"`
  4913. Extension PolylineArrayExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4914. }
  4915. // PolylineArrayExtension type
  4916. type PolylineArrayExtension struct {
  4917. }
  4918. // PaneLayout type
  4919. type PaneLayout struct {
  4920. // Reference to the configuration of the streaming and coding parameters.
  4921. Pane ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl Pane,omitempty"`
  4922. // Describes the location and size of the area on the monitor. The area coordinate values are espressed in normalized units [-1.0, 1.0].
  4923. Area Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
  4924. }
  4925. // Layout type
  4926. type Layout struct {
  4927. // List of panes assembling the display layout.
  4928. PaneLayout []PaneLayout `xml:"http://www.onvif.org/ver10/schema PaneLayout,omitempty"`
  4929. Extension LayoutExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4930. }
  4931. // LayoutExtension type
  4932. type LayoutExtension struct {
  4933. }
  4934. // LayoutOptions type
  4935. type LayoutOptions struct {
  4936. // Lists the possible Pane Layouts of the Video Output
  4937. PaneLayoutOptions []PaneLayoutOptions `xml:"http://www.onvif.org/ver10/schema PaneLayoutOptions,omitempty"`
  4938. Extension LayoutOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4939. }
  4940. // LayoutOptionsExtension type
  4941. type LayoutOptionsExtension struct {
  4942. }
  4943. // PaneLayoutOptions type
  4944. type PaneLayoutOptions struct {
  4945. // List of areas assembling a layout. Coordinate values are in the range [-1.0, 1.0].
  4946. Area []Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
  4947. Extension PaneOptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4948. }
  4949. // PaneOptionExtension type
  4950. type PaneOptionExtension struct {
  4951. }
  4952. // Receiver type
  4953. type Receiver struct {
  4954. // Unique identifier of the receiver.
  4955. Token ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl Token,omitempty"`
  4956. // Describes the configuration of the receiver.
  4957. Configuration ReceiverConfiguration `xml:"http://www.onvif.org/ver10/schema Configuration,omitempty"`
  4958. }
  4959. // ReceiverConfiguration type
  4960. type ReceiverConfiguration struct {
  4961. // The following connection modes are defined:
  4962. Mode ReceiverMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4963. // Details of the URI to which the receiver should connect.
  4964. MediaUri AnyURI `xml:"http://www.onvif.org/ver10/schema MediaUri,omitempty"`
  4965. // Stream connection parameters.
  4966. StreamSetup StreamSetup `xml:"http://www.onvif.org/ver10/media/wsdl StreamSetup,omitempty"`
  4967. }
  4968. // SourceReference type
  4969. type SourceReference struct {
  4970. Token ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl Token,omitempty"`
  4971. Type AnyURI `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4972. }
  4973. // DateTimeRange type
  4974. type DateTimeRange struct {
  4975. From string `xml:"http://www.onvif.org/ver10/schema From,omitempty"`
  4976. Until string `xml:"http://www.onvif.org/ver10/schema Until,omitempty"`
  4977. }
  4978. // SearchScope type
  4979. type SearchScope struct {
  4980. // 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.
  4981. IncludedSources []SourceReference `xml:"http://www.onvif.org/ver10/schema IncludedSources,omitempty"`
  4982. // 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.
  4983. IncludedRecordings []RecordingReference `xml:"http://www.onvif.org/ver10/schema IncludedRecordings,omitempty"`
  4984. // An xpath expression used to specify what recordings to search. Only those recordings with an RecordingInformation structure that matches the filter shall be searched.
  4985. RecordingInformationFilter XPathExpression `xml:"http://www.onvif.org/ver10/schema RecordingInformationFilter,omitempty"`
  4986. // Extension point
  4987. Extension SearchScopeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4988. }
  4989. // SearchScopeExtension type
  4990. type SearchScopeExtension struct {
  4991. }
  4992. // RecordingSourceInformation type
  4993. type RecordingSourceInformation struct {
  4994. //
  4995. // Identifier for the source chosen by the client that creates the structure.
  4996. // 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.
  4997. SourceId AnyURI `xml:"http://www.onvif.org/ver10/schema SourceId,omitempty"`
  4998. // Informative user readable name of the source, e.g. "Camera23". A device shall support at least 20 characters.
  4999. Name Name `xml:"http://www.onvif.org/ver10/media/wsdl Name,omitempty"`
  5000. // Informative description of the physical location of the source, e.g. the coordinates on a map.
  5001. Location Description `xml:"http://www.onvif.org/ver10/media/wsdl Location,omitempty"`
  5002. // Informative description of the source.
  5003. Description Description `xml:"http://www.onvif.org/ver10/media/wsdl Description,omitempty"`
  5004. // URI provided by the service supplying data to be recorded. A device shall support at least 128 characters.
  5005. Address AnyURI `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  5006. }
  5007. // TrackInformation type
  5008. type TrackInformation struct {
  5009. TrackToken TrackReference `xml:"http://www.onvif.org/ver10/schema TrackToken,omitempty"`
  5010. // Type of the track: "Video", "Audio" or "Metadata".
  5011. // The track shall only be able to hold data of that type.
  5012. TrackType TrackType `xml:"http://www.onvif.org/ver10/schema TrackType,omitempty"`
  5013. // Informative description of the contents of the track.
  5014. Description Description `xml:"http://www.onvif.org/ver10/media/wsdl Description,omitempty"`
  5015. // The start date and time of the oldest recorded data in the track.
  5016. DataFrom string `xml:"http://www.onvif.org/ver10/schema DataFrom,omitempty"`
  5017. // The stop date and time of the newest recorded data in the track.
  5018. DataTo string `xml:"http://www.onvif.org/ver10/schema DataTo,omitempty"`
  5019. }
  5020. // TrackAttributes type
  5021. type TrackAttributes struct {
  5022. // The basic information about the track. Note that a track may represent a single contiguous time span or consist of multiple slices.
  5023. TrackInformation TrackInformation `xml:"http://www.onvif.org/ver10/schema TrackInformation,omitempty"`
  5024. // If the track is a video track, exactly one of this structure shall be present and contain the video attributes.
  5025. VideoAttributes VideoAttributes `xml:"http://www.onvif.org/ver10/schema VideoAttributes,omitempty"`
  5026. // If the track is an audio track, exactly one of this structure shall be present and contain the audio attributes.
  5027. AudioAttributes AudioAttributes `xml:"http://www.onvif.org/ver10/schema AudioAttributes,omitempty"`
  5028. // If the track is an metadata track, exactly one of this structure shall be present and contain the metadata attributes.
  5029. MetadataAttributes MetadataAttributes `xml:"http://www.onvif.org/ver10/schema MetadataAttributes,omitempty"`
  5030. Extension TrackAttributesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5031. }
  5032. // TrackAttributesExtension type
  5033. type TrackAttributesExtension struct {
  5034. }
  5035. // VideoAttributes type
  5036. type VideoAttributes struct {
  5037. // Average bitrate in kbps.
  5038. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  5039. // The width of the video in pixels.
  5040. Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
  5041. // The height of the video in pixels.
  5042. Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
  5043. // Video encoding of the track. Use value from tt:VideoEncoding for MPEG4. Otherwise use values from tt:VideoEncodingMimeNames and .
  5044. Encoding string `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  5045. // Average framerate in frames per second.
  5046. Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
  5047. }
  5048. // AudioAttributes type
  5049. type AudioAttributes struct {
  5050. // The bitrate in kbps.
  5051. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  5052. // Audio encoding of the track. Use values from tt:AudioEncoding for G711 and AAC. Otherwise use values from tt:AudioEncodingMimeNames and .
  5053. Encoding string `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  5054. // The sample rate in kHz.
  5055. Samplerate int32 `xml:"http://www.onvif.org/ver10/schema Samplerate,omitempty"`
  5056. }
  5057. // MetadataAttributes type
  5058. type MetadataAttributes struct {
  5059. // Indicates that there can be PTZ data in the metadata track in the specified time interval.
  5060. CanContainPTZ bool `xml:"http://www.onvif.org/ver10/media/wsdl CanContainPTZ,omitempty"`
  5061. // Indicates that there can be analytics data in the metadata track in the specified time interval.
  5062. CanContainAnalytics bool `xml:"http://www.onvif.org/ver10/media/wsdl CanContainAnalytics,omitempty"`
  5063. // Indicates that there can be notifications in the metadata track in the specified time interval.
  5064. CanContainNotifications bool `xml:"http://www.onvif.org/ver10/media/wsdl CanContainNotifications,omitempty"`
  5065. // 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.
  5066. PtzSpaces StringAttrList `xml:"http://www.onvif.org/ver10/schema PtzSpaces,attr,omitempty"`
  5067. }
  5068. // RecordingJobConfiguration type
  5069. type RecordingJobConfiguration struct {
  5070. // Identifies the recording to which this job shall store the received data.
  5071. RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
  5072. // The mode of the job. If it is idle, nothing shall happen. If it is active, the device shall try
  5073. // to obtain data from the receivers. A client shall use GetRecordingJobState to determine if data transfer is really taking place.
  5074. // The only valid values for Mode shall be “Idle” and “Active”.
  5075. Mode RecordingJobMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  5076. // This shall be a non-negative number. If there are multiple recording jobs that store data to
  5077. // the same track, the device will only store the data for the recording job with the highest
  5078. // priority. The priority is specified per recording job, but the device shall determine the priority
  5079. // of each track individually. If there are two recording jobs with the same priority, the device
  5080. // shall record the data corresponding to the recording job that was activated the latest.
  5081. Priority int32 `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  5082. // Source of the recording.
  5083. Source []RecordingJobSource `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  5084. Extension RecordingJobConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5085. // This attribute adds an additional requirement for activating the recording job.
  5086. // If this optional field is provided the job shall only record if the schedule exists and is active.
  5087. //
  5088. ScheduleToken string `xml:"http://www.onvif.org/ver10/schema ScheduleToken,attr,omitempty"`
  5089. }
  5090. // RecordingJobConfigurationExtension type
  5091. type RecordingJobConfigurationExtension struct {
  5092. }
  5093. // RecordingJobSource type
  5094. type RecordingJobSource struct {
  5095. // This field shall be a reference to the source of the data. The type of the source
  5096. // is determined by the attribute Type in the SourceToken structure. If Type is
  5097. // http://www.onvif.org/ver10/schema/Receiver, the token is a ReceiverReference. In this case
  5098. // the device shall receive the data over the network. If Type is
  5099. // http://www.onvif.org/ver10/schema/Profile, the token identifies a media profile, instructing the
  5100. // device to obtain data from a profile that exists on the local device.
  5101. SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
  5102. // If this field is TRUE, and if the SourceToken is omitted, the device
  5103. // shall create a receiver object (through the receiver service) and assign the
  5104. // ReceiverReference to the SourceToken field. When retrieving the RecordingJobConfiguration
  5105. // from the device, the AutoCreateReceiver field shall never be present.
  5106. AutoCreateReceiver bool `xml:"http://www.onvif.org/ver10/media/wsdl AutoCreateReceiver,omitempty"`
  5107. // List of tracks associated with the recording.
  5108. Tracks []RecordingJobTrack `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
  5109. Extension RecordingJobSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5110. }
  5111. // RecordingJobSourceExtension type
  5112. type RecordingJobSourceExtension struct {
  5113. }
  5114. // RecordingJobTrack type
  5115. type RecordingJobTrack struct {
  5116. // If the received RTSP stream contains multiple tracks of the same type, the
  5117. // SourceTag differentiates between those Tracks. This field can be ignored in case of recording a local source.
  5118. SourceTag string `xml:"http://www.onvif.org/ver10/schema SourceTag,omitempty"`
  5119. // The destination is the tracktoken of the track to which the device shall store the
  5120. // received data.
  5121. Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
  5122. }
  5123. // RecordingJobStateInformation type
  5124. type RecordingJobStateInformation struct {
  5125. // Identification of the recording that the recording job records to.
  5126. RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
  5127. // Holds the aggregated state over the whole RecordingJobInformation structure.
  5128. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  5129. // Identifies the data source of the recording job.
  5130. Sources []RecordingJobStateSource `xml:"http://www.onvif.org/ver10/schema Sources,omitempty"`
  5131. Extension RecordingJobStateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5132. }
  5133. // RecordingJobStateInformationExtension type
  5134. type RecordingJobStateInformationExtension struct {
  5135. }
  5136. // RecordingJobStateSource type
  5137. type RecordingJobStateSource struct {
  5138. // Identifies the data source of the recording job.
  5139. SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
  5140. // Holds the aggregated state over all substructures of RecordingJobStateSource.
  5141. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  5142. // List of track items.
  5143. Tracks RecordingJobStateTracks `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
  5144. }
  5145. // RecordingJobStateTracks type
  5146. type RecordingJobStateTracks struct {
  5147. Track []RecordingJobStateTrack `xml:"http://www.onvif.org/ver10/schema Track,omitempty"`
  5148. }
  5149. // RecordingJobStateTrack type
  5150. type RecordingJobStateTrack struct {
  5151. // Identifies the track of the data source that provides the data.
  5152. SourceTag string `xml:"http://www.onvif.org/ver10/schema SourceTag,omitempty"`
  5153. // Indicates the destination track.
  5154. Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
  5155. // Optionally holds an implementation defined string value that describes the error.
  5156. // The string should be in the English language.
  5157. Error string `xml:"http://www.onvif.org/ver10/schema Error,omitempty"`
  5158. // Provides the job state of the track. The valid
  5159. // 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.
  5160. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  5161. }
  5162. // AnalyticsEngine type
  5163. type AnalyticsEngine struct {
  5164. *ConfigurationEntity
  5165. AnalyticsEngineConfiguration AnalyticsDeviceEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  5166. }
  5167. // AnalyticsDeviceEngineConfiguration type
  5168. type AnalyticsDeviceEngineConfiguration struct {
  5169. EngineConfiguration []EngineConfiguration `xml:"http://www.onvif.org/ver10/schema EngineConfiguration,omitempty"`
  5170. Extension AnalyticsDeviceEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5171. }
  5172. // AnalyticsDeviceEngineConfigurationExtension type
  5173. type AnalyticsDeviceEngineConfigurationExtension struct {
  5174. }
  5175. // EngineConfiguration type
  5176. type EngineConfiguration struct {
  5177. VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl VideoAnalyticsConfiguration,omitempty"`
  5178. AnalyticsEngineInputInfo AnalyticsEngineInputInfo `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineInputInfo,omitempty"`
  5179. }
  5180. // AnalyticsEngineInputInfo type
  5181. type AnalyticsEngineInputInfo struct {
  5182. InputInfo Config `xml:"http://www.onvif.org/ver10/schema InputInfo,omitempty"`
  5183. Extension AnalyticsEngineInputInfoExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5184. }
  5185. // AnalyticsEngineInputInfoExtension type
  5186. type AnalyticsEngineInputInfoExtension struct {
  5187. }
  5188. // AnalyticsEngineInput type
  5189. type AnalyticsEngineInput struct {
  5190. *ConfigurationEntity
  5191. SourceIdentification SourceIdentification `xml:"http://www.onvif.org/ver10/schema SourceIdentification,omitempty"`
  5192. VideoInput VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/media/wsdl VideoInput,omitempty"`
  5193. MetadataInput MetadataInput `xml:"http://www.onvif.org/ver10/schema MetadataInput,omitempty"`
  5194. }
  5195. // SourceIdentification type
  5196. type SourceIdentification struct {
  5197. Name string `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  5198. Token []ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl Token,omitempty"`
  5199. Extension SourceIdentificationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5200. }
  5201. // SourceIdentificationExtension type
  5202. type SourceIdentificationExtension struct {
  5203. }
  5204. // MetadataInput type
  5205. type MetadataInput struct {
  5206. MetadataConfig []Config `xml:"http://www.onvif.org/ver10/schema MetadataConfig,omitempty"`
  5207. Extension MetadataInputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5208. }
  5209. // MetadataInputExtension type
  5210. type MetadataInputExtension struct {
  5211. }
  5212. // ActionEngineEventPayload type
  5213. type ActionEngineEventPayload struct {
  5214. // Request Message
  5215. RequestInfo Envelope `xml:"RequestInfo,omitempty"`
  5216. // Response Message
  5217. ResponseInfo Envelope `xml:"ResponseInfo,omitempty"`
  5218. // Fault Message
  5219. Fault Fault `xml:"Fault,omitempty"`
  5220. Extension ActionEngineEventPayloadExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5221. }
  5222. // ActionEngineEventPayloadExtension type
  5223. type ActionEngineEventPayloadExtension struct {
  5224. }
  5225. // AudioClassCandidate type
  5226. type AudioClassCandidate struct {
  5227. // Indicates audio class label
  5228. Type AudioClassType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  5229. // A likelihood/probability that the corresponding audio event belongs to this class. The sum of the likelihoods shall NOT exceed 1
  5230. Likelihood float32 `xml:"http://www.onvif.org/ver10/schema Likelihood,omitempty"`
  5231. }
  5232. // AudioClassDescriptor type
  5233. type AudioClassDescriptor struct {
  5234. // Array of audio class label and class probability
  5235. ClassCandidate []AudioClassCandidate `xml:"http://www.onvif.org/ver10/schema ClassCandidate,omitempty"`
  5236. Extension AudioClassDescriptorExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5237. }
  5238. // AudioClassDescriptorExtension type
  5239. type AudioClassDescriptorExtension struct {
  5240. }
  5241. // ActiveConnection type
  5242. type ActiveConnection struct {
  5243. CurrentBitrate float32 `xml:"http://www.onvif.org/ver10/schema CurrentBitrate,omitempty"`
  5244. CurrentFps float32 `xml:"http://www.onvif.org/ver10/schema CurrentFps,omitempty"`
  5245. }
  5246. // ProfileStatus type
  5247. type ProfileStatus struct {
  5248. ActiveConnections []ActiveConnection `xml:"http://www.onvif.org/ver10/schema ActiveConnections,omitempty"`
  5249. Extension ProfileStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5250. }
  5251. // ProfileStatusExtension type
  5252. type ProfileStatusExtension struct {
  5253. }
  5254. // OSDReference type
  5255. type OSDReference struct {
  5256. Value ReferenceToken
  5257. }
  5258. // OSDPosConfiguration type
  5259. type OSDPosConfiguration struct {
  5260. // For OSD position type, following are the pre-defined:
  5261. //
  5262. Type string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  5263. Pos Vector `xml:"http://www.onvif.org/ver10/schema Pos,omitempty"`
  5264. Extension OSDPosConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5265. }
  5266. // OSDPosConfigurationExtension type
  5267. type OSDPosConfigurationExtension struct {
  5268. }
  5269. // OSDColor type
  5270. type OSDColor struct {
  5271. Color Color `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
  5272. Transparent int32 `xml:"http://www.onvif.org/ver10/schema Transparent,attr,omitempty"`
  5273. }
  5274. // OSDTextConfiguration type
  5275. type OSDTextConfiguration struct {
  5276. //
  5277. // The following OSD Text Type are defined:
  5278. //
  5279. Type string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  5280. //
  5281. // 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:
  5282. //
  5283. DateFormat string `xml:"http://www.onvif.org/ver10/schema DateFormat,omitempty"`
  5284. //
  5285. // 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:
  5286. //
  5287. TimeFormat string `xml:"http://www.onvif.org/ver10/schema TimeFormat,omitempty"`
  5288. // Font size of the text in pt.
  5289. FontSize int32 `xml:"http://www.onvif.org/ver10/schema FontSize,omitempty"`
  5290. // Font color of the text.
  5291. FontColor OSDColor `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
  5292. // Background color of the text.
  5293. BackgroundColor OSDColor `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
  5294. // The content of text to be displayed.
  5295. PlainText string `xml:"http://www.onvif.org/ver10/schema PlainText,omitempty"`
  5296. Extension OSDTextConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5297. // 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.
  5298. IsPersistentText bool `xml:"http://www.onvif.org/ver10/media/wsdl IsPersistentText,attr,omitempty"`
  5299. }
  5300. // OSDTextConfigurationExtension type
  5301. type OSDTextConfigurationExtension struct {
  5302. }
  5303. // OSDImgConfiguration type
  5304. type OSDImgConfiguration struct {
  5305. // The URI of the image which to be displayed.
  5306. ImgPath AnyURI `xml:"http://www.onvif.org/ver10/schema ImgPath,omitempty"`
  5307. Extension OSDImgConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5308. }
  5309. // OSDImgConfigurationExtension type
  5310. type OSDImgConfigurationExtension struct {
  5311. }
  5312. // ColorspaceRange type
  5313. type ColorspaceRange struct {
  5314. X FloatRange `xml:"http://www.onvif.org/ver10/schema X,omitempty"`
  5315. Y FloatRange `xml:"http://www.onvif.org/ver10/schema Y,omitempty"`
  5316. Z FloatRange `xml:"http://www.onvif.org/ver10/schema Z,omitempty"`
  5317. //
  5318. // Acceptable values are the same as in tt:Color.
  5319. //
  5320. Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,omitempty"`
  5321. }
  5322. // ColorOptions type
  5323. type ColorOptions struct {
  5324. // List the supported color.
  5325. ColorList []Color `xml:"http://www.onvif.org/ver10/schema ColorList,omitempty"`
  5326. // Define the range of color supported.
  5327. ColorspaceRange []ColorspaceRange `xml:"http://www.onvif.org/ver10/schema ColorspaceRange,omitempty"`
  5328. }
  5329. // OSDColorOptions type
  5330. type OSDColorOptions struct {
  5331. // Optional list of supported colors.
  5332. Color ColorOptions `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
  5333. // Range of the transparent level. Larger means more tranparent.
  5334. Transparent IntRange `xml:"http://www.onvif.org/ver10/schema Transparent,omitempty"`
  5335. Extension OSDColorOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5336. }
  5337. // OSDColorOptionsExtension type
  5338. type OSDColorOptionsExtension struct {
  5339. }
  5340. // OSDTextOptions type
  5341. type OSDTextOptions struct {
  5342. // List of supported OSD text type. When a device indicates the supported number relating to Text type in MaximumNumberOfOSDs, the type shall be presented.
  5343. Type []string `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  5344. // Range of the font size value.
  5345. FontSizeRange IntRange `xml:"http://www.onvif.org/ver10/schema FontSizeRange,omitempty"`
  5346. // List of supported date format.
  5347. DateFormat []string `xml:"http://www.onvif.org/ver10/schema DateFormat,omitempty"`
  5348. // List of supported time format.
  5349. TimeFormat []string `xml:"http://www.onvif.org/ver10/schema TimeFormat,omitempty"`
  5350. // List of supported font color.
  5351. FontColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
  5352. // List of supported background color.
  5353. BackgroundColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
  5354. Extension OSDTextOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5355. }
  5356. // OSDTextOptionsExtension type
  5357. type OSDTextOptionsExtension struct {
  5358. }
  5359. // OSDImgOptions type
  5360. type OSDImgOptions struct {
  5361. // List of available image URIs.
  5362. ImagePath []AnyURI `xml:"http://www.onvif.org/ver10/schema ImagePath,omitempty"`
  5363. Extension OSDImgOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5364. // List of supported image MIME types, such as "image/png".
  5365. FormatsSupported StringAttrList `xml:"http://www.onvif.org/ver10/schema FormatsSupported,attr,omitempty"`
  5366. // The maximum size (in bytes) of the image that can be uploaded.
  5367. MaxSize int32 `xml:"http://www.onvif.org/ver10/schema MaxSize,attr,omitempty"`
  5368. // The maximum width (in pixels) of the image that can be uploaded.
  5369. MaxWidth int32 `xml:"http://www.onvif.org/ver10/schema MaxWidth,attr,omitempty"`
  5370. // The maximum height (in pixels) of the image that can be uploaded.
  5371. MaxHeight int32 `xml:"http://www.onvif.org/ver10/schema MaxHeight,attr,omitempty"`
  5372. }
  5373. // OSDImgOptionsExtension type
  5374. type OSDImgOptionsExtension struct {
  5375. }
  5376. // OSDConfiguration type
  5377. type OSDConfiguration struct {
  5378. *DeviceEntity
  5379. // Reference to the video source configuration.
  5380. VideoSourceConfigurationToken OSDReference `xml:"http://www.onvif.org/ver10/schema VideoSourceConfigurationToken,omitempty"`
  5381. // Type of OSD.
  5382. Type OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  5383. // Position configuration of OSD.
  5384. Position OSDPosConfiguration `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  5385. // Text configuration of OSD. It shall be present when the value of Type field is Text.
  5386. TextString OSDTextConfiguration `xml:"http://www.onvif.org/ver10/schema TextString,omitempty"`
  5387. // Image configuration of OSD. It shall be present when the value of Type field is Image
  5388. Image OSDImgConfiguration `xml:"http://www.onvif.org/ver10/schema Image,omitempty"`
  5389. Extension OSDConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5390. }
  5391. // OSDConfigurationExtension type
  5392. type OSDConfigurationExtension struct {
  5393. }
  5394. // MaximumNumberOfOSDs type
  5395. type MaximumNumberOfOSDs struct {
  5396. Total int32 `xml:"http://www.onvif.org/ver10/schema Total,attr,omitempty"`
  5397. Image int32 `xml:"http://www.onvif.org/ver10/schema Image,attr,omitempty"`
  5398. PlainText int32 `xml:"http://www.onvif.org/ver10/schema PlainText,attr,omitempty"`
  5399. Date int32 `xml:"http://www.onvif.org/ver10/schema Date,attr,omitempty"`
  5400. Time int32 `xml:"http://www.onvif.org/ver10/schema DateTime,attr,omitempty"`
  5401. DateAndTime int32 `xml:"http://www.onvif.org/ver10/schema DateAndTime,attr,omitempty"`
  5402. }
  5403. // OSDConfigurationOptions type
  5404. type OSDConfigurationOptions struct {
  5405. // 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.
  5406. MaximumNumberOfOSDs MaximumNumberOfOSDs `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfOSDs,omitempty"`
  5407. // 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.
  5408. Type []OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  5409. // List available OSD position type. Following are the pre-defined:
  5410. //
  5411. PositionOption []string `xml:"http://www.onvif.org/ver10/schema PositionOption,omitempty"`
  5412. // Option of the OSD text configuration. This element shall be returned if the device is signaling the support for Text.
  5413. TextOption OSDTextOptions `xml:"http://www.onvif.org/ver10/schema TextOption,omitempty"`
  5414. // Option of the OSD image configuration. This element shall be returned if the device is signaling the support for Image.
  5415. ImageOption OSDImgOptions `xml:"http://www.onvif.org/ver10/schema ImageOption,omitempty"`
  5416. Extension OSDConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5417. }
  5418. // OSDConfigurationOptionsExtension type
  5419. type OSDConfigurationOptionsExtension struct {
  5420. }
  5421. // FileProgress type
  5422. type FileProgress struct {
  5423. // Exported file name
  5424. FileName string `xml:"http://www.onvif.org/ver10/schema FileName,omitempty"`
  5425. // Normalized percentage completion for uploading the exported file
  5426. Progress float32 `xml:"http://www.onvif.org/ver10/schema Progress,omitempty"`
  5427. }
  5428. // ArrayOfFileProgress type
  5429. type ArrayOfFileProgress struct {
  5430. // Exported file name and export progress information
  5431. FileProgress []FileProgress `xml:"http://www.onvif.org/ver10/schema FileProgress,omitempty"`
  5432. Extension ArrayOfFileProgressExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5433. }
  5434. // ArrayOfFileProgressExtension type
  5435. type ArrayOfFileProgressExtension struct {
  5436. }
  5437. // StorageReferencePath type
  5438. type StorageReferencePath struct {
  5439. // identifier of an existing Storage Configuration.
  5440. StorageToken ReferenceToken `xml:"http://www.onvif.org/ver10/media/wsdl StorageToken,omitempty"`
  5441. // gives the relative directory path on the storage
  5442. RelativePath string `xml:"http://www.onvif.org/ver10/schema RelativePath,omitempty"`
  5443. Extension StorageReferencePathExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  5444. }
  5445. // StorageReferencePathExtension type
  5446. type StorageReferencePathExtension struct {
  5447. }
  5448. // Media type
  5449. type Media interface {
  5450. /* Returns the capabilities of the media service. The result is returned in a typed answer. */
  5451. GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
  5452. GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
  5453. /* This command lists all available physical video inputs of the device. */
  5454. GetVideoSources(request *GetVideoSources) (*GetVideoSourcesResponse, error)
  5455. GetVideoSourcesContext(ctx context.Context, request *GetVideoSources) (*GetVideoSourcesResponse, error)
  5456. /* This command lists all available physical audio inputs of the device. */
  5457. GetAudioSources(request *GetAudioSources) (*GetAudioSourcesResponse, error)
  5458. GetAudioSourcesContext(ctx context.Context, request *GetAudioSources) (*GetAudioSourcesResponse, error)
  5459. /* This command lists all available physical audio outputs of the device. */
  5460. GetAudioOutputs(request *GetAudioOutputs) (*GetAudioOutputsResponse, error)
  5461. GetAudioOutputsContext(ctx context.Context, request *GetAudioOutputs) (*GetAudioOutputsResponse, error)
  5462. /* This operation creates a new empty media profile. The media profile shall be created in the
  5463. device and shall be persistent (remain after reboot). A created profile shall be deletable and a device shall set the “fixed” attribute to false in the
  5464. returned Profile. */
  5465. CreateProfile(request *CreateProfile) (*CreateProfileResponse, error)
  5466. CreateProfileContext(ctx context.Context, request *CreateProfile) (*CreateProfileResponse, error)
  5467. /* If the profile token is already known, a profile can be fetched through the GetProfile command. */
  5468. GetProfile(request *GetProfile) (*GetProfileResponse, error)
  5469. GetProfileContext(ctx context.Context, request *GetProfile) (*GetProfileResponse, error)
  5470. /* Any endpoint can ask for the existing media profiles of a device using the GetProfiles
  5471. command. Pre-configured or dynamically configured profiles can be retrieved using this
  5472. command. This command lists all configured profiles in a device. The client does not need to
  5473. know the media profile in order to use the command. */
  5474. GetProfiles(request *GetProfiles) (*GetProfilesResponse, error)
  5475. GetProfilesContext(ctx context.Context, request *GetProfiles) (*GetProfilesResponse, error)
  5476. /* This operation adds a VideoEncoderConfiguration to an existing media profile. If a
  5477. configuration exists in the media profile, it will be replaced. The change shall be persistent. A device shall
  5478. support adding a compatible VideoEncoderConfiguration to a Profile containing a VideoSourceConfiguration and shall
  5479. support streaming video data of such a profile.
  5480. */
  5481. AddVideoEncoderConfiguration(request *AddVideoEncoderConfiguration) (*AddVideoEncoderConfigurationResponse, error)
  5482. AddVideoEncoderConfigurationContext(ctx context.Context, request *AddVideoEncoderConfiguration) (*AddVideoEncoderConfigurationResponse, error)
  5483. /* This operation removes a VideoEncoderConfiguration from an existing media profile. If the
  5484. media profile does not contain a VideoEncoderConfiguration, the operation has no effect. The removal shall be persistent. */
  5485. RemoveVideoEncoderConfiguration(request *RemoveVideoEncoderConfiguration) (*RemoveVideoEncoderConfigurationResponse, error)
  5486. RemoveVideoEncoderConfigurationContext(ctx context.Context, request *RemoveVideoEncoderConfiguration) (*RemoveVideoEncoderConfigurationResponse, error)
  5487. /* This operation adds a VideoSourceConfiguration to an existing media profile. If such a
  5488. configuration exists in the media profile, it will be replaced. The change shall be persistent. */
  5489. AddVideoSourceConfiguration(request *AddVideoSourceConfiguration) (*AddVideoSourceConfigurationResponse, error)
  5490. AddVideoSourceConfigurationContext(ctx context.Context, request *AddVideoSourceConfiguration) (*AddVideoSourceConfigurationResponse, error)
  5491. /* This operation removes a VideoSourceConfiguration from an existing media profile. If the
  5492. media profile does not contain a VideoSourceConfiguration, the operation has no effect. The removal shall be persistent. Video source configurations should only be removed after removing a
  5493. VideoEncoderConfiguration from the media profile. */
  5494. RemoveVideoSourceConfiguration(request *RemoveVideoSourceConfiguration) (*RemoveVideoSourceConfigurationResponse, error)
  5495. RemoveVideoSourceConfigurationContext(ctx context.Context, request *RemoveVideoSourceConfiguration) (*RemoveVideoSourceConfigurationResponse, error)
  5496. /* This operation adds an AudioEncoderConfiguration to an existing media profile. If a
  5497. configuration exists in the media profile, it will be replaced. The change shall be persistent. A device shall
  5498. support adding a compatible AudioEncoderConfiguration to a profile containing an AudioSourceConfiguration and shall
  5499. support streaming audio data of such a profile.
  5500. */
  5501. AddAudioEncoderConfiguration(request *AddAudioEncoderConfiguration) (*AddAudioEncoderConfigurationResponse, error)
  5502. AddAudioEncoderConfigurationContext(ctx context.Context, request *AddAudioEncoderConfiguration) (*AddAudioEncoderConfigurationResponse, error)
  5503. /* This operation removes an AudioEncoderConfiguration from an existing media profile. If the
  5504. media profile does not contain an AudioEncoderConfiguration, the operation has no effect.
  5505. The removal shall be persistent. */
  5506. RemoveAudioEncoderConfiguration(request *RemoveAudioEncoderConfiguration) (*RemoveAudioEncoderConfigurationResponse, error)
  5507. RemoveAudioEncoderConfigurationContext(ctx context.Context, request *RemoveAudioEncoderConfiguration) (*RemoveAudioEncoderConfigurationResponse, error)
  5508. /* This operation adds an AudioSourceConfiguration to an existing media profile. If a
  5509. configuration exists in the media profile, it will be replaced. The change shall be persistent. */
  5510. AddAudioSourceConfiguration(request *AddAudioSourceConfiguration) (*AddAudioSourceConfigurationResponse, error)
  5511. AddAudioSourceConfigurationContext(ctx context.Context, request *AddAudioSourceConfiguration) (*AddAudioSourceConfigurationResponse, error)
  5512. /* This operation removes an AudioSourceConfiguration from an existing media profile. If the
  5513. media profile does not contain an AudioSourceConfiguration, the operation has no effect. The
  5514. removal shall be persistent. Audio source configurations should only be removed after removing an
  5515. AudioEncoderConfiguration from the media profile. */
  5516. RemoveAudioSourceConfiguration(request *RemoveAudioSourceConfiguration) (*RemoveAudioSourceConfigurationResponse, error)
  5517. RemoveAudioSourceConfigurationContext(ctx context.Context, request *RemoveAudioSourceConfiguration) (*RemoveAudioSourceConfigurationResponse, error)
  5518. /* This operation adds a PTZConfiguration to an existing media profile. If a configuration exists
  5519. in the media profile, it will be replaced. The change shall be persistent. Adding a PTZConfiguration to a media profile means that streams using that media profile can
  5520. contain PTZ status (in the metadata), and that the media profile can be used for controlling
  5521. PTZ movement. */
  5522. AddPTZConfiguration(request *AddPTZConfiguration) (*AddPTZConfigurationResponse, error)
  5523. AddPTZConfigurationContext(ctx context.Context, request *AddPTZConfiguration) (*AddPTZConfigurationResponse, error)
  5524. /* This operation removes a PTZConfiguration from an existing media profile. If the media profile
  5525. does not contain a PTZConfiguration, the operation has no effect. The removal shall be persistent. */
  5526. RemovePTZConfiguration(request *RemovePTZConfiguration) (*RemovePTZConfigurationResponse, error)
  5527. RemovePTZConfigurationContext(ctx context.Context, request *RemovePTZConfiguration) (*RemovePTZConfigurationResponse, error)
  5528. /* This operation adds a VideoAnalytics configuration to an existing media profile. If a
  5529. configuration exists in the media profile, it will be replaced. The change shall be persistent. Adding a VideoAnalyticsConfiguration to a media profile means that streams using that media
  5530. profile can contain video analytics data (in the metadata) as defined by the submitted configuration reference. A profile containing only a video analytics configuration but no video source configuration is incomplete. Therefore, a client should first add a video source configuration to a profile before adding a video analytics configuration. The device can deny adding of a video analytics
  5531. configuration before a video source configuration. */
  5532. AddVideoAnalyticsConfiguration(request *AddVideoAnalyticsConfiguration) (*AddVideoAnalyticsConfigurationResponse, error)
  5533. AddVideoAnalyticsConfigurationContext(ctx context.Context, request *AddVideoAnalyticsConfiguration) (*AddVideoAnalyticsConfigurationResponse, error)
  5534. /* This operation removes a VideoAnalyticsConfiguration from an existing media profile. If the media profile does not contain a VideoAnalyticsConfiguration, the operation has no effect.
  5535. The removal shall be persistent. */
  5536. RemoveVideoAnalyticsConfiguration(request *RemoveVideoAnalyticsConfiguration) (*RemoveVideoAnalyticsConfigurationResponse, error)
  5537. RemoveVideoAnalyticsConfigurationContext(ctx context.Context, request *RemoveVideoAnalyticsConfiguration) (*RemoveVideoAnalyticsConfigurationResponse, error)
  5538. /* This operation adds a Metadata configuration to an existing media profile. If a configuration exists in the media profile, it will be replaced. The change shall be persistent. Adding a MetadataConfiguration to a Profile means that streams using that profile contain metadata. Metadata can consist of events, PTZ status, and/or video analytics data. */
  5539. AddMetadataConfiguration(request *AddMetadataConfiguration) (*AddMetadataConfigurationResponse, error)
  5540. AddMetadataConfigurationContext(ctx context.Context, request *AddMetadataConfiguration) (*AddMetadataConfigurationResponse, error)
  5541. /* This operation removes a MetadataConfiguration from an existing media profile. If the media profile does not contain a MetadataConfiguration, the operation has no effect. The removal shall be persistent. */
  5542. RemoveMetadataConfiguration(request *RemoveMetadataConfiguration) (*RemoveMetadataConfigurationResponse, error)
  5543. RemoveMetadataConfigurationContext(ctx context.Context, request *RemoveMetadataConfiguration) (*RemoveMetadataConfigurationResponse, error)
  5544. /* This operation adds an AudioOutputConfiguration to an existing media profile. If a configuration exists in the media profile, it will be replaced. The change shall be persistent. */
  5545. AddAudioOutputConfiguration(request *AddAudioOutputConfiguration) (*AddAudioOutputConfigurationResponse, error)
  5546. AddAudioOutputConfigurationContext(ctx context.Context, request *AddAudioOutputConfiguration) (*AddAudioOutputConfigurationResponse, error)
  5547. /* This operation removes an AudioOutputConfiguration from an existing media profile. If the media profile does not contain an AudioOutputConfiguration, the operation has no effect. The removal shall be persistent. */
  5548. RemoveAudioOutputConfiguration(request *RemoveAudioOutputConfiguration) (*RemoveAudioOutputConfigurationResponse, error)
  5549. RemoveAudioOutputConfigurationContext(ctx context.Context, request *RemoveAudioOutputConfiguration) (*RemoveAudioOutputConfigurationResponse, error)
  5550. /* This operation adds an AudioDecoderConfiguration to an existing media profile. If a configuration exists in the media profile, it shall be replaced. The change shall be persistent. */
  5551. AddAudioDecoderConfiguration(request *AddAudioDecoderConfiguration) (*AddAudioDecoderConfigurationResponse, error)
  5552. AddAudioDecoderConfigurationContext(ctx context.Context, request *AddAudioDecoderConfiguration) (*AddAudioDecoderConfigurationResponse, error)
  5553. /* This operation removes an AudioDecoderConfiguration from an existing media profile. If the media profile does not contain an AudioDecoderConfiguration, the operation has no effect. The removal shall be persistent. */
  5554. RemoveAudioDecoderConfiguration(request *RemoveAudioDecoderConfiguration) (*RemoveAudioDecoderConfigurationResponse, error)
  5555. RemoveAudioDecoderConfigurationContext(ctx context.Context, request *RemoveAudioDecoderConfiguration) (*RemoveAudioDecoderConfigurationResponse, error)
  5556. /* This operation deletes a profile. This change shall always be persistent. Deletion of a profile is only possible for non-fixed profiles */
  5557. DeleteProfile(request *DeleteProfile) (*DeleteProfileResponse, error)
  5558. DeleteProfileContext(ctx context.Context, request *DeleteProfile) (*DeleteProfileResponse, error)
  5559. /* This operation lists all existing video source configurations for a device. The client need not know anything about the video source configurations in order to use the command. */
  5560. GetVideoSourceConfigurations(request *GetVideoSourceConfigurations) (*GetVideoSourceConfigurationsResponse, error)
  5561. GetVideoSourceConfigurationsContext(ctx context.Context, request *GetVideoSourceConfigurations) (*GetVideoSourceConfigurationsResponse, error)
  5562. /* This operation lists all existing video encoder configurations of a device. This command lists all configured video encoder configurations in a device. The client need not know anything apriori about the video encoder configurations in order to use the command. */
  5563. GetVideoEncoderConfigurations(request *GetVideoEncoderConfigurations) (*GetVideoEncoderConfigurationsResponse, error)
  5564. GetVideoEncoderConfigurationsContext(ctx context.Context, request *GetVideoEncoderConfigurations) (*GetVideoEncoderConfigurationsResponse, error)
  5565. /* This operation lists all existing audio source configurations of a device. This command lists all audio source configurations in a device. The client need not know anything apriori about the audio source configurations in order to use the command. */
  5566. GetAudioSourceConfigurations(request *GetAudioSourceConfigurations) (*GetAudioSourceConfigurationsResponse, error)
  5567. GetAudioSourceConfigurationsContext(ctx context.Context, request *GetAudioSourceConfigurations) (*GetAudioSourceConfigurationsResponse, error)
  5568. /* This operation lists all existing device audio encoder configurations. The client need not know anything apriori about the audio encoder configurations in order to use the command. */
  5569. GetAudioEncoderConfigurations(request *GetAudioEncoderConfigurations) (*GetAudioEncoderConfigurationsResponse, error)
  5570. GetAudioEncoderConfigurationsContext(ctx context.Context, request *GetAudioEncoderConfigurations) (*GetAudioEncoderConfigurationsResponse, error)
  5571. /* This operation lists all video analytics configurations of a device. This command lists all configured video analytics in a device. The client need not know anything apriori about the video analytics in order to use the command. */
  5572. GetVideoAnalyticsConfigurations(request *GetVideoAnalyticsConfigurations) (*GetVideoAnalyticsConfigurationsResponse, error)
  5573. GetVideoAnalyticsConfigurationsContext(ctx context.Context, request *GetVideoAnalyticsConfigurations) (*GetVideoAnalyticsConfigurationsResponse, error)
  5574. /* This operation lists all existing metadata configurations. The client need not know anything apriori about the metadata in order to use the command. */
  5575. GetMetadataConfigurations(request *GetMetadataConfigurations) (*GetMetadataConfigurationsResponse, error)
  5576. GetMetadataConfigurationsContext(ctx context.Context, request *GetMetadataConfigurations) (*GetMetadataConfigurationsResponse, error)
  5577. /* This command lists all existing AudioOutputConfigurations of a device. The NVC need not know anything apriori about the audio configurations to use this command. */
  5578. GetAudioOutputConfigurations(request *GetAudioOutputConfigurations) (*GetAudioOutputConfigurationsResponse, error)
  5579. GetAudioOutputConfigurationsContext(ctx context.Context, request *GetAudioOutputConfigurations) (*GetAudioOutputConfigurationsResponse, error)
  5580. /* This command lists all existing AudioDecoderConfigurations of a device. The NVC need not know anything apriori about the audio decoder configurations in order to
  5581. use this command. */
  5582. GetAudioDecoderConfigurations(request *GetAudioDecoderConfigurations) (*GetAudioDecoderConfigurationsResponse, error)
  5583. GetAudioDecoderConfigurationsContext(ctx context.Context, request *GetAudioDecoderConfigurations) (*GetAudioDecoderConfigurationsResponse, error)
  5584. /* If the video source configuration token is already known, the video source configuration can be fetched through the GetVideoSourceConfiguration command. */
  5585. GetVideoSourceConfiguration(request *GetVideoSourceConfiguration) (*GetVideoSourceConfigurationResponse, error)
  5586. GetVideoSourceConfigurationContext(ctx context.Context, request *GetVideoSourceConfiguration) (*GetVideoSourceConfigurationResponse, error)
  5587. /* If the video encoder configuration token is already known, the encoder configuration can be fetched through the GetVideoEncoderConfiguration command. */
  5588. GetVideoEncoderConfiguration(request *GetVideoEncoderConfiguration) (*GetVideoEncoderConfigurationResponse, error)
  5589. GetVideoEncoderConfigurationContext(ctx context.Context, request *GetVideoEncoderConfiguration) (*GetVideoEncoderConfigurationResponse, error)
  5590. /* The GetAudioSourceConfiguration command fetches the audio source configurations if the audio source configuration token is already known. An */
  5591. GetAudioSourceConfiguration(request *GetAudioSourceConfiguration) (*GetAudioSourceConfigurationResponse, error)
  5592. GetAudioSourceConfigurationContext(ctx context.Context, request *GetAudioSourceConfiguration) (*GetAudioSourceConfigurationResponse, error)
  5593. /* The GetAudioEncoderConfiguration command fetches the encoder configuration if the audio encoder configuration token is known. */
  5594. GetAudioEncoderConfiguration(request *GetAudioEncoderConfiguration) (*GetAudioEncoderConfigurationResponse, error)
  5595. GetAudioEncoderConfigurationContext(ctx context.Context, request *GetAudioEncoderConfiguration) (*GetAudioEncoderConfigurationResponse, error)
  5596. /* The GetVideoAnalyticsConfiguration command fetches the video analytics configuration if the video analytics token is known. */
  5597. GetVideoAnalyticsConfiguration(request *GetVideoAnalyticsConfiguration) (*GetVideoAnalyticsConfigurationResponse, error)
  5598. GetVideoAnalyticsConfigurationContext(ctx context.Context, request *GetVideoAnalyticsConfiguration) (*GetVideoAnalyticsConfigurationResponse, error)
  5599. /* The GetMetadataConfiguration command fetches the metadata configuration if the metadata token is known. */
  5600. GetMetadataConfiguration(request *GetMetadataConfiguration) (*GetMetadataConfigurationResponse, error)
  5601. GetMetadataConfigurationContext(ctx context.Context, request *GetMetadataConfiguration) (*GetMetadataConfigurationResponse, error)
  5602. /* If the audio output configuration token is already known, the output configuration can be fetched through the GetAudioOutputConfiguration command. */
  5603. GetAudioOutputConfiguration(request *GetAudioOutputConfiguration) (*GetAudioOutputConfigurationResponse, error)
  5604. GetAudioOutputConfigurationContext(ctx context.Context, request *GetAudioOutputConfiguration) (*GetAudioOutputConfigurationResponse, error)
  5605. /* If the audio decoder configuration token is already known, the decoder configuration can be fetched through the GetAudioDecoderConfiguration command. */
  5606. GetAudioDecoderConfiguration(request *GetAudioDecoderConfiguration) (*GetAudioDecoderConfigurationResponse, error)
  5607. GetAudioDecoderConfigurationContext(ctx context.Context, request *GetAudioDecoderConfiguration) (*GetAudioDecoderConfigurationResponse, error)
  5608. /* This operation lists all the video encoder configurations of the device that are compatible with a certain media profile. Each of the returned configurations shall be a valid input parameter for the AddVideoEncoderConfiguration command on the media profile. The result will vary depending on the capabilities, configurations and settings in the device. */
  5609. GetCompatibleVideoEncoderConfigurations(request *GetCompatibleVideoEncoderConfigurations) (*GetCompatibleVideoEncoderConfigurationsResponse, error)
  5610. GetCompatibleVideoEncoderConfigurationsContext(ctx context.Context, request *GetCompatibleVideoEncoderConfigurations) (*GetCompatibleVideoEncoderConfigurationsResponse, error)
  5611. /* This operation requests all the video source configurations of the device that are compatible
  5612. with a certain media profile. Each of the returned configurations shall be a valid input
  5613. parameter for the AddVideoSourceConfiguration command on the media profile. The result
  5614. will vary depending on the capabilities, configurations and settings in the device. */
  5615. GetCompatibleVideoSourceConfigurations(request *GetCompatibleVideoSourceConfigurations) (*GetCompatibleVideoSourceConfigurationsResponse, error)
  5616. GetCompatibleVideoSourceConfigurationsContext(ctx context.Context, request *GetCompatibleVideoSourceConfigurations) (*GetCompatibleVideoSourceConfigurationsResponse, error)
  5617. /* This operation requests all audio encoder configurations of a device that are compatible with a certain media profile. Each of the returned configurations shall be a valid input parameter for the AddAudioSourceConfiguration command on the media profile. The result varies depending on the capabilities, configurations and settings in the device. */
  5618. GetCompatibleAudioEncoderConfigurations(request *GetCompatibleAudioEncoderConfigurations) (*GetCompatibleAudioEncoderConfigurationsResponse, error)
  5619. GetCompatibleAudioEncoderConfigurationsContext(ctx context.Context, request *GetCompatibleAudioEncoderConfigurations) (*GetCompatibleAudioEncoderConfigurationsResponse, error)
  5620. /* This operation requests all audio source configurations of the device that are compatible with a certain media profile. Each of the returned configurations shall be a valid input parameter for the AddAudioEncoderConfiguration command on the media profile. The result varies depending on the capabilities, configurations and settings in the device. */
  5621. GetCompatibleAudioSourceConfigurations(request *GetCompatibleAudioSourceConfigurations) (*GetCompatibleAudioSourceConfigurationsResponse, error)
  5622. GetCompatibleAudioSourceConfigurationsContext(ctx context.Context, request *GetCompatibleAudioSourceConfigurations) (*GetCompatibleAudioSourceConfigurationsResponse, error)
  5623. /* This operation requests all video analytic configurations of the device that are compatible with a certain media profile. Each of the returned configurations shall be a valid input parameter for the AddVideoAnalyticsConfiguration command on the media profile. The result varies depending on the capabilities, configurations and settings in the device. */
  5624. GetCompatibleVideoAnalyticsConfigurations(request *GetCompatibleVideoAnalyticsConfigurations) (*GetCompatibleVideoAnalyticsConfigurationsResponse, error)
  5625. GetCompatibleVideoAnalyticsConfigurationsContext(ctx context.Context, request *GetCompatibleVideoAnalyticsConfigurations) (*GetCompatibleVideoAnalyticsConfigurationsResponse, error)
  5626. /* This operation requests all the metadata configurations of the device that are compatible with a certain media profile. Each of the returned configurations shall be a valid input parameter for the AddMetadataConfiguration command on the media profile. The result varies depending on the capabilities, configurations and settings in the device. */
  5627. GetCompatibleMetadataConfigurations(request *GetCompatibleMetadataConfigurations) (*GetCompatibleMetadataConfigurationsResponse, error)
  5628. GetCompatibleMetadataConfigurationsContext(ctx context.Context, request *GetCompatibleMetadataConfigurations) (*GetCompatibleMetadataConfigurationsResponse, error)
  5629. /* This command lists all audio output configurations of a device that are compatible with a certain media profile. Each returned configuration shall be a valid input for the
  5630. AddAudioOutputConfiguration command. */
  5631. GetCompatibleAudioOutputConfigurations(request *GetCompatibleAudioOutputConfigurations) (*GetCompatibleAudioOutputConfigurationsResponse, error)
  5632. GetCompatibleAudioOutputConfigurationsContext(ctx context.Context, request *GetCompatibleAudioOutputConfigurations) (*GetCompatibleAudioOutputConfigurationsResponse, error)
  5633. /* This operation lists all the audio decoder configurations of the device that are compatible with a certain media profile. Each of the returned configurations shall be a valid input parameter for the AddAudioDecoderConfiguration command on the media profile. */
  5634. GetCompatibleAudioDecoderConfigurations(request *GetCompatibleAudioDecoderConfigurations) (*GetCompatibleAudioDecoderConfigurationsResponse, error)
  5635. GetCompatibleAudioDecoderConfigurationsContext(ctx context.Context, request *GetCompatibleAudioDecoderConfigurations) (*GetCompatibleAudioDecoderConfigurationsResponse, error)
  5636. /* This operation modifies a video source configuration. The ForcePersistence flag indicates if the changes shall remain after reboot of the device. Running streams using this configuration may be immediately updated according to the new settings. The changes are not guaranteed to take effect unless the client requests a new stream URI and restarts any affected stream. NVC methods for changing a running stream are out of scope for this specification. */
  5637. SetVideoSourceConfiguration(request *SetVideoSourceConfiguration) (*SetVideoSourceConfigurationResponse, error)
  5638. SetVideoSourceConfigurationContext(ctx context.Context, request *SetVideoSourceConfiguration) (*SetVideoSourceConfigurationResponse, error)
  5639. /* This operation modifies a video encoder configuration. The ForcePersistence flag indicates if the changes shall remain after reboot of the device. Changes in the Multicast settings shall always be persistent. Running streams using this configuration may be immediately updated according to the new settings. The changes are not guaranteed to take effect unless the client requests a new stream URI and restarts any affected stream. NVC methods for changing a running stream are out of scope for this specification. SessionTimeout is provided as a hint for keeping rtsp session by a device. If necessary the device may adapt parameter values for SessionTimeout elements without returning an error. For the time between keep alive calls the client shall adhere to the timeout value signaled via RTSP. */
  5640. SetVideoEncoderConfiguration(request *SetVideoEncoderConfiguration) (*SetVideoEncoderConfigurationResponse, error)
  5641. SetVideoEncoderConfigurationContext(ctx context.Context, request *SetVideoEncoderConfiguration) (*SetVideoEncoderConfigurationResponse, error)
  5642. /* This operation modifies an audio source configuration. The ForcePersistence flag indicates if
  5643. the changes shall remain after reboot of the device. Running streams using this configuration
  5644. may be immediately updated according to the new settings. The changes are not guaranteed
  5645. to take effect unless the client requests a new stream URI and restarts any affected stream
  5646. NVC methods for changing a running stream are out of scope for this specification. */
  5647. SetAudioSourceConfiguration(request *SetAudioSourceConfiguration) (*SetAudioSourceConfigurationResponse, error)
  5648. SetAudioSourceConfigurationContext(ctx context.Context, request *SetAudioSourceConfiguration) (*SetAudioSourceConfigurationResponse, error)
  5649. /* This operation modifies an audio encoder configuration. The ForcePersistence flag indicates if
  5650. the changes shall remain after reboot of the device. Running streams using this configuration may be immediately updated
  5651. according to the new settings. The changes are not guaranteed to take effect unless the client
  5652. requests a new stream URI and restarts any affected streams. NVC methods for changing a
  5653. running stream are out of scope for this specification. */
  5654. SetAudioEncoderConfiguration(request *SetAudioEncoderConfiguration) (*SetAudioEncoderConfigurationResponse, error)
  5655. SetAudioEncoderConfigurationContext(ctx context.Context, request *SetAudioEncoderConfiguration) (*SetAudioEncoderConfigurationResponse, error)
  5656. /* A video analytics configuration is modified using this command. The ForcePersistence flag
  5657. indicates if the changes shall remain after reboot of the device or not. Running streams using
  5658. this configuration shall be immediately updated according to the new settings. Otherwise
  5659. inconsistencies can occur between the scene description processed by the rule engine and
  5660. the notifications produced by analytics engine and rule engine which reference the very same
  5661. video analytics configuration token. */
  5662. SetVideoAnalyticsConfiguration(request *SetVideoAnalyticsConfiguration) (*SetVideoAnalyticsConfigurationResponse, error)
  5663. SetVideoAnalyticsConfigurationContext(ctx context.Context, request *SetVideoAnalyticsConfiguration) (*SetVideoAnalyticsConfigurationResponse, error)
  5664. /* This operation modifies a metadata configuration. The ForcePersistence flag indicates if the
  5665. changes shall remain after reboot of the device. Changes in the Multicast settings shall
  5666. always be persistent. Running streams using this configuration may be updated immediately
  5667. according to the new settings. The changes are not guaranteed to take effect unless the client
  5668. requests a new stream URI and restarts any affected streams. NVC methods for changing a
  5669. running stream are out of scope for this specification. */
  5670. SetMetadataConfiguration(request *SetMetadataConfiguration) (*SetMetadataConfigurationResponse, error)
  5671. SetMetadataConfigurationContext(ctx context.Context, request *SetMetadataConfiguration) (*SetMetadataConfigurationResponse, error)
  5672. /* This operation modifies an audio output configuration. The ForcePersistence flag indicates if
  5673. the changes shall remain after reboot of the device. */
  5674. SetAudioOutputConfiguration(request *SetAudioOutputConfiguration) (*SetAudioOutputConfigurationResponse, error)
  5675. SetAudioOutputConfigurationContext(ctx context.Context, request *SetAudioOutputConfiguration) (*SetAudioOutputConfigurationResponse, error)
  5676. /* This operation modifies an audio decoder configuration. The ForcePersistence flag indicates if
  5677. the changes shall remain after reboot of the device. */
  5678. SetAudioDecoderConfiguration(request *SetAudioDecoderConfiguration) (*SetAudioDecoderConfigurationResponse, error)
  5679. SetAudioDecoderConfigurationContext(ctx context.Context, request *SetAudioDecoderConfiguration) (*SetAudioDecoderConfigurationResponse, error)
  5680. /* This operation returns the available options (supported values and ranges for video source configuration parameters) when the video source parameters are
  5681. reconfigured If a video source configuration is specified, the options shall concern that
  5682. particular configuration. If a media profile is specified, the options shall be compatible with
  5683. that media profile. */
  5684. GetVideoSourceConfigurationOptions(request *GetVideoSourceConfigurationOptions) (*GetVideoSourceConfigurationOptionsResponse, error)
  5685. GetVideoSourceConfigurationOptionsContext(ctx context.Context, request *GetVideoSourceConfigurationOptions) (*GetVideoSourceConfigurationOptionsResponse, error)
  5686. /* This operation returns the available options (supported values and ranges for video encoder
  5687. configuration parameters) when the video encoder parameters are reconfigured.
  5688. For JPEG, MPEG4 and H264 extension elements have been defined that provide additional information. A device must provide the
  5689. XxxOption information for all encodings supported and should additionally provide the corresponding XxxOption2 information.
  5690. This response contains the available video encoder configuration options. If a video encoder configuration is specified,
  5691. the options shall concern that particular configuration. If a media profile is specified, the options shall be
  5692. compatible with that media profile. If no tokens are specified, the options shall be considered generic for the device.
  5693. */
  5694. GetVideoEncoderConfigurationOptions(request *GetVideoEncoderConfigurationOptions) (*GetVideoEncoderConfigurationOptionsResponse, error)
  5695. GetVideoEncoderConfigurationOptionsContext(ctx context.Context, request *GetVideoEncoderConfigurationOptions) (*GetVideoEncoderConfigurationOptionsResponse, error)
  5696. /* This operation returns the available options (supported values and ranges for audio source configuration parameters) when the audio source parameters are
  5697. reconfigured. If an audio source configuration is specified, the options shall concern that
  5698. particular configuration. If a media profile is specified, the options shall be compatible with
  5699. that media profile. */
  5700. GetAudioSourceConfigurationOptions(request *GetAudioSourceConfigurationOptions) (*GetAudioSourceConfigurationOptionsResponse, error)
  5701. GetAudioSourceConfigurationOptionsContext(ctx context.Context, request *GetAudioSourceConfigurationOptions) (*GetAudioSourceConfigurationOptionsResponse, error)
  5702. /* This operation returns the available options (supported values and ranges for audio encoder configuration parameters) when the audio encoder parameters are
  5703. reconfigured. */
  5704. GetAudioEncoderConfigurationOptions(request *GetAudioEncoderConfigurationOptions) (*GetAudioEncoderConfigurationOptionsResponse, error)
  5705. GetAudioEncoderConfigurationOptionsContext(ctx context.Context, request *GetAudioEncoderConfigurationOptions) (*GetAudioEncoderConfigurationOptionsResponse, error)
  5706. /* This operation returns the available options (supported values and ranges for metadata configuration parameters) for changing the metadata configuration. */
  5707. GetMetadataConfigurationOptions(request *GetMetadataConfigurationOptions) (*GetMetadataConfigurationOptionsResponse, error)
  5708. GetMetadataConfigurationOptionsContext(ctx context.Context, request *GetMetadataConfigurationOptions) (*GetMetadataConfigurationOptionsResponse, error)
  5709. /* This operation returns the available options (supported values and ranges for audio output configuration parameters) for configuring an audio output. */
  5710. GetAudioOutputConfigurationOptions(request *GetAudioOutputConfigurationOptions) (*GetAudioOutputConfigurationOptionsResponse, error)
  5711. GetAudioOutputConfigurationOptionsContext(ctx context.Context, request *GetAudioOutputConfigurationOptions) (*GetAudioOutputConfigurationOptionsResponse, error)
  5712. /* This command list the audio decoding capabilities for a given profile and configuration of a
  5713. device. */
  5714. GetAudioDecoderConfigurationOptions(request *GetAudioDecoderConfigurationOptions) (*GetAudioDecoderConfigurationOptionsResponse, error)
  5715. GetAudioDecoderConfigurationOptionsContext(ctx context.Context, request *GetAudioDecoderConfigurationOptions) (*GetAudioDecoderConfigurationOptionsResponse, error)
  5716. /* The GetGuaranteedNumberOfVideoEncoderInstances command can be used to request the
  5717. minimum number of guaranteed video encoder instances (applications) per Video Source
  5718. Configuration. */
  5719. GetGuaranteedNumberOfVideoEncoderInstances(request *GetGuaranteedNumberOfVideoEncoderInstances) (*GetGuaranteedNumberOfVideoEncoderInstancesResponse, error)
  5720. GetGuaranteedNumberOfVideoEncoderInstancesContext(ctx context.Context, request *GetGuaranteedNumberOfVideoEncoderInstances) (*GetGuaranteedNumberOfVideoEncoderInstancesResponse, error)
  5721. /* This operation requests a URI that can be used to initiate a live media stream using RTSP as
  5722. the control protocol. The returned URI shall remain valid indefinitely even if the profile is
  5723. changed. The ValidUntilConnect, ValidUntilReboot and Timeout Parameter shall be set
  5724. accordingly (ValidUntilConnect=false, ValidUntilReboot=false, timeout=PT0S).
  5725. The correct syntax for the StreamSetup element for these media stream setups defined in 5.1.1 of the streaming specification are as follows:
  5726. If a multicast stream is requested at least one of VideoEncoderConfiguration, AudioEncoderConfiguration and MetadataConfiguration shall have a valid multicast setting.
  5727. For full compatibility with other ONVIF services a device should not generate Uris longer than
  5728. 128 octets. */
  5729. GetStreamUri(request *GetStreamUri) (*GetStreamUriResponse, error)
  5730. GetStreamUriContext(ctx context.Context, request *GetStreamUri) (*GetStreamUriResponse, error)
  5731. /* This command starts multicast streaming using a specified media profile of a device.
  5732. Streaming continues until StopMulticastStreaming is called for the same Profile. The
  5733. streaming shall continue after a reboot of the device until a StopMulticastStreaming request is
  5734. received. The multicast address, port and TTL are configured in the
  5735. VideoEncoderConfiguration, AudioEncoderConfiguration and MetadataConfiguration
  5736. respectively. */
  5737. StartMulticastStreaming(request *StartMulticastStreaming) (*StartMulticastStreamingResponse, error)
  5738. StartMulticastStreamingContext(ctx context.Context, request *StartMulticastStreaming) (*StartMulticastStreamingResponse, error)
  5739. /* This command stop multicast streaming using a specified media profile of a device */
  5740. StopMulticastStreaming(request *StopMulticastStreaming) (*StopMulticastStreamingResponse, error)
  5741. StopMulticastStreamingContext(ctx context.Context, request *StopMulticastStreaming) (*StopMulticastStreamingResponse, error)
  5742. /* Synchronization points allow clients to decode and correctly use all data after the
  5743. synchronization point.
  5744. For example, if a video stream is configured with a large I-frame distance and a client loses a
  5745. single packet, the client does not display video until the next I-frame is transmitted. In such
  5746. cases, the client can request a Synchronization Point which enforces the device to add an I-Frame as soon as possible. Clients can request Synchronization Points for profiles. The device
  5747. shall add synchronization points for all streams associated with this profile.
  5748. Similarly, a synchronization point is used to get an update on full PTZ or event status through
  5749. the metadata stream.
  5750. If a video stream is associated with the profile, an I-frame shall be added to this video stream.
  5751. If a PTZ metadata stream is associated to the profile,
  5752. the PTZ position shall be repeated within the metadata stream. */
  5753. SetSynchronizationPoint(request *SetSynchronizationPoint) (*SetSynchronizationPointResponse, error)
  5754. SetSynchronizationPointContext(ctx context.Context, request *SetSynchronizationPoint) (*SetSynchronizationPointResponse, error)
  5755. /* A client uses the GetSnapshotUri command to obtain a JPEG snapshot from the
  5756. device. The returned URI shall remain valid indefinitely even if the profile is changed. The
  5757. ValidUntilConnect, ValidUntilReboot and Timeout Parameter shall be set accordingly
  5758. (ValidUntilConnect=false, ValidUntilReboot=false, timeout=PT0S). The URI can be used for
  5759. acquiring a JPEG image through a HTTP GET operation. The image encoding will always be
  5760. JPEG regardless of the encoding setting in the media profile. The Jpeg settings
  5761. (like resolution or quality) may be taken from the profile if suitable. The provided
  5762. image will be updated automatically and independent from calls to GetSnapshotUri. */
  5763. GetSnapshotUri(request *GetSnapshotUri) (*GetSnapshotUriResponse, error)
  5764. GetSnapshotUriContext(ctx context.Context, request *GetSnapshotUri) (*GetSnapshotUriResponse, error)
  5765. /* A device returns the information for current video source mode and settable video source modes of specified video source. A device that indicates a capability of VideoSourceModes shall support this command. */
  5766. GetVideoSourceModes(request *GetVideoSourceModes) (*GetVideoSourceModesResponse, error)
  5767. GetVideoSourceModesContext(ctx context.Context, request *GetVideoSourceModes) (*GetVideoSourceModesResponse, error)
  5768. /* SetVideoSourceMode changes the media profile structure relating to video source for the specified video source mode. A device that indicates a capability of VideoSourceModes shall support this command. The behavior after changing the mode is not defined in this specification. */
  5769. SetVideoSourceMode(request *SetVideoSourceMode) (*SetVideoSourceModeResponse, error)
  5770. SetVideoSourceModeContext(ctx context.Context, request *SetVideoSourceMode) (*SetVideoSourceModeResponse, error)
  5771. /* Get the OSDs. */
  5772. GetOSDs(request *GetOSDs) (*GetOSDsResponse, error)
  5773. GetOSDsContext(ctx context.Context, request *GetOSDs) (*GetOSDsResponse, error)
  5774. /* Get the OSD. */
  5775. GetOSD(request *GetOSD) (*GetOSDResponse, error)
  5776. GetOSDContext(ctx context.Context, request *GetOSD) (*GetOSDResponse, error)
  5777. /* Get the OSD Options. */
  5778. GetOSDOptions(request *GetOSDOptions) (*GetOSDOptionsResponse, error)
  5779. GetOSDOptionsContext(ctx context.Context, request *GetOSDOptions) (*GetOSDOptionsResponse, error)
  5780. /* Set the OSD */
  5781. SetOSD(request *SetOSD) (*SetOSDResponse, error)
  5782. SetOSDContext(ctx context.Context, request *SetOSD) (*SetOSDResponse, error)
  5783. /* Create the OSD. */
  5784. CreateOSD(request *CreateOSD) (*CreateOSDResponse, error)
  5785. CreateOSDContext(ctx context.Context, request *CreateOSD) (*CreateOSDResponse, error)
  5786. /* Delete the OSD. */
  5787. DeleteOSD(request *DeleteOSD) (*DeleteOSDResponse, error)
  5788. DeleteOSDContext(ctx context.Context, request *DeleteOSD) (*DeleteOSDResponse, error)
  5789. }
  5790. // media type
  5791. type media struct {
  5792. client *soap.Client
  5793. xaddr string
  5794. }
  5795. func NewMedia(client *soap.Client, xaddr string) Media {
  5796. return &media{
  5797. client: client,
  5798. xaddr: xaddr,
  5799. }
  5800. }
  5801. func (service *media) GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
  5802. response := new(GetServiceCapabilitiesResponse)
  5803. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetServiceCapabilities", request, response)
  5804. if err != nil {
  5805. return nil, err
  5806. }
  5807. return response, nil
  5808. }
  5809. func (service *media) GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
  5810. return service.GetServiceCapabilitiesContext(
  5811. context.Background(),
  5812. request,
  5813. )
  5814. }
  5815. func (service *media) GetVideoSourcesContext(ctx context.Context, request *GetVideoSources) (*GetVideoSourcesResponse, error) {
  5816. response := new(GetVideoSourcesResponse)
  5817. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoSources", request, response)
  5818. if err != nil {
  5819. return nil, err
  5820. }
  5821. return response, nil
  5822. }
  5823. func (service *media) GetVideoSources(request *GetVideoSources) (*GetVideoSourcesResponse, error) {
  5824. return service.GetVideoSourcesContext(
  5825. context.Background(),
  5826. request,
  5827. )
  5828. }
  5829. func (service *media) GetAudioSourcesContext(ctx context.Context, request *GetAudioSources) (*GetAudioSourcesResponse, error) {
  5830. response := new(GetAudioSourcesResponse)
  5831. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioSources", request, response)
  5832. if err != nil {
  5833. return nil, err
  5834. }
  5835. return response, nil
  5836. }
  5837. func (service *media) GetAudioSources(request *GetAudioSources) (*GetAudioSourcesResponse, error) {
  5838. return service.GetAudioSourcesContext(
  5839. context.Background(),
  5840. request,
  5841. )
  5842. }
  5843. func (service *media) GetAudioOutputsContext(ctx context.Context, request *GetAudioOutputs) (*GetAudioOutputsResponse, error) {
  5844. response := new(GetAudioOutputsResponse)
  5845. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputs", request, response)
  5846. if err != nil {
  5847. return nil, err
  5848. }
  5849. return response, nil
  5850. }
  5851. func (service *media) GetAudioOutputs(request *GetAudioOutputs) (*GetAudioOutputsResponse, error) {
  5852. return service.GetAudioOutputsContext(
  5853. context.Background(),
  5854. request,
  5855. )
  5856. }
  5857. func (service *media) CreateProfileContext(ctx context.Context, request *CreateProfile) (*CreateProfileResponse, error) {
  5858. response := new(CreateProfileResponse)
  5859. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/CreateProfile", request, response)
  5860. if err != nil {
  5861. return nil, err
  5862. }
  5863. return response, nil
  5864. }
  5865. func (service *media) CreateProfile(request *CreateProfile) (*CreateProfileResponse, error) {
  5866. return service.CreateProfileContext(
  5867. context.Background(),
  5868. request,
  5869. )
  5870. }
  5871. func (service *media) GetProfileContext(ctx context.Context, request *GetProfile) (*GetProfileResponse, error) {
  5872. response := new(GetProfileResponse)
  5873. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetProfile", request, response)
  5874. if err != nil {
  5875. return nil, err
  5876. }
  5877. return response, nil
  5878. }
  5879. func (service *media) GetProfile(request *GetProfile) (*GetProfileResponse, error) {
  5880. return service.GetProfileContext(
  5881. context.Background(),
  5882. request,
  5883. )
  5884. }
  5885. func (service *media) GetProfilesContext(ctx context.Context, request *GetProfiles) (*GetProfilesResponse, error) {
  5886. response := new(GetProfilesResponse)
  5887. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetProfiles", request, response)
  5888. if err != nil {
  5889. return nil, err
  5890. }
  5891. return response, nil
  5892. }
  5893. func (service *media) GetProfiles(request *GetProfiles) (*GetProfilesResponse, error) {
  5894. return service.GetProfilesContext(
  5895. context.Background(),
  5896. request,
  5897. )
  5898. }
  5899. func (service *media) AddVideoEncoderConfigurationContext(ctx context.Context, request *AddVideoEncoderConfiguration) (*AddVideoEncoderConfigurationResponse, error) {
  5900. response := new(AddVideoEncoderConfigurationResponse)
  5901. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddVideoEncoderConfiguration", request, response)
  5902. if err != nil {
  5903. return nil, err
  5904. }
  5905. return response, nil
  5906. }
  5907. func (service *media) AddVideoEncoderConfiguration(request *AddVideoEncoderConfiguration) (*AddVideoEncoderConfigurationResponse, error) {
  5908. return service.AddVideoEncoderConfigurationContext(
  5909. context.Background(),
  5910. request,
  5911. )
  5912. }
  5913. func (service *media) RemoveVideoEncoderConfigurationContext(ctx context.Context, request *RemoveVideoEncoderConfiguration) (*RemoveVideoEncoderConfigurationResponse, error) {
  5914. response := new(RemoveVideoEncoderConfigurationResponse)
  5915. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveVideoEncoderConfiguration", request, response)
  5916. if err != nil {
  5917. return nil, err
  5918. }
  5919. return response, nil
  5920. }
  5921. func (service *media) RemoveVideoEncoderConfiguration(request *RemoveVideoEncoderConfiguration) (*RemoveVideoEncoderConfigurationResponse, error) {
  5922. return service.RemoveVideoEncoderConfigurationContext(
  5923. context.Background(),
  5924. request,
  5925. )
  5926. }
  5927. func (service *media) AddVideoSourceConfigurationContext(ctx context.Context, request *AddVideoSourceConfiguration) (*AddVideoSourceConfigurationResponse, error) {
  5928. response := new(AddVideoSourceConfigurationResponse)
  5929. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddVideoSourceConfiguration", request, response)
  5930. if err != nil {
  5931. return nil, err
  5932. }
  5933. return response, nil
  5934. }
  5935. func (service *media) AddVideoSourceConfiguration(request *AddVideoSourceConfiguration) (*AddVideoSourceConfigurationResponse, error) {
  5936. return service.AddVideoSourceConfigurationContext(
  5937. context.Background(),
  5938. request,
  5939. )
  5940. }
  5941. func (service *media) RemoveVideoSourceConfigurationContext(ctx context.Context, request *RemoveVideoSourceConfiguration) (*RemoveVideoSourceConfigurationResponse, error) {
  5942. response := new(RemoveVideoSourceConfigurationResponse)
  5943. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveVideoSourceConfiguration", request, response)
  5944. if err != nil {
  5945. return nil, err
  5946. }
  5947. return response, nil
  5948. }
  5949. func (service *media) RemoveVideoSourceConfiguration(request *RemoveVideoSourceConfiguration) (*RemoveVideoSourceConfigurationResponse, error) {
  5950. return service.RemoveVideoSourceConfigurationContext(
  5951. context.Background(),
  5952. request,
  5953. )
  5954. }
  5955. func (service *media) AddAudioEncoderConfigurationContext(ctx context.Context, request *AddAudioEncoderConfiguration) (*AddAudioEncoderConfigurationResponse, error) {
  5956. response := new(AddAudioEncoderConfigurationResponse)
  5957. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddAudioEncoderConfiguration", request, response)
  5958. if err != nil {
  5959. return nil, err
  5960. }
  5961. return response, nil
  5962. }
  5963. func (service *media) AddAudioEncoderConfiguration(request *AddAudioEncoderConfiguration) (*AddAudioEncoderConfigurationResponse, error) {
  5964. return service.AddAudioEncoderConfigurationContext(
  5965. context.Background(),
  5966. request,
  5967. )
  5968. }
  5969. func (service *media) RemoveAudioEncoderConfigurationContext(ctx context.Context, request *RemoveAudioEncoderConfiguration) (*RemoveAudioEncoderConfigurationResponse, error) {
  5970. response := new(RemoveAudioEncoderConfigurationResponse)
  5971. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveAudioEncoderConfiguration", request, response)
  5972. if err != nil {
  5973. return nil, err
  5974. }
  5975. return response, nil
  5976. }
  5977. func (service *media) RemoveAudioEncoderConfiguration(request *RemoveAudioEncoderConfiguration) (*RemoveAudioEncoderConfigurationResponse, error) {
  5978. return service.RemoveAudioEncoderConfigurationContext(
  5979. context.Background(),
  5980. request,
  5981. )
  5982. }
  5983. func (service *media) AddAudioSourceConfigurationContext(ctx context.Context, request *AddAudioSourceConfiguration) (*AddAudioSourceConfigurationResponse, error) {
  5984. response := new(AddAudioSourceConfigurationResponse)
  5985. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddAudioSourceConfiguration", request, response)
  5986. if err != nil {
  5987. return nil, err
  5988. }
  5989. return response, nil
  5990. }
  5991. func (service *media) AddAudioSourceConfiguration(request *AddAudioSourceConfiguration) (*AddAudioSourceConfigurationResponse, error) {
  5992. return service.AddAudioSourceConfigurationContext(
  5993. context.Background(),
  5994. request,
  5995. )
  5996. }
  5997. func (service *media) RemoveAudioSourceConfigurationContext(ctx context.Context, request *RemoveAudioSourceConfiguration) (*RemoveAudioSourceConfigurationResponse, error) {
  5998. response := new(RemoveAudioSourceConfigurationResponse)
  5999. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveAudioSourceConfiguration", request, response)
  6000. if err != nil {
  6001. return nil, err
  6002. }
  6003. return response, nil
  6004. }
  6005. func (service *media) RemoveAudioSourceConfiguration(request *RemoveAudioSourceConfiguration) (*RemoveAudioSourceConfigurationResponse, error) {
  6006. return service.RemoveAudioSourceConfigurationContext(
  6007. context.Background(),
  6008. request,
  6009. )
  6010. }
  6011. func (service *media) AddPTZConfigurationContext(ctx context.Context, request *AddPTZConfiguration) (*AddPTZConfigurationResponse, error) {
  6012. response := new(AddPTZConfigurationResponse)
  6013. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddPTZConfiguration", request, response)
  6014. if err != nil {
  6015. return nil, err
  6016. }
  6017. return response, nil
  6018. }
  6019. func (service *media) AddPTZConfiguration(request *AddPTZConfiguration) (*AddPTZConfigurationResponse, error) {
  6020. return service.AddPTZConfigurationContext(
  6021. context.Background(),
  6022. request,
  6023. )
  6024. }
  6025. func (service *media) RemovePTZConfigurationContext(ctx context.Context, request *RemovePTZConfiguration) (*RemovePTZConfigurationResponse, error) {
  6026. response := new(RemovePTZConfigurationResponse)
  6027. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemovePTZConfiguration", request, response)
  6028. if err != nil {
  6029. return nil, err
  6030. }
  6031. return response, nil
  6032. }
  6033. func (service *media) RemovePTZConfiguration(request *RemovePTZConfiguration) (*RemovePTZConfigurationResponse, error) {
  6034. return service.RemovePTZConfigurationContext(
  6035. context.Background(),
  6036. request,
  6037. )
  6038. }
  6039. func (service *media) AddVideoAnalyticsConfigurationContext(ctx context.Context, request *AddVideoAnalyticsConfiguration) (*AddVideoAnalyticsConfigurationResponse, error) {
  6040. response := new(AddVideoAnalyticsConfigurationResponse)
  6041. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddVideoAnalyticsConfiguration", request, response)
  6042. if err != nil {
  6043. return nil, err
  6044. }
  6045. return response, nil
  6046. }
  6047. func (service *media) AddVideoAnalyticsConfiguration(request *AddVideoAnalyticsConfiguration) (*AddVideoAnalyticsConfigurationResponse, error) {
  6048. return service.AddVideoAnalyticsConfigurationContext(
  6049. context.Background(),
  6050. request,
  6051. )
  6052. }
  6053. func (service *media) RemoveVideoAnalyticsConfigurationContext(ctx context.Context, request *RemoveVideoAnalyticsConfiguration) (*RemoveVideoAnalyticsConfigurationResponse, error) {
  6054. response := new(RemoveVideoAnalyticsConfigurationResponse)
  6055. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveVideoAnalyticsConfiguration", request, response)
  6056. if err != nil {
  6057. return nil, err
  6058. }
  6059. return response, nil
  6060. }
  6061. func (service *media) RemoveVideoAnalyticsConfiguration(request *RemoveVideoAnalyticsConfiguration) (*RemoveVideoAnalyticsConfigurationResponse, error) {
  6062. return service.RemoveVideoAnalyticsConfigurationContext(
  6063. context.Background(),
  6064. request,
  6065. )
  6066. }
  6067. func (service *media) AddMetadataConfigurationContext(ctx context.Context, request *AddMetadataConfiguration) (*AddMetadataConfigurationResponse, error) {
  6068. response := new(AddMetadataConfigurationResponse)
  6069. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddMetadataConfiguration", request, response)
  6070. if err != nil {
  6071. return nil, err
  6072. }
  6073. return response, nil
  6074. }
  6075. func (service *media) AddMetadataConfiguration(request *AddMetadataConfiguration) (*AddMetadataConfigurationResponse, error) {
  6076. return service.AddMetadataConfigurationContext(
  6077. context.Background(),
  6078. request,
  6079. )
  6080. }
  6081. func (service *media) RemoveMetadataConfigurationContext(ctx context.Context, request *RemoveMetadataConfiguration) (*RemoveMetadataConfigurationResponse, error) {
  6082. response := new(RemoveMetadataConfigurationResponse)
  6083. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveMetadataConfiguration", request, response)
  6084. if err != nil {
  6085. return nil, err
  6086. }
  6087. return response, nil
  6088. }
  6089. func (service *media) RemoveMetadataConfiguration(request *RemoveMetadataConfiguration) (*RemoveMetadataConfigurationResponse, error) {
  6090. return service.RemoveMetadataConfigurationContext(
  6091. context.Background(),
  6092. request,
  6093. )
  6094. }
  6095. func (service *media) AddAudioOutputConfigurationContext(ctx context.Context, request *AddAudioOutputConfiguration) (*AddAudioOutputConfigurationResponse, error) {
  6096. response := new(AddAudioOutputConfigurationResponse)
  6097. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddAudioOutputConfiguration", request, response)
  6098. if err != nil {
  6099. return nil, err
  6100. }
  6101. return response, nil
  6102. }
  6103. func (service *media) AddAudioOutputConfiguration(request *AddAudioOutputConfiguration) (*AddAudioOutputConfigurationResponse, error) {
  6104. return service.AddAudioOutputConfigurationContext(
  6105. context.Background(),
  6106. request,
  6107. )
  6108. }
  6109. func (service *media) RemoveAudioOutputConfigurationContext(ctx context.Context, request *RemoveAudioOutputConfiguration) (*RemoveAudioOutputConfigurationResponse, error) {
  6110. response := new(RemoveAudioOutputConfigurationResponse)
  6111. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveAudioOutputConfiguration", request, response)
  6112. if err != nil {
  6113. return nil, err
  6114. }
  6115. return response, nil
  6116. }
  6117. func (service *media) RemoveAudioOutputConfiguration(request *RemoveAudioOutputConfiguration) (*RemoveAudioOutputConfigurationResponse, error) {
  6118. return service.RemoveAudioOutputConfigurationContext(
  6119. context.Background(),
  6120. request,
  6121. )
  6122. }
  6123. func (service *media) AddAudioDecoderConfigurationContext(ctx context.Context, request *AddAudioDecoderConfiguration) (*AddAudioDecoderConfigurationResponse, error) {
  6124. response := new(AddAudioDecoderConfigurationResponse)
  6125. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/AddAudioDecoderConfiguration", request, response)
  6126. if err != nil {
  6127. return nil, err
  6128. }
  6129. return response, nil
  6130. }
  6131. func (service *media) AddAudioDecoderConfiguration(request *AddAudioDecoderConfiguration) (*AddAudioDecoderConfigurationResponse, error) {
  6132. return service.AddAudioDecoderConfigurationContext(
  6133. context.Background(),
  6134. request,
  6135. )
  6136. }
  6137. func (service *media) RemoveAudioDecoderConfigurationContext(ctx context.Context, request *RemoveAudioDecoderConfiguration) (*RemoveAudioDecoderConfigurationResponse, error) {
  6138. response := new(RemoveAudioDecoderConfigurationResponse)
  6139. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/RemoveAudioDecoderConfiguration", request, response)
  6140. if err != nil {
  6141. return nil, err
  6142. }
  6143. return response, nil
  6144. }
  6145. func (service *media) RemoveAudioDecoderConfiguration(request *RemoveAudioDecoderConfiguration) (*RemoveAudioDecoderConfigurationResponse, error) {
  6146. return service.RemoveAudioDecoderConfigurationContext(
  6147. context.Background(),
  6148. request,
  6149. )
  6150. }
  6151. func (service *media) DeleteProfileContext(ctx context.Context, request *DeleteProfile) (*DeleteProfileResponse, error) {
  6152. response := new(DeleteProfileResponse)
  6153. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/DeleteProfile", request, response)
  6154. if err != nil {
  6155. return nil, err
  6156. }
  6157. return response, nil
  6158. }
  6159. func (service *media) DeleteProfile(request *DeleteProfile) (*DeleteProfileResponse, error) {
  6160. return service.DeleteProfileContext(
  6161. context.Background(),
  6162. request,
  6163. )
  6164. }
  6165. func (service *media) GetVideoSourceConfigurationsContext(ctx context.Context, request *GetVideoSourceConfigurations) (*GetVideoSourceConfigurationsResponse, error) {
  6166. response := new(GetVideoSourceConfigurationsResponse)
  6167. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfigurations", request, response)
  6168. if err != nil {
  6169. return nil, err
  6170. }
  6171. return response, nil
  6172. }
  6173. func (service *media) GetVideoSourceConfigurations(request *GetVideoSourceConfigurations) (*GetVideoSourceConfigurationsResponse, error) {
  6174. return service.GetVideoSourceConfigurationsContext(
  6175. context.Background(),
  6176. request,
  6177. )
  6178. }
  6179. func (service *media) GetVideoEncoderConfigurationsContext(ctx context.Context, request *GetVideoEncoderConfigurations) (*GetVideoEncoderConfigurationsResponse, error) {
  6180. response := new(GetVideoEncoderConfigurationsResponse)
  6181. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurations", request, response)
  6182. if err != nil {
  6183. return nil, err
  6184. }
  6185. return response, nil
  6186. }
  6187. func (service *media) GetVideoEncoderConfigurations(request *GetVideoEncoderConfigurations) (*GetVideoEncoderConfigurationsResponse, error) {
  6188. return service.GetVideoEncoderConfigurationsContext(
  6189. context.Background(),
  6190. request,
  6191. )
  6192. }
  6193. func (service *media) GetAudioSourceConfigurationsContext(ctx context.Context, request *GetAudioSourceConfigurations) (*GetAudioSourceConfigurationsResponse, error) {
  6194. response := new(GetAudioSourceConfigurationsResponse)
  6195. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfigurations", request, response)
  6196. if err != nil {
  6197. return nil, err
  6198. }
  6199. return response, nil
  6200. }
  6201. func (service *media) GetAudioSourceConfigurations(request *GetAudioSourceConfigurations) (*GetAudioSourceConfigurationsResponse, error) {
  6202. return service.GetAudioSourceConfigurationsContext(
  6203. context.Background(),
  6204. request,
  6205. )
  6206. }
  6207. func (service *media) GetAudioEncoderConfigurationsContext(ctx context.Context, request *GetAudioEncoderConfigurations) (*GetAudioEncoderConfigurationsResponse, error) {
  6208. response := new(GetAudioEncoderConfigurationsResponse)
  6209. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurations", request, response)
  6210. if err != nil {
  6211. return nil, err
  6212. }
  6213. return response, nil
  6214. }
  6215. func (service *media) GetAudioEncoderConfigurations(request *GetAudioEncoderConfigurations) (*GetAudioEncoderConfigurationsResponse, error) {
  6216. return service.GetAudioEncoderConfigurationsContext(
  6217. context.Background(),
  6218. request,
  6219. )
  6220. }
  6221. func (service *media) GetVideoAnalyticsConfigurationsContext(ctx context.Context, request *GetVideoAnalyticsConfigurations) (*GetVideoAnalyticsConfigurationsResponse, error) {
  6222. response := new(GetVideoAnalyticsConfigurationsResponse)
  6223. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfigurations", request, response)
  6224. if err != nil {
  6225. return nil, err
  6226. }
  6227. return response, nil
  6228. }
  6229. func (service *media) GetVideoAnalyticsConfigurations(request *GetVideoAnalyticsConfigurations) (*GetVideoAnalyticsConfigurationsResponse, error) {
  6230. return service.GetVideoAnalyticsConfigurationsContext(
  6231. context.Background(),
  6232. request,
  6233. )
  6234. }
  6235. func (service *media) GetMetadataConfigurationsContext(ctx context.Context, request *GetMetadataConfigurations) (*GetMetadataConfigurationsResponse, error) {
  6236. response := new(GetMetadataConfigurationsResponse)
  6237. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurations", request, response)
  6238. if err != nil {
  6239. return nil, err
  6240. }
  6241. return response, nil
  6242. }
  6243. func (service *media) GetMetadataConfigurations(request *GetMetadataConfigurations) (*GetMetadataConfigurationsResponse, error) {
  6244. return service.GetMetadataConfigurationsContext(
  6245. context.Background(),
  6246. request,
  6247. )
  6248. }
  6249. func (service *media) GetAudioOutputConfigurationsContext(ctx context.Context, request *GetAudioOutputConfigurations) (*GetAudioOutputConfigurationsResponse, error) {
  6250. response := new(GetAudioOutputConfigurationsResponse)
  6251. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurations", request, response)
  6252. if err != nil {
  6253. return nil, err
  6254. }
  6255. return response, nil
  6256. }
  6257. func (service *media) GetAudioOutputConfigurations(request *GetAudioOutputConfigurations) (*GetAudioOutputConfigurationsResponse, error) {
  6258. return service.GetAudioOutputConfigurationsContext(
  6259. context.Background(),
  6260. request,
  6261. )
  6262. }
  6263. func (service *media) GetAudioDecoderConfigurationsContext(ctx context.Context, request *GetAudioDecoderConfigurations) (*GetAudioDecoderConfigurationsResponse, error) {
  6264. response := new(GetAudioDecoderConfigurationsResponse)
  6265. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurations", request, response)
  6266. if err != nil {
  6267. return nil, err
  6268. }
  6269. return response, nil
  6270. }
  6271. func (service *media) GetAudioDecoderConfigurations(request *GetAudioDecoderConfigurations) (*GetAudioDecoderConfigurationsResponse, error) {
  6272. return service.GetAudioDecoderConfigurationsContext(
  6273. context.Background(),
  6274. request,
  6275. )
  6276. }
  6277. func (service *media) GetVideoSourceConfigurationContext(ctx context.Context, request *GetVideoSourceConfiguration) (*GetVideoSourceConfigurationResponse, error) {
  6278. response := new(GetVideoSourceConfigurationResponse)
  6279. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfiguration", request, response)
  6280. if err != nil {
  6281. return nil, err
  6282. }
  6283. return response, nil
  6284. }
  6285. func (service *media) GetVideoSourceConfiguration(request *GetVideoSourceConfiguration) (*GetVideoSourceConfigurationResponse, error) {
  6286. return service.GetVideoSourceConfigurationContext(
  6287. context.Background(),
  6288. request,
  6289. )
  6290. }
  6291. func (service *media) GetVideoEncoderConfigurationContext(ctx context.Context, request *GetVideoEncoderConfiguration) (*GetVideoEncoderConfigurationResponse, error) {
  6292. response := new(GetVideoEncoderConfigurationResponse)
  6293. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfiguration", request, response)
  6294. if err != nil {
  6295. return nil, err
  6296. }
  6297. return response, nil
  6298. }
  6299. func (service *media) GetVideoEncoderConfiguration(request *GetVideoEncoderConfiguration) (*GetVideoEncoderConfigurationResponse, error) {
  6300. return service.GetVideoEncoderConfigurationContext(
  6301. context.Background(),
  6302. request,
  6303. )
  6304. }
  6305. func (service *media) GetAudioSourceConfigurationContext(ctx context.Context, request *GetAudioSourceConfiguration) (*GetAudioSourceConfigurationResponse, error) {
  6306. response := new(GetAudioSourceConfigurationResponse)
  6307. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfiguration", request, response)
  6308. if err != nil {
  6309. return nil, err
  6310. }
  6311. return response, nil
  6312. }
  6313. func (service *media) GetAudioSourceConfiguration(request *GetAudioSourceConfiguration) (*GetAudioSourceConfigurationResponse, error) {
  6314. return service.GetAudioSourceConfigurationContext(
  6315. context.Background(),
  6316. request,
  6317. )
  6318. }
  6319. func (service *media) GetAudioEncoderConfigurationContext(ctx context.Context, request *GetAudioEncoderConfiguration) (*GetAudioEncoderConfigurationResponse, error) {
  6320. response := new(GetAudioEncoderConfigurationResponse)
  6321. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfiguration", request, response)
  6322. if err != nil {
  6323. return nil, err
  6324. }
  6325. return response, nil
  6326. }
  6327. func (service *media) GetAudioEncoderConfiguration(request *GetAudioEncoderConfiguration) (*GetAudioEncoderConfigurationResponse, error) {
  6328. return service.GetAudioEncoderConfigurationContext(
  6329. context.Background(),
  6330. request,
  6331. )
  6332. }
  6333. func (service *media) GetVideoAnalyticsConfigurationContext(ctx context.Context, request *GetVideoAnalyticsConfiguration) (*GetVideoAnalyticsConfigurationResponse, error) {
  6334. response := new(GetVideoAnalyticsConfigurationResponse)
  6335. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfiguration", request, response)
  6336. if err != nil {
  6337. return nil, err
  6338. }
  6339. return response, nil
  6340. }
  6341. func (service *media) GetVideoAnalyticsConfiguration(request *GetVideoAnalyticsConfiguration) (*GetVideoAnalyticsConfigurationResponse, error) {
  6342. return service.GetVideoAnalyticsConfigurationContext(
  6343. context.Background(),
  6344. request,
  6345. )
  6346. }
  6347. func (service *media) GetMetadataConfigurationContext(ctx context.Context, request *GetMetadataConfiguration) (*GetMetadataConfigurationResponse, error) {
  6348. response := new(GetMetadataConfigurationResponse)
  6349. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfiguration", request, response)
  6350. if err != nil {
  6351. return nil, err
  6352. }
  6353. return response, nil
  6354. }
  6355. func (service *media) GetMetadataConfiguration(request *GetMetadataConfiguration) (*GetMetadataConfigurationResponse, error) {
  6356. return service.GetMetadataConfigurationContext(
  6357. context.Background(),
  6358. request,
  6359. )
  6360. }
  6361. func (service *media) GetAudioOutputConfigurationContext(ctx context.Context, request *GetAudioOutputConfiguration) (*GetAudioOutputConfigurationResponse, error) {
  6362. response := new(GetAudioOutputConfigurationResponse)
  6363. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfiguration", request, response)
  6364. if err != nil {
  6365. return nil, err
  6366. }
  6367. return response, nil
  6368. }
  6369. func (service *media) GetAudioOutputConfiguration(request *GetAudioOutputConfiguration) (*GetAudioOutputConfigurationResponse, error) {
  6370. return service.GetAudioOutputConfigurationContext(
  6371. context.Background(),
  6372. request,
  6373. )
  6374. }
  6375. func (service *media) GetAudioDecoderConfigurationContext(ctx context.Context, request *GetAudioDecoderConfiguration) (*GetAudioDecoderConfigurationResponse, error) {
  6376. response := new(GetAudioDecoderConfigurationResponse)
  6377. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfiguration", request, response)
  6378. if err != nil {
  6379. return nil, err
  6380. }
  6381. return response, nil
  6382. }
  6383. func (service *media) GetAudioDecoderConfiguration(request *GetAudioDecoderConfiguration) (*GetAudioDecoderConfigurationResponse, error) {
  6384. return service.GetAudioDecoderConfigurationContext(
  6385. context.Background(),
  6386. request,
  6387. )
  6388. }
  6389. func (service *media) GetCompatibleVideoEncoderConfigurationsContext(ctx context.Context, request *GetCompatibleVideoEncoderConfigurations) (*GetCompatibleVideoEncoderConfigurationsResponse, error) {
  6390. response := new(GetCompatibleVideoEncoderConfigurationsResponse)
  6391. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoEncoderConfigurations", request, response)
  6392. if err != nil {
  6393. return nil, err
  6394. }
  6395. return response, nil
  6396. }
  6397. func (service *media) GetCompatibleVideoEncoderConfigurations(request *GetCompatibleVideoEncoderConfigurations) (*GetCompatibleVideoEncoderConfigurationsResponse, error) {
  6398. return service.GetCompatibleVideoEncoderConfigurationsContext(
  6399. context.Background(),
  6400. request,
  6401. )
  6402. }
  6403. func (service *media) GetCompatibleVideoSourceConfigurationsContext(ctx context.Context, request *GetCompatibleVideoSourceConfigurations) (*GetCompatibleVideoSourceConfigurationsResponse, error) {
  6404. response := new(GetCompatibleVideoSourceConfigurationsResponse)
  6405. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoSourceConfigurations", request, response)
  6406. if err != nil {
  6407. return nil, err
  6408. }
  6409. return response, nil
  6410. }
  6411. func (service *media) GetCompatibleVideoSourceConfigurations(request *GetCompatibleVideoSourceConfigurations) (*GetCompatibleVideoSourceConfigurationsResponse, error) {
  6412. return service.GetCompatibleVideoSourceConfigurationsContext(
  6413. context.Background(),
  6414. request,
  6415. )
  6416. }
  6417. func (service *media) GetCompatibleAudioEncoderConfigurationsContext(ctx context.Context, request *GetCompatibleAudioEncoderConfigurations) (*GetCompatibleAudioEncoderConfigurationsResponse, error) {
  6418. response := new(GetCompatibleAudioEncoderConfigurationsResponse)
  6419. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioEncoderConfigurations", request, response)
  6420. if err != nil {
  6421. return nil, err
  6422. }
  6423. return response, nil
  6424. }
  6425. func (service *media) GetCompatibleAudioEncoderConfigurations(request *GetCompatibleAudioEncoderConfigurations) (*GetCompatibleAudioEncoderConfigurationsResponse, error) {
  6426. return service.GetCompatibleAudioEncoderConfigurationsContext(
  6427. context.Background(),
  6428. request,
  6429. )
  6430. }
  6431. func (service *media) GetCompatibleAudioSourceConfigurationsContext(ctx context.Context, request *GetCompatibleAudioSourceConfigurations) (*GetCompatibleAudioSourceConfigurationsResponse, error) {
  6432. response := new(GetCompatibleAudioSourceConfigurationsResponse)
  6433. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioSourceConfigurations", request, response)
  6434. if err != nil {
  6435. return nil, err
  6436. }
  6437. return response, nil
  6438. }
  6439. func (service *media) GetCompatibleAudioSourceConfigurations(request *GetCompatibleAudioSourceConfigurations) (*GetCompatibleAudioSourceConfigurationsResponse, error) {
  6440. return service.GetCompatibleAudioSourceConfigurationsContext(
  6441. context.Background(),
  6442. request,
  6443. )
  6444. }
  6445. func (service *media) GetCompatibleVideoAnalyticsConfigurationsContext(ctx context.Context, request *GetCompatibleVideoAnalyticsConfigurations) (*GetCompatibleVideoAnalyticsConfigurationsResponse, error) {
  6446. response := new(GetCompatibleVideoAnalyticsConfigurationsResponse)
  6447. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoAnalyticsConfigurations", request, response)
  6448. if err != nil {
  6449. return nil, err
  6450. }
  6451. return response, nil
  6452. }
  6453. func (service *media) GetCompatibleVideoAnalyticsConfigurations(request *GetCompatibleVideoAnalyticsConfigurations) (*GetCompatibleVideoAnalyticsConfigurationsResponse, error) {
  6454. return service.GetCompatibleVideoAnalyticsConfigurationsContext(
  6455. context.Background(),
  6456. request,
  6457. )
  6458. }
  6459. func (service *media) GetCompatibleMetadataConfigurationsContext(ctx context.Context, request *GetCompatibleMetadataConfigurations) (*GetCompatibleMetadataConfigurationsResponse, error) {
  6460. response := new(GetCompatibleMetadataConfigurationsResponse)
  6461. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleMetadataConfigurations", request, response)
  6462. if err != nil {
  6463. return nil, err
  6464. }
  6465. return response, nil
  6466. }
  6467. func (service *media) GetCompatibleMetadataConfigurations(request *GetCompatibleMetadataConfigurations) (*GetCompatibleMetadataConfigurationsResponse, error) {
  6468. return service.GetCompatibleMetadataConfigurationsContext(
  6469. context.Background(),
  6470. request,
  6471. )
  6472. }
  6473. func (service *media) GetCompatibleAudioOutputConfigurationsContext(ctx context.Context, request *GetCompatibleAudioOutputConfigurations) (*GetCompatibleAudioOutputConfigurationsResponse, error) {
  6474. response := new(GetCompatibleAudioOutputConfigurationsResponse)
  6475. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioOutputConfigurations", request, response)
  6476. if err != nil {
  6477. return nil, err
  6478. }
  6479. return response, nil
  6480. }
  6481. func (service *media) GetCompatibleAudioOutputConfigurations(request *GetCompatibleAudioOutputConfigurations) (*GetCompatibleAudioOutputConfigurationsResponse, error) {
  6482. return service.GetCompatibleAudioOutputConfigurationsContext(
  6483. context.Background(),
  6484. request,
  6485. )
  6486. }
  6487. func (service *media) GetCompatibleAudioDecoderConfigurationsContext(ctx context.Context, request *GetCompatibleAudioDecoderConfigurations) (*GetCompatibleAudioDecoderConfigurationsResponse, error) {
  6488. response := new(GetCompatibleAudioDecoderConfigurationsResponse)
  6489. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioDecoderConfigurations", request, response)
  6490. if err != nil {
  6491. return nil, err
  6492. }
  6493. return response, nil
  6494. }
  6495. func (service *media) GetCompatibleAudioDecoderConfigurations(request *GetCompatibleAudioDecoderConfigurations) (*GetCompatibleAudioDecoderConfigurationsResponse, error) {
  6496. return service.GetCompatibleAudioDecoderConfigurationsContext(
  6497. context.Background(),
  6498. request,
  6499. )
  6500. }
  6501. func (service *media) SetVideoSourceConfigurationContext(ctx context.Context, request *SetVideoSourceConfiguration) (*SetVideoSourceConfigurationResponse, error) {
  6502. response := new(SetVideoSourceConfigurationResponse)
  6503. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceConfiguration", request, response)
  6504. if err != nil {
  6505. return nil, err
  6506. }
  6507. return response, nil
  6508. }
  6509. func (service *media) SetVideoSourceConfiguration(request *SetVideoSourceConfiguration) (*SetVideoSourceConfigurationResponse, error) {
  6510. return service.SetVideoSourceConfigurationContext(
  6511. context.Background(),
  6512. request,
  6513. )
  6514. }
  6515. func (service *media) SetVideoEncoderConfigurationContext(ctx context.Context, request *SetVideoEncoderConfiguration) (*SetVideoEncoderConfigurationResponse, error) {
  6516. response := new(SetVideoEncoderConfigurationResponse)
  6517. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetVideoEncoderConfiguration", request, response)
  6518. if err != nil {
  6519. return nil, err
  6520. }
  6521. return response, nil
  6522. }
  6523. func (service *media) SetVideoEncoderConfiguration(request *SetVideoEncoderConfiguration) (*SetVideoEncoderConfigurationResponse, error) {
  6524. return service.SetVideoEncoderConfigurationContext(
  6525. context.Background(),
  6526. request,
  6527. )
  6528. }
  6529. func (service *media) SetAudioSourceConfigurationContext(ctx context.Context, request *SetAudioSourceConfiguration) (*SetAudioSourceConfigurationResponse, error) {
  6530. response := new(SetAudioSourceConfigurationResponse)
  6531. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetAudioSourceConfiguration", request, response)
  6532. if err != nil {
  6533. return nil, err
  6534. }
  6535. return response, nil
  6536. }
  6537. func (service *media) SetAudioSourceConfiguration(request *SetAudioSourceConfiguration) (*SetAudioSourceConfigurationResponse, error) {
  6538. return service.SetAudioSourceConfigurationContext(
  6539. context.Background(),
  6540. request,
  6541. )
  6542. }
  6543. func (service *media) SetAudioEncoderConfigurationContext(ctx context.Context, request *SetAudioEncoderConfiguration) (*SetAudioEncoderConfigurationResponse, error) {
  6544. response := new(SetAudioEncoderConfigurationResponse)
  6545. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetAudioEncoderConfiguration", request, response)
  6546. if err != nil {
  6547. return nil, err
  6548. }
  6549. return response, nil
  6550. }
  6551. func (service *media) SetAudioEncoderConfiguration(request *SetAudioEncoderConfiguration) (*SetAudioEncoderConfigurationResponse, error) {
  6552. return service.SetAudioEncoderConfigurationContext(
  6553. context.Background(),
  6554. request,
  6555. )
  6556. }
  6557. func (service *media) SetVideoAnalyticsConfigurationContext(ctx context.Context, request *SetVideoAnalyticsConfiguration) (*SetVideoAnalyticsConfigurationResponse, error) {
  6558. response := new(SetVideoAnalyticsConfigurationResponse)
  6559. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetVideoAnalyticsConfiguration", request, response)
  6560. if err != nil {
  6561. return nil, err
  6562. }
  6563. return response, nil
  6564. }
  6565. func (service *media) SetVideoAnalyticsConfiguration(request *SetVideoAnalyticsConfiguration) (*SetVideoAnalyticsConfigurationResponse, error) {
  6566. return service.SetVideoAnalyticsConfigurationContext(
  6567. context.Background(),
  6568. request,
  6569. )
  6570. }
  6571. func (service *media) SetMetadataConfigurationContext(ctx context.Context, request *SetMetadataConfiguration) (*SetMetadataConfigurationResponse, error) {
  6572. response := new(SetMetadataConfigurationResponse)
  6573. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetMetadataConfiguration", request, response)
  6574. if err != nil {
  6575. return nil, err
  6576. }
  6577. return response, nil
  6578. }
  6579. func (service *media) SetMetadataConfiguration(request *SetMetadataConfiguration) (*SetMetadataConfigurationResponse, error) {
  6580. return service.SetMetadataConfigurationContext(
  6581. context.Background(),
  6582. request,
  6583. )
  6584. }
  6585. func (service *media) SetAudioOutputConfigurationContext(ctx context.Context, request *SetAudioOutputConfiguration) (*SetAudioOutputConfigurationResponse, error) {
  6586. response := new(SetAudioOutputConfigurationResponse)
  6587. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetAudioOutputConfiguration", request, response)
  6588. if err != nil {
  6589. return nil, err
  6590. }
  6591. return response, nil
  6592. }
  6593. func (service *media) SetAudioOutputConfiguration(request *SetAudioOutputConfiguration) (*SetAudioOutputConfigurationResponse, error) {
  6594. return service.SetAudioOutputConfigurationContext(
  6595. context.Background(),
  6596. request,
  6597. )
  6598. }
  6599. func (service *media) SetAudioDecoderConfigurationContext(ctx context.Context, request *SetAudioDecoderConfiguration) (*SetAudioDecoderConfigurationResponse, error) {
  6600. response := new(SetAudioDecoderConfigurationResponse)
  6601. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetAudioDecoderConfiguration", request, response)
  6602. if err != nil {
  6603. return nil, err
  6604. }
  6605. return response, nil
  6606. }
  6607. func (service *media) SetAudioDecoderConfiguration(request *SetAudioDecoderConfiguration) (*SetAudioDecoderConfigurationResponse, error) {
  6608. return service.SetAudioDecoderConfigurationContext(
  6609. context.Background(),
  6610. request,
  6611. )
  6612. }
  6613. func (service *media) GetVideoSourceConfigurationOptionsContext(ctx context.Context, request *GetVideoSourceConfigurationOptions) (*GetVideoSourceConfigurationOptionsResponse, error) {
  6614. response := new(GetVideoSourceConfigurationOptionsResponse)
  6615. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfigurationOptions", request, response)
  6616. if err != nil {
  6617. return nil, err
  6618. }
  6619. return response, nil
  6620. }
  6621. func (service *media) GetVideoSourceConfigurationOptions(request *GetVideoSourceConfigurationOptions) (*GetVideoSourceConfigurationOptionsResponse, error) {
  6622. return service.GetVideoSourceConfigurationOptionsContext(
  6623. context.Background(),
  6624. request,
  6625. )
  6626. }
  6627. func (service *media) GetVideoEncoderConfigurationOptionsContext(ctx context.Context, request *GetVideoEncoderConfigurationOptions) (*GetVideoEncoderConfigurationOptionsResponse, error) {
  6628. response := new(GetVideoEncoderConfigurationOptionsResponse)
  6629. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurationOptions", request, response)
  6630. if err != nil {
  6631. return nil, err
  6632. }
  6633. return response, nil
  6634. }
  6635. func (service *media) GetVideoEncoderConfigurationOptions(request *GetVideoEncoderConfigurationOptions) (*GetVideoEncoderConfigurationOptionsResponse, error) {
  6636. return service.GetVideoEncoderConfigurationOptionsContext(
  6637. context.Background(),
  6638. request,
  6639. )
  6640. }
  6641. func (service *media) GetAudioSourceConfigurationOptionsContext(ctx context.Context, request *GetAudioSourceConfigurationOptions) (*GetAudioSourceConfigurationOptionsResponse, error) {
  6642. response := new(GetAudioSourceConfigurationOptionsResponse)
  6643. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfigurationOptions", request, response)
  6644. if err != nil {
  6645. return nil, err
  6646. }
  6647. return response, nil
  6648. }
  6649. func (service *media) GetAudioSourceConfigurationOptions(request *GetAudioSourceConfigurationOptions) (*GetAudioSourceConfigurationOptionsResponse, error) {
  6650. return service.GetAudioSourceConfigurationOptionsContext(
  6651. context.Background(),
  6652. request,
  6653. )
  6654. }
  6655. func (service *media) GetAudioEncoderConfigurationOptionsContext(ctx context.Context, request *GetAudioEncoderConfigurationOptions) (*GetAudioEncoderConfigurationOptionsResponse, error) {
  6656. response := new(GetAudioEncoderConfigurationOptionsResponse)
  6657. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurationOptions", request, response)
  6658. if err != nil {
  6659. return nil, err
  6660. }
  6661. return response, nil
  6662. }
  6663. func (service *media) GetAudioEncoderConfigurationOptions(request *GetAudioEncoderConfigurationOptions) (*GetAudioEncoderConfigurationOptionsResponse, error) {
  6664. return service.GetAudioEncoderConfigurationOptionsContext(
  6665. context.Background(),
  6666. request,
  6667. )
  6668. }
  6669. func (service *media) GetMetadataConfigurationOptionsContext(ctx context.Context, request *GetMetadataConfigurationOptions) (*GetMetadataConfigurationOptionsResponse, error) {
  6670. response := new(GetMetadataConfigurationOptionsResponse)
  6671. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurationOptions", request, response)
  6672. if err != nil {
  6673. return nil, err
  6674. }
  6675. return response, nil
  6676. }
  6677. func (service *media) GetMetadataConfigurationOptions(request *GetMetadataConfigurationOptions) (*GetMetadataConfigurationOptionsResponse, error) {
  6678. return service.GetMetadataConfigurationOptionsContext(
  6679. context.Background(),
  6680. request,
  6681. )
  6682. }
  6683. func (service *media) GetAudioOutputConfigurationOptionsContext(ctx context.Context, request *GetAudioOutputConfigurationOptions) (*GetAudioOutputConfigurationOptionsResponse, error) {
  6684. response := new(GetAudioOutputConfigurationOptionsResponse)
  6685. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurationOptions", request, response)
  6686. if err != nil {
  6687. return nil, err
  6688. }
  6689. return response, nil
  6690. }
  6691. func (service *media) GetAudioOutputConfigurationOptions(request *GetAudioOutputConfigurationOptions) (*GetAudioOutputConfigurationOptionsResponse, error) {
  6692. return service.GetAudioOutputConfigurationOptionsContext(
  6693. context.Background(),
  6694. request,
  6695. )
  6696. }
  6697. func (service *media) GetAudioDecoderConfigurationOptionsContext(ctx context.Context, request *GetAudioDecoderConfigurationOptions) (*GetAudioDecoderConfigurationOptionsResponse, error) {
  6698. response := new(GetAudioDecoderConfigurationOptionsResponse)
  6699. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurationOptions", request, response)
  6700. if err != nil {
  6701. return nil, err
  6702. }
  6703. return response, nil
  6704. }
  6705. func (service *media) GetAudioDecoderConfigurationOptions(request *GetAudioDecoderConfigurationOptions) (*GetAudioDecoderConfigurationOptionsResponse, error) {
  6706. return service.GetAudioDecoderConfigurationOptionsContext(
  6707. context.Background(),
  6708. request,
  6709. )
  6710. }
  6711. func (service *media) GetGuaranteedNumberOfVideoEncoderInstancesContext(ctx context.Context, request *GetGuaranteedNumberOfVideoEncoderInstances) (*GetGuaranteedNumberOfVideoEncoderInstancesResponse, error) {
  6712. response := new(GetGuaranteedNumberOfVideoEncoderInstancesResponse)
  6713. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetGuaranteedNumberOfVideoEncoderInstances", request, response)
  6714. if err != nil {
  6715. return nil, err
  6716. }
  6717. return response, nil
  6718. }
  6719. func (service *media) GetGuaranteedNumberOfVideoEncoderInstances(request *GetGuaranteedNumberOfVideoEncoderInstances) (*GetGuaranteedNumberOfVideoEncoderInstancesResponse, error) {
  6720. return service.GetGuaranteedNumberOfVideoEncoderInstancesContext(
  6721. context.Background(),
  6722. request,
  6723. )
  6724. }
  6725. func (service *media) GetStreamUriContext(ctx context.Context, request *GetStreamUri) (*GetStreamUriResponse, error) {
  6726. response := new(GetStreamUriResponse)
  6727. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetStreamUri", request, response)
  6728. if err != nil {
  6729. return nil, err
  6730. }
  6731. return response, nil
  6732. }
  6733. func (service *media) GetStreamUri(request *GetStreamUri) (*GetStreamUriResponse, error) {
  6734. return service.GetStreamUriContext(
  6735. context.Background(),
  6736. request,
  6737. )
  6738. }
  6739. func (service *media) StartMulticastStreamingContext(ctx context.Context, request *StartMulticastStreaming) (*StartMulticastStreamingResponse, error) {
  6740. response := new(StartMulticastStreamingResponse)
  6741. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/StartMulticastStreaming", request, response)
  6742. if err != nil {
  6743. return nil, err
  6744. }
  6745. return response, nil
  6746. }
  6747. func (service *media) StartMulticastStreaming(request *StartMulticastStreaming) (*StartMulticastStreamingResponse, error) {
  6748. return service.StartMulticastStreamingContext(
  6749. context.Background(),
  6750. request,
  6751. )
  6752. }
  6753. func (service *media) StopMulticastStreamingContext(ctx context.Context, request *StopMulticastStreaming) (*StopMulticastStreamingResponse, error) {
  6754. response := new(StopMulticastStreamingResponse)
  6755. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/StopMulticastStreaming", request, response)
  6756. if err != nil {
  6757. return nil, err
  6758. }
  6759. return response, nil
  6760. }
  6761. func (service *media) StopMulticastStreaming(request *StopMulticastStreaming) (*StopMulticastStreamingResponse, error) {
  6762. return service.StopMulticastStreamingContext(
  6763. context.Background(),
  6764. request,
  6765. )
  6766. }
  6767. func (service *media) SetSynchronizationPointContext(ctx context.Context, request *SetSynchronizationPoint) (*SetSynchronizationPointResponse, error) {
  6768. response := new(SetSynchronizationPointResponse)
  6769. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetSynchronizationPoint", request, response)
  6770. if err != nil {
  6771. return nil, err
  6772. }
  6773. return response, nil
  6774. }
  6775. func (service *media) SetSynchronizationPoint(request *SetSynchronizationPoint) (*SetSynchronizationPointResponse, error) {
  6776. return service.SetSynchronizationPointContext(
  6777. context.Background(),
  6778. request,
  6779. )
  6780. }
  6781. func (service *media) GetSnapshotUriContext(ctx context.Context, request *GetSnapshotUri) (*GetSnapshotUriResponse, error) {
  6782. response := new(GetSnapshotUriResponse)
  6783. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetSnapshotUri", request, response)
  6784. if err != nil {
  6785. return nil, err
  6786. }
  6787. return response, nil
  6788. }
  6789. func (service *media) GetSnapshotUri(request *GetSnapshotUri) (*GetSnapshotUriResponse, error) {
  6790. return service.GetSnapshotUriContext(
  6791. context.Background(),
  6792. request,
  6793. )
  6794. }
  6795. func (service *media) GetVideoSourceModesContext(ctx context.Context, request *GetVideoSourceModes) (*GetVideoSourceModesResponse, error) {
  6796. response := new(GetVideoSourceModesResponse)
  6797. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceModes", request, response)
  6798. if err != nil {
  6799. return nil, err
  6800. }
  6801. return response, nil
  6802. }
  6803. func (service *media) GetVideoSourceModes(request *GetVideoSourceModes) (*GetVideoSourceModesResponse, error) {
  6804. return service.GetVideoSourceModesContext(
  6805. context.Background(),
  6806. request,
  6807. )
  6808. }
  6809. func (service *media) SetVideoSourceModeContext(ctx context.Context, request *SetVideoSourceMode) (*SetVideoSourceModeResponse, error) {
  6810. response := new(SetVideoSourceModeResponse)
  6811. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceMode", request, response)
  6812. if err != nil {
  6813. return nil, err
  6814. }
  6815. return response, nil
  6816. }
  6817. func (service *media) SetVideoSourceMode(request *SetVideoSourceMode) (*SetVideoSourceModeResponse, error) {
  6818. return service.SetVideoSourceModeContext(
  6819. context.Background(),
  6820. request,
  6821. )
  6822. }
  6823. func (service *media) GetOSDsContext(ctx context.Context, request *GetOSDs) (*GetOSDsResponse, error) {
  6824. response := new(GetOSDsResponse)
  6825. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetOSDs", request, response)
  6826. if err != nil {
  6827. return nil, err
  6828. }
  6829. return response, nil
  6830. }
  6831. func (service *media) GetOSDs(request *GetOSDs) (*GetOSDsResponse, error) {
  6832. return service.GetOSDsContext(
  6833. context.Background(),
  6834. request,
  6835. )
  6836. }
  6837. func (service *media) GetOSDContext(ctx context.Context, request *GetOSD) (*GetOSDResponse, error) {
  6838. response := new(GetOSDResponse)
  6839. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetOSD", request, response)
  6840. if err != nil {
  6841. return nil, err
  6842. }
  6843. return response, nil
  6844. }
  6845. func (service *media) GetOSD(request *GetOSD) (*GetOSDResponse, error) {
  6846. return service.GetOSDContext(
  6847. context.Background(),
  6848. request,
  6849. )
  6850. }
  6851. func (service *media) GetOSDOptionsContext(ctx context.Context, request *GetOSDOptions) (*GetOSDOptionsResponse, error) {
  6852. response := new(GetOSDOptionsResponse)
  6853. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/GetOSDOptions", request, response)
  6854. if err != nil {
  6855. return nil, err
  6856. }
  6857. return response, nil
  6858. }
  6859. func (service *media) GetOSDOptions(request *GetOSDOptions) (*GetOSDOptionsResponse, error) {
  6860. return service.GetOSDOptionsContext(
  6861. context.Background(),
  6862. request,
  6863. )
  6864. }
  6865. func (service *media) SetOSDContext(ctx context.Context, request *SetOSD) (*SetOSDResponse, error) {
  6866. response := new(SetOSDResponse)
  6867. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/SetOSD", request, response)
  6868. if err != nil {
  6869. return nil, err
  6870. }
  6871. return response, nil
  6872. }
  6873. func (service *media) SetOSD(request *SetOSD) (*SetOSDResponse, error) {
  6874. return service.SetOSDContext(
  6875. context.Background(),
  6876. request,
  6877. )
  6878. }
  6879. func (service *media) CreateOSDContext(ctx context.Context, request *CreateOSD) (*CreateOSDResponse, error) {
  6880. response := new(CreateOSDResponse)
  6881. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/CreateOSD", request, response)
  6882. if err != nil {
  6883. return nil, err
  6884. }
  6885. return response, nil
  6886. }
  6887. func (service *media) CreateOSD(request *CreateOSD) (*CreateOSDResponse, error) {
  6888. return service.CreateOSDContext(
  6889. context.Background(),
  6890. request,
  6891. )
  6892. }
  6893. func (service *media) DeleteOSDContext(ctx context.Context, request *DeleteOSD) (*DeleteOSDResponse, error) {
  6894. response := new(DeleteOSDResponse)
  6895. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/media/wsdl/DeleteOSD", request, response)
  6896. if err != nil {
  6897. return nil, err
  6898. }
  6899. return response, nil
  6900. }
  6901. func (service *media) DeleteOSD(request *DeleteOSD) (*DeleteOSDResponse, error) {
  6902. return service.DeleteOSDContext(
  6903. context.Background(),
  6904. request,
  6905. )
  6906. }
  6907. // AnyURI type
  6908. type AnyURI string
  6909. // Duration type
  6910. type Duration string
  6911. // QName type
  6912. type QName string
  6913. // NCName type
  6914. type NCName string
  6915. // AnySimpleType type
  6916. type AnySimpleType string
  6917. // String type
  6918. type String string