Class PublisherKit.VideoTransformer

  • Enclosing class:
    PublisherKit

    public class PublisherKit.VideoTransformer
    extends java.lang.Object
    A transformer for a video stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()
      Called by the garbage collector when it determines that there are no more references to the VideoTransformer object.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VideoTransformer

        public VideoTransformer​(java.lang.String name,
                                java.lang.String properties)
        Creates an instance of a Vonage video transformer.
        Parameters:
        name - The name of the Vonage video transformer. Currently, supported transformers are "BackgroundBlur" and "BackgroundReplacement".
        properties - A JSON string with the properties of the Vonage video transformer. For a background blur transformer, the format of the JSON is "{\"radius\":\"None\"}". Valid values for the radius property are None", "High", and "Low". For a custom background blur transformer, the format of the JSON is "{\"radius\":\"Custom\",\"custom_radius\":\"value\"}", where custom_radius can be any positive integer. For a background replacement transformer, the format of the JSON is "{\"image_file_path\":\"path/to/image\"}", where image_file_path is the absolute file path of a local image to use as virtual background. Supported image formats are PNG and JPEG.
      • VideoTransformer

        public VideoTransformer​(java.lang.String name,
                                PublisherKit.CustomVideoTransformer transformer)
        Creates an instance of a custom video transformer.
        Parameters:
        name - The identifier for the transformer.
        transformer - The video transformation.
    • Method Detail

      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Called by the garbage collector when it determines that there are no more references to the VideoTransformer object.
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable