ONVIF::...uration(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, so this page is part of the User Contributed Perl Documentation set, and the star of the show is ONVIF::Media::Elements::SetVideoEncoderConfiguration β€” say that five times fast, i swear πŸ’…


✨ DESCRIPTION ✨

It's a Perl data type class, no cap. Specifically it's the class for the XML Schema defined element SetVideoEncoderConfiguration, and it lives in the namespace http://www.onvif.org/ver10/media/wsdl πŸ¦‹

that's it. that's the whole vibe. it's giving "small class, big purpose" energy πŸ‘‘


🌸 PROPERTIES 🌸

so you got two properties, and you touch them with get_PROPERTY / set_PROPERTY methods. iconic, honestly:

  • Configuration β€” the config itself, the main character of this whole situation 🫢
$element->set_Configuration($data);
$element->get_Configuration();
  • ForcePersistence β€” do you wanna force it to persist? yes or no bestie, pick one 😭
$element->set_ForcePersistence($data);
$element->get_ForcePersistence();

πŸ’– METHODS πŸ’–

🌈 new

constructor time!! literally just make the thing:

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

and here's the data structure you may pass to new() β€” i'm gonna need you to look at all of it, because it's a lot, and it's all important, and i refuse to skip a single line πŸ“

{
  Configuration =>  { # ONVIF::Media::Types::VideoEncoderConfiguration
    Encoding => $some_value, # VideoEncoding
    Resolution =>  { # ONVIF::Media::Types::VideoResolution
      Width =>  $some_value, # int
      Height =>  $some_value, # int
    },
    Quality =>  $some_value, # float
    RateControl =>  { # ONVIF::Media::Types::VideoRateControl
      FrameRateLimit =>  $some_value, # int
      EncodingInterval =>  $some_value, # int
      BitrateLimit =>  $some_value, # int
    },
    MPEG4 =>  { # ONVIF::Media::Types::Mpeg4Configuration
      GovLength =>  $some_value, # int
      Mpeg4Profile => $some_value, # Mpeg4Profile
    },
    H264 =>  { # ONVIF::Media::Types::H264Configuration
      GovLength =>  $some_value, # int
      H264Profile => $some_value, # H264Profile
    },
    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
  },
  ForcePersistence =>  $some_value, # boolean
},

like?? nested hashes for days 😭 but it slays, and every $some_value is literally exactly that β€” a placeholder for your actual value, don't come for me 🧚

πŸ’€ real talk: the structure above is what new() accepts. don't go inventing extra keys, bestie β€” this class only knows what's listed here.

πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL β€” that's the whole author section, and honestly? it's giving "the machine did the work and took the credit" energy πŸ”₯


okay that's the page!! this one shipped as part of perl v5.42.3, dated 1980-01-01 (yes really, that date is a whole mood πŸ™ˆ), and you were reading ONVIF::...uration(3) πŸ’œ go forth and configure those video encoders, bestie β€” you've got this βœ¨πŸŽ€

πŸ“¦ where this page comes from