Klasse Device

Alle implementierten Schnittstellen:
PointerInterface

public class Device extends PropertyHolder
#GstDevice are objects representing a device, they contain
relevant metadata about the device, such as its class and the #GstCaps
representing the media types it can produce or handle.

#GstDevice are created by #GstDeviceProvider objects which can be
aggregated by #GstDeviceMonitor objects.

https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html

  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • createElement

      public Element createElement(@Nullable Str name)
      Creates the element with all of the required parameters set to use
      this device.
      Parameter:
      name - name of new element, or %NULL to automatically create a unique name.
      Gibt zurück:
      a new #GstElement configured to use this device
    • createElement

      public Element createElement(String name)
      Creates the element with all of the required parameters set to use
      this device.
      Parameter:
      name - name of new element, or %NULL to automatically create a unique name.
      Gibt zurück:
      a new #GstElement configured to use this device
    • getCaps

      public Caps getCaps()
      Getter for the #GstCaps that this device supports.
      Gibt zurück:
      The #GstCaps supported by this device. Unref with gst_caps_unref() when done.
    • getDeviceClass

      public Str getDeviceClass()
      Gets the "class" of a device. This is a "/" separated list of
      classes that represent this device. They are a subset of the
      classes of the #GstDeviceProvider that produced this device.
      Gibt zurück:
      The device class. Free with g_free() after use.
    • getDisplayName

      public Str getDisplayName()
      Gets the user-friendly name of the device.
      Gibt zurück:
      The device name. Free with g_free() after use.
    • getProperties

      public Structure getProperties()
      Gets the extra properties of a device.
      Gibt zurück:
      The extra properties or %NULL when there are none. Free with gst_structure_free() after use.
    • hasClasses

      public boolean hasClasses(@Nonnull Str classes)
      Check if @device matches all of the given classes
      Parameter:
      classes - a "/"-separated list of device classes to match, only match if all classes are matched
      Gibt zurück:
      %TRUE if @device matches.
    • hasClasses

      public boolean hasClasses(String classes)
      Check if @device matches all of the given classes
      Parameter:
      classes - a "/"-separated list of device classes to match, only match if all classes are matched
      Gibt zurück:
      %TRUE if @device matches.
    • reconfigureElement

      public boolean reconfigureElement(@Nonnull Element element)
      Tries to reconfigure an existing element to use the device. If this
      function fails, then one must destroy the element and create a new one
      using gst_device_create_element().

      Note: This should only be implemented for elements can change their
      device in the PLAYING state.
      Parameter:
      element - a #GstElement
      Gibt zurück:
      %TRUE if the element could be reconfigured to use this device, %FALSE otherwise.
    • onRemoved

      public SignalHandler onRemoved(Device.OnRemoved signal)
      Connect to signal "removed".
      See Device.OnRemoved.onRemoved() for signal description.
      Field SIGNAL_ON_REMOVED contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()