ElementFactory.make

Create a new element of the type defined by the given element factory. If name is NULL, then the element will receive a guaranteed unique name, consisting of the element factory name and a number. If name is given, it will be given the name supplied.

  1. Element make(string factoryname)
  2. Element make(string factoryname, string name)
    class ElementFactory
    static
    make
    (,
    string name
    )

Parameters

factoryname string

a named factory to instantiate

name string

name of new element, or NULL to automatically create a unique name

Return Value

Type: Element

new gstreamer.Element or NULL if unable to create element