ONVIF:...uration(3pm)

πŸ“¦
version 1.36.37 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

🌸 ONVIF::Device::Elements::VideoSourceConfiguration 🌸

okay bestie, we're in the 3pm zone β€” that's the User Contributed Perl Documentation corner of the man-page universe, and this page is a whole lil' icon. it's a Perl class. it's an XML element wrapper. it's giving ✨structured data realness✨. let's get into it πŸ’…


✨ NAME ✨

ONVIF::Device::Elements::VideoSourceConfiguration β€” say it with your chest, it's a mouthful but she's worth it πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

so, bestie, this is a Perl data type class. what does that even mean? it means it's the Perl-side representation of the XML Schema defined element VideoSourceConfiguration, and that element lives in this namespace:

http://www.onvif.org/ver10/schema

that's the whole vibe. no cap, that's literally it. it's a class that stands in for an XML element so you don't have to rawdog the XML yourself 🫢


πŸ’… METHODS πŸ’…

new

the constructor, the main character, the moment πŸŽ€

my $element = ONVIF::Device::Elements::VideoSourceConfiguration->new($data);

you call new and hand it $data, and boom β€” you've got yourself an element object. iconic behaviour honestly.

the following data structure may be passed to new():

{ # ONVIF::Device::Types::VideoSourceConfiguration
  SourceToken => $some_value, # ReferenceToken
  Bounds => ,
  Extension =>  { # ONVIF::Device::Types::VideoSourceConfigurationExtension
    Rotate =>  { # ONVIF::Device::Types::Rotate
      Mode => $some_value, # RotateMode
      Degree =>  $some_value, # int
      Extension =>  { # ONVIF::Device::Types::RotateExtension
      },
    },
    Extension =>  { # ONVIF::Device::Types::VideoSourceConfigurationExtension2
    },
  },
},

look at her go 😭 nested hashes all the way down, like a little matryoshka doll of configuration. let me walk you through the layers so nothing gets lost in the sauce:

  • the top level is a ONVIF::Device::Types::VideoSourceConfiguration hash
  • SourceToken takes a $some_value, typed as a ReferenceToken
  • Bounds is there β€” and yeah, the value slot is just left open, that's how she's written, don't come for me πŸ™ˆ
  • Extension opens up a ONVIF::Device::Types::VideoSourceConfigurationExtension
    • inside that, Rotate opens a ONVIF::Device::Types::Rotate
      • Mode takes a $some_value, typed as a RotateMode
      • Degree takes a $some_value, typed as an int
      • Extension opens a ONVIF::Device::Types::RotateExtension β€” and she's empty inside, a little hollow vibe, no fields, no drama 🌈
    • and back up a level, Extension opens a ONVIF::Device::Types::VideoSourceConfigurationExtension2 β€” also empty, also chillin', also just vibing ⭐
pro tip from your girl: those two empty extension hashes aren't broken, that's just the shape. don't go inventing keys in there, bestie, they're not in the spec πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL β€” yeah, she was auto-generated, and honestly? auto-generated and still ate πŸ”₯


and that's the whole page, babe! this was ONVIF:...uration(3pm) from the User Contributed Perl Documentation, and the footer energy is: perl v5.40.1, dated 2026-02-01. go forth and configure those video sources, you absolute legend πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from