Class DiscovererInfo

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DiscovererInfo extends GObject
Structure containing the information of a URI analyzed by GstDiscoverer.
  • Constructor Details

    • DiscovererInfo

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

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

    • getType

      public static @Nullable Type getType()
      Get the GType of the DiscovererInfo class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected DiscovererInfo asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • fromVariant

      public static DiscovererInfo fromVariant(Variant variant)
      Parses a GVariant as produced by gst_discoverer_info_to_variant() back to a GstDiscovererInfo.
      Parameters:
      variant - A GVariant to deserialize into a GstDiscovererInfo.
      Returns:
      A newly-allocated GstDiscovererInfo.
      Since:
      1.6
    • copy

      public DiscovererInfo copy()
    • getAudioStreams

      public List<DiscovererAudioInfo> getAudioStreams()
      Finds all the GstDiscovererAudioInfo contained in this DiscovererInfo
      Returns:
      A GList of matching GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free().
    • getContainerStreams

      public List<DiscovererContainerInfo> getContainerStreams()
      Finds all the GstDiscovererContainerInfo contained in this DiscovererInfo
      Returns:
      A GList of matching GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free().
    • getDuration

      public ClockTime getDuration()
    • getLive

      public boolean getLive()
    • getMisc

      @Deprecated public @Nullable Structure getMisc()
      Deprecated.
    • getMissingElementsInstallerDetails

      public String[] getMissingElementsInstallerDetails()
      Get the installer details for missing elements
      Returns:
      An array of strings containing information about how to install the various missing elements for this DiscovererInfo to be usable. If you wish to use the strings after the life-time of info, you will need to copy them.
      Since:
      1.4
    • getResult

      public DiscovererResult getResult()
    • getSeekable

      public boolean getSeekable()
    • getStreamInfo

      public @Nullable DiscovererStreamInfo getStreamInfo()
    • getStreamList

      public List<DiscovererStreamInfo> getStreamList()
    • getStreams

      public List<DiscovererStreamInfo> getStreams(Type streamtype)
      Finds the GstDiscovererStreamInfo contained in this DiscovererInfo that match the given streamtype.
      Parameters:
      streamtype - a GType derived from GstDiscovererStreamInfo
      Returns:
      A GList of matching GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free().
    • getSubtitleStreams

      public List<DiscovererSubtitleInfo> getSubtitleStreams()
      Finds all the GstDiscovererSubtitleInfo contained in this DiscovererInfo
      Returns:
      A GList of matching GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free().
    • getTags

      @Deprecated public @Nullable TagList getTags()
      Deprecated.
    • getToc

      public @Nullable Toc getToc()
    • getUri

      public String getUri()
    • getVideoStreams

      public List<DiscovererVideoInfo> getVideoStreams()
      Finds all the GstDiscovererVideoInfo contained in this DiscovererInfo
      Returns:
      A GList of matching GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free().
    • toVariant

      public Variant toVariant(Set<DiscovererSerializeFlags> flags)

      Serializes this DiscovererInfo to a GVariant that can be parsed again through gst_discoverer_info_from_variant().

      Note that any GstToc (s) that might have been discovered will not be serialized for now.

      Parameters:
      flags - A combination of GstDiscovererSerializeFlags to specify what needs to be serialized.
      Returns:
      A newly-allocated GVariant representing info.
      Since:
      1.6
    • toVariant

      public Variant toVariant(DiscovererSerializeFlags... flags)

      Serializes this DiscovererInfo to a GVariant that can be parsed again through gst_discoverer_info_from_variant().

      Note that any GstToc (s) that might have been discovered will not be serialized for now.

      Parameters:
      flags - A combination of GstDiscovererSerializeFlags to specify what needs to be serialized.
      Returns:
      A newly-allocated GVariant representing info.
      Since:
      1.6
    • builder

      public static DiscovererInfo.Builder<? extends DiscovererInfo.Builder> builder()
      A DiscovererInfo.Builder object constructs a DiscovererInfo with the specified properties. Use the various set...() methods to set properties, and finish construction with DiscovererInfo.Builder.build().
      Returns:
      the builder object