Package com.opentok.android
Class PublisherKit.VideoTransformer
- java.lang.Object
-
- com.opentok.android.PublisherKit.VideoTransformer
-
- Enclosing class:
- PublisherKit
public class PublisherKit.VideoTransformer extends java.lang.Object
A transformer for a video stream.
-
-
Constructor Summary
Constructors Constructor Description VideoTransformer(java.lang.String name, PublisherKit.CustomVideoTransformer transformer)
Creates an instance of a custom video transformer.VideoTransformer(java.lang.String name, java.lang.String properties)
Creates an instance of a Vonage video transformer.
-
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.
-
-
-
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 theradius
property a None", "High", and "Low". For a custom background blur transformer, the format of the JSON is "{\"radius\":\"Custom\",\"custom_radius\":\"value\"}", wherecustom_radius
can be any positive integer. For a background replacement transformer, the format of the JSON is "{\"image_file_path\":\"path/to/image\"}", whereimage_file_path
is the absolute file path of a local image to use as virtual background. Supported image formats are PNG and JPEG. This is a beta feature.
-
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.
-
-