Class DiscovererStreamInfo

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
DiscovererAudioInfo, DiscovererContainerInfo, DiscovererSubtitleInfo, DiscovererVideoInfo

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

Base structure for information concerning a media stream. Depending on the stream type, one can find more media-specific information in GstDiscovererAudioInfo, GstDiscovererVideoInfo, and GstDiscovererContainerInfo.

The GstDiscovererStreamInfo represents the topology of the stream. Siblings can be iterated over with gst_discoverer_stream_info_get_next() and gst_discoverer_stream_info_get_previous(). Children (sub-streams) of a stream can be accessed using the GstDiscovererContainerInfo API.

As a simple example, if you run GstDiscoverer on an AVI file with one audio and one video stream, you will get a GstDiscovererContainerInfo corresponding to the AVI container, which in turn will have a GstDiscovererAudioInfo sub-stream and a GstDiscovererVideoInfo sub-stream for the audio and video streams respectively.

  • Constructor Details

    • DiscovererStreamInfo

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

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

    • getType

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

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

      protected DiscovererStreamInfo 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
    • listFree

      public static void listFree(List<DiscovererStreamInfo> infos)
      Decrements the reference count of all contained GstDiscovererStreamInfo and fress the GList.
      Parameters:
      infos - a GList of GstDiscovererStreamInfo
    • getCaps

      public @Nullable Caps getCaps()
    • getMisc

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

      public @Nullable DiscovererStreamInfo getNext()
    • getPrevious

      public @Nullable DiscovererStreamInfo getPrevious()
    • getStreamId

      public @Nullable String getStreamId()
    • getStreamNumber

      public int getStreamNumber()
    • getStreamTypeNick

      public String getStreamTypeNick()
    • getTags

      public @Nullable TagList getTags()
    • getToc

      public @Nullable Toc getToc()
    • builder

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