Interface GStreamerFilter

All Superinterfaces:
Filter, KurentoObject, MediaElement, MediaObject

public interface GStreamerFilter extends Filter
A generic filter that allows injecting a single GStreamer element.

The current implementation of GStreamerFilter only allows single elements to be injected; one cannot indicate more than one at the same time; use several GStreamerFilters if you need to inject more than one element into the pipeline.

Note that usage of some popular GStreamer elements requires installation of additional packages. For example, overlay elements such as timeoverlay or textoverlay require installation of the gstreamer1.0-x package, which will also install the Pango rendering library.

  • Method Details

    • getCommand

      String getCommand()
      Get String used to instantiate the GStreamer element, as in gst-launch (https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html).
    • getCommand

      void getCommand(Continuation<String> cont)
      Get String used to instantiate the GStreamer element, as in gst-launch (https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html).
    • getCommand

      TFuture<String> getCommand(Transaction tx)
      Get String used to instantiate the GStreamer element, as in gst-launch (https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html).
    • setElementProperty

      void setElementProperty(String propertyName, String propertyValue)
      Provide a value to one of the GStreamer element's properties.
      Parameters:
      propertyName - Name of the property that needs to be modified in the GStreamer element.
      propertyValue - Value that must be assigned to the property.
    • setElementProperty

      void setElementProperty(String propertyName, String propertyValue, Continuation<Void> cont)
      Asynchronous version of setElementProperty: Continuation.onSuccess(F) is called when the action is done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.
      Parameters:
      propertyName - Name of the property that needs to be modified in the GStreamer element.
      propertyValue - Value that must be assigned to the property.
      See Also:
    • setElementProperty

      void setElementProperty(Transaction tx, String propertyName, String propertyValue)
      Provide a value to one of the GStreamer element's properties.
      Parameters:
      propertyName - Name of the property that needs to be modified in the GStreamer element.
      propertyValue - Value that must be assigned to the property.