ONVIF:...uration(3pm)

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

✨ NAME ✨

ONVIF::Media::Elements::AudioEncoderConfiguration β€” and bestie, this is from the User Contributed Perl Documentation section, subsection 3pm, so you already know we're in Perl module territory πŸ’…


πŸ’– DESCRIPTION πŸ’–

Okay so. This is a Perl data type class for the XML Schema element AudioEncoderConfiguration β€” and that element lives in the namespace http://www.onvif.org/ver10/schema. That's it, that's the whole vibe. It's a class that exists so you can build that one XML element and not cry about it 🫢


🌸 METHODS 🌸

πŸŽ€ new

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

Constructor energy. She's the one who makes the object. ✨

And here's the tea β€” the data structure you're allowed to pass to new() looks exactly like this, no cap:

{ # ONVIF::Media::Types::AudioEncoderConfiguration
  Encoding => $some_value, # AudioEncoding
  Bitrate =>  $some_value, # int
  SampleRate =>  $some_value, # int
  Multicast =>  { # ONVIF::Media::Types::MulticastConfiguration
    Address =>  { # ONVIF::Media::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
},

Look at that nesting though 😭 Encoding, Bitrate, SampleRate, then Multicast doing a whole little nest with Address inside it going three levels deep (Type, IPv4Address, IPv6Address), plus Port, TTL, AutoStart, and then SessionTimeout closing us out on the top level. She's giving structure, she's giving hierarchy, and yes the comments in there are the literal type names β€” keep them, they're doing important work πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL πŸ’€ not a human author, just a code generator doing its thing and honestly? respect.


Reminder bestie: every field name, type name, namespace and code snippet above is literal β€” copy them character for character or the schema will simply not vibe with you πŸ™ˆ

And that's the whole page, mwah πŸ’‹ This one's from perl v5.40.1, dated 2026-02-01, filed under ONVIF:...uration(3pm) in the User Contributed Perl Documentation. Slay, go build your elements πŸ¦‹βœ¨

πŸ“¦ where this page comes from