Gst.Bin.prototype.get_by_interface
function get_by_interface(iface:GType):Gst.Element { // Gjs wrapper for gst_bin_get_by_interface() }
Looks for an element inside the bin that implements the given interface. If such an element is found, it returns the element. You can cast this element to the given interface afterwards. If you want all elements that implement the interface, use Gst.iterate_all_by_interface. This function recurses into child bins.
MT safe. Caller owns returned reference.
- iface
the GLib.Type of an interface
- Returns
A Gst.Element inside the bin implementing the interface