Klasse DeviceProviderClass

Alle implementierten Schnittstellen:
PointerInterface

public class DeviceProviderClass extends Record
The structure of the base #GstDeviceProviderClass

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

  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getFieldFactory

      public DeviceProviderFactory getFieldFactory()
      a pointer to the #GstDeviceProviderFactory that creates this
      provider
    • setFieldProbe

      public void setFieldProbe(DeviceProviderClass.OnProbe probe)
      Returns a list of devices that are currently available.
      This should never block. The devices should not have a parent and should
      be floating.
      See DeviceProviderClass.OnProbe.onProbe(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gst.DeviceProvider)
    • getFieldProbe

      public ch.bailu.gtk.gst.JnaDeviceProviderClass.OnProbe getFieldProbe()
      Returns a list of devices that are currently available.
      This should never block. The devices should not have a parent and should
      be floating.
      See DeviceProviderClass.OnProbe.onProbe(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gst.DeviceProvider)
    • setFieldStart

      public void setFieldStart(DeviceProviderClass.OnStart start)
      Starts monitoring for new devices. Only subclasses that can know
      that devices have been added or remove need to implement this method.
      See DeviceProviderClass.OnStart.onStart(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gst.DeviceProvider)
    • getFieldStart

      public ch.bailu.gtk.gst.JnaDeviceProviderClass.OnStart getFieldStart()
      Starts monitoring for new devices. Only subclasses that can know
      that devices have been added or remove need to implement this method.
      See DeviceProviderClass.OnStart.onStart(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gst.DeviceProvider)
    • setFieldStop

      public void setFieldStop(DeviceProviderClass.OnStop stop)
      Stops monitoring for new devices. Only subclasses that implement
      the start() method need to implement this method.
      See DeviceProviderClass.OnStop.onStop(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gst.DeviceProvider)
    • getFieldStop

      public ch.bailu.gtk.gst.JnaDeviceProviderClass.OnStop getFieldStop()
      Stops monitoring for new devices. Only subclasses that implement
      the start() method need to implement this method.
      See DeviceProviderClass.OnStop.onStop(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gst.DeviceProvider)
    • getFieldMetadata

      public Pointer getFieldMetadata()
    • addMetadata

      public void addMetadata(@Nonnull Str key, @Nonnull Str value)
      Set @key with @value as metadata in @klass.
      Parameter:
      key - the key to set
      value - the value to set
    • addMetadata

      public void addMetadata(String key, String value)
      Set @key with @value as metadata in @klass.
      Parameter:
      key - the key to set
      value - the value to set
    • addStaticMetadata

      public void addStaticMetadata(@Nonnull Str key, @Nonnull Str value)
      Set @key with @value as metadata in @klass.

      Same as gst_device_provider_class_add_metadata(), but @value must be a static string
      or an inlined string, as it will not be copied. (GStreamer plugins will
      be made resident once loaded, so this function can be used even from
      dynamically loaded plugins.)
      Parameter:
      key - the key to set
      value - the value to set
    • addStaticMetadata

      public void addStaticMetadata(String key, String value)
      Set @key with @value as metadata in @klass.

      Same as gst_device_provider_class_add_metadata(), but @value must be a static string
      or an inlined string, as it will not be copied. (GStreamer plugins will
      be made resident once loaded, so this function can be used even from
      dynamically loaded plugins.)
      Parameter:
      key - the key to set
      value - the value to set
    • getMetadata

      public Str getMetadata(@Nonnull Str key)
      Get metadata with @key in @klass.
      Parameter:
      key - the key to get
      Gibt zurück:
      the metadata for @key.
    • getMetadata

      public Str getMetadata(String key)
      Get metadata with @key in @klass.
      Parameter:
      key - the key to get
      Gibt zurück:
      the metadata for @key.
    • setMetadata

      public void setMetadata(@Nonnull Str longname, @Nonnull Str classification, @Nonnull Str description, @Nonnull Str author)
      Sets the detailed information for a #GstDeviceProviderClass.

      > This function is for use in _class_init functions only.
      Parameter:
      longname - The long English name of the device provider. E.g. "File Sink"
      classification - String describing the type of device provider, as an unordered list separated with slashes ('/'). See draft-klass.txt of the design docs for more details and common types. E.g: "Sink/File"
      description - Sentence describing the purpose of the device provider. E.g: "Write stream to a file"
      author - Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>"
    • setMetadata

      public void setMetadata(String longname, String classification, String description, String author)
      Sets the detailed information for a #GstDeviceProviderClass.

      > This function is for use in _class_init functions only.
      Parameter:
      longname - The long English name of the device provider. E.g. "File Sink"
      classification - String describing the type of device provider, as an unordered list separated with slashes ('/'). See draft-klass.txt of the design docs for more details and common types. E.g: "Sink/File"
      description - Sentence describing the purpose of the device provider. E.g: "Write stream to a file"
      author - Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>"
    • setStaticMetadata

      public void setStaticMetadata(@Nonnull Str longname, @Nonnull Str classification, @Nonnull Str description, @Nonnull Str author)
      Sets the detailed information for a #GstDeviceProviderClass.

      > This function is for use in _class_init functions only.

      Same as gst_device_provider_class_set_metadata(), but @longname, @classification,
      @description, and @author must be static strings or inlined strings, as
      they will not be copied. (GStreamer plugins will be made resident once
      loaded, so this function can be used even from dynamically loaded plugins.)
      Parameter:
      longname - The long English name of the element. E.g. "File Sink"
      classification - String describing the type of element, as an unordered list separated with slashes ('/'). See draft-klass.txt of the design docs for more details and common types. E.g: "Sink/File"
      description - Sentence describing the purpose of the element. E.g: "Write stream to a file"
      author - Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>"
    • setStaticMetadata

      public void setStaticMetadata(String longname, String classification, String description, String author)
      Sets the detailed information for a #GstDeviceProviderClass.

      > This function is for use in _class_init functions only.

      Same as gst_device_provider_class_set_metadata(), but @longname, @classification,
      @description, and @author must be static strings or inlined strings, as
      they will not be copied. (GStreamer plugins will be made resident once
      loaded, so this function can be used even from dynamically loaded plugins.)
      Parameter:
      longname - The long English name of the element. E.g. "File Sink"
      classification - String describing the type of element, as an unordered list separated with slashes ('/'). See draft-klass.txt of the design docs for more details and common types. E.g: "Sink/File"
      description - Sentence describing the purpose of the element. E.g: "Write stream to a file"
      author - Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>"
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()