ONVIF::...uration(3)
π 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 anAudioEncodingvalue.Bitrateβ anint, ngl, pretty self-explanatory.SampleRateβ also anint, also living its truth. π΅Multicastβ now we're inONVIF::Device::Types::MulticastConfigurationterritory, and she has layers:Addressβ which is itself anONVIF::Device::Types::IPAddress, because why have one nested hash when you can have two π, and inside her:Typeβ anIPTypevalue.IPv4Addressβ anIPv4Addressvalue, obviously.IPv6Addressβ anIPv6Addressvalue. equality! π
Portβ anint.TTLβ aninttoo, we love consistency. βAutoStartβ aboolean, so like, true or false, pick your fighter. π
SessionTimeoutβ adurationvalue, 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
- nixpkgs unstable: zoneminder 1.38.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms