Class Discoverer

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class Discoverer extends GObject

The GstDiscoverer is a utility object which allows to get as much information as possible from one or many URIs.

It provides two APIs, allowing usage in blocking or non-blocking mode.

The blocking mode just requires calling gst_discoverer_discover_uri() with the URI one wishes to discover.

The non-blocking mode requires a running GMainLoop iterating a GMainContext, where one connects to the various signals, appends the URIs to be processed (through gst_discoverer_discover_uri_async()) and then asks for the discovery to begin (through gst_discoverer_start()). By default this will use the GLib default main context unless you have set a custom context using g_main_context_push_thread_default().

All the information is returned in a GstDiscovererInfo structure.

  • Constructor Details

    • Discoverer

      public Discoverer(MemorySegment address)
      Create a Discoverer instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • Discoverer

      public Discoverer(ClockTime timeout) throws GErrorException
      Creates a new GstDiscoverer with the provided timeout.
      Parameters:
      timeout - timeout per file, in nanoseconds. Allowed are values between one second (GST_SECOND) and one hour (3600 * GST_SECOND)
      Throws:
      GErrorException - see GError
    • Discoverer

      public Discoverer()
      Create a new Discoverer.
  • Method Details