WARNING: experimental option. This interface may change in the near future

Video/audio filter applied to a Stream. See applyFilter

Hierarchy

  • Filter

Properties

lastExecMethod?: {
    method: string;
    params: Object;
}

Value passed the last time execMethod was called. If undefined this method has not been called yet.

You can use this value to know the current status of any applied filter

Type declaration

  • method: string
  • params: Object
options: Object

Parameters used to initialize the filter. These correspond to the constructor parameters used in the filter in Kurento Media Server (except for mediaPipeline parameter, which is never needed).

For example: for filter.type = "GStreamerFilter" could be filter.options = {"command": "videobalance saturation=0.0"}

You can get this property in *.kmd.json files defining the Kurento filters. For example, for GStreamerFilter that's here

type: string

Type of filter applied. This is the name of the remote class identifying the filter to apply in Kurento Media Server. For example: "FaceOverlayFilter", "GStreamerFilter".

You can get this property in *.kmd.json files defining the Kurento filters. For example, for GStreamerFilter that's here

Methods

  • Subscribe to certain filter event. Available events are specific for each filter

    Returns

    A Promise (to which you can optionally subscribe to) that is resolved if the event listener was successfully attached to the filter and rejected with an Error object if not

    Parameters

    • eventType: string

      Event to which subscribe to.

    • handler: ((event: FilterEvent) => void)

      Function to execute upon event dispatched. It receives as parameter a FilterEvent object

    Returns Promise<void>

  • Executes a filter method. Available methods are specific for each filter

    Parameters

    • method: string

      Name of the method

    • params: Object

      Parameters of the method

    Returns Promise<void>

  • Removes certain filter event listener previously set.

    Returns

    A Promise (to which you can optionally subscribe to) that is resolved if the event listener was successfully removed from the filter and rejected with an Error object in other case

    Parameters

    • eventType: string

      Event to unsubscribe from.

    Returns Promise<void>

Generated using TypeDoc