ONVIF::...uration(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

πŸ’… ONVIF::Device::Elements::AudioEncoderConfiguration

okay bestie, gather round, because we're looking at a Perl module from the User Contributed Perl Documentation section and honestly? it's giving "quiet little helper that does exactly one thing and does it iconically." ✨

Like, its whole personality is: it's the ONVIF::Device::Elements::AudioEncoderConfiguration class. That's the name, that's the vibe, no notes. πŸŽ€


🌸 DESCRIPTION 🌸

So basically, this is a Perl data type class (yes, a whole class, for one data type, and we stan a specialist πŸ‘‘) for the XML Schema defined element AudioEncoderConfiguration, and that element lives in the namespace http://www.onvif.org/ver10/schema. Slay. πŸ’…

No cap, that's the entire description. She's lowkey mysterious, she's highkey focused, and I respect it fr fr. πŸ¦‹


✨ METHODS ✨

🫢 new

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

It's the constructor, bestie. It makes you a brand-new object. πŸ”₯ And here's the part where I need you to pay attention, because you can pass new() a data structure that looks exactly like this β€” every field, nothing skipped, we do not gatekeep here:

{ # ONVIF::Device::Types::AudioEncoderConfiguration
  Encoding => $some_value, # AudioEncoding
  Bitrate =>  $some_value, # int
  SampleRate =>  $some_value, # int
  Multicast =>  { # ONVIF::Device::Types::MulticastConfiguration
    Address =>  { # ONVIF::Device::Types::IPAddress
      Type => $some_value, # IPType
      IPv4Address => $some_value, # IPv4Address
      IPv6Address => $some_value, # IPv6Address
    },
    Port =>  $some_value, # int
    TTL =>  $some_value, # int
    AutoStart =>  $some_value, # boolean
  },
  SessionTimeout =>  $some_value, # duration
},

okay let me walk you through this little nested situation because it's giving russian dolls but make it XML πŸͺ†:

  • Encoding β€” goes in as an AudioEncoding value.
  • Bitrate β€” an int, ngl, pretty self-explanatory.
  • SampleRate β€” also an int, also living its truth. 🎡
  • Multicast β€” now we're in ONVIF::Device::Types::MulticastConfiguration territory, and she has layers:
    • Address β€” which is itself an ONVIF::Device::Types::IPAddress, because why have one nested hash when you can have two 😭, and inside her:
      • Type β€” an IPType value.
      • IPv4Address β€” an IPv4Address value, obviously.
      • IPv6Address β€” an IPv6Address value. equality! 🌈
    • Port β€” an int.
    • TTL β€” an int too, we love consistency. ⭐
    • AutoStart β€” a boolean, so like, true or false, pick your fighter. πŸ’€
  • SessionTimeout β€” a duration value, and that's the outermost level closing out. πŸŽ€

Copy that structure exactly, bestie. Character for character. I am begging you not to freestyle the field names. πŸ™ˆ


🧚 AUTHOR 🧚

Generated by SOAP::WSDL. That's it, that's the whole author section β€” the machine did it, and honestly? it ate. πŸ’œ


and that's the whole page, bestie!! go forth and construct your audio encoder configurations, you absolute main character πŸ¦‹πŸ’–βœ¨

this little icon was brought to you by perl v5.42.3, dated 1980-01-01, filed under ONVIF::...uration(3) β€” mwah, see you in the next manpage πŸ’…πŸŽ€

πŸ“¦ where this page comes from