Klasse StreamCollection

Alle implementierten Schnittstellen:
PointerInterface

public class StreamCollection extends PropertyHolder
A collection of #GstStream that are available.

A #GstStreamCollection will be provided by elements that can make those
streams available. Applications can use the collection to show the user
what streams are available by using %gst_stream_collection_get_stream()

Once posted, a #GstStreamCollection is immutable. Updates are made by sending
a new #GstStreamCollection message, which may or may not share some of
the #GstStream objects from the collection it replaces. The receiver can check
the sender of a stream collection message to know which collection is
obsoleted.

Several elements in a pipeline can provide #GstStreamCollection.

Applications can activate streams from a collection by using the
#GST_EVENT_SELECT_STREAMS event on a pipeline, bin or element.

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

  • Felddetails

  • Konstruktordetails

    • StreamCollection

      public StreamCollection(PointerContainer pointer)
    • StreamCollection

      public StreamCollection(@Nullable Str upstream_id)
      Create a new #GstStreamCollection.
      Parameter:
      upstream_id - The stream id of the parent stream
    • StreamCollection

      public StreamCollection(String upstream_id)
      Create a new #GstStreamCollection.
      Parameter:
      upstream_id - The stream id of the parent stream
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • addStream

      public boolean addStream(@Nonnull Stream stream)
      Add the given @stream to the @collection.
      Parameter:
      stream - the #GstStream to add
      Gibt zurück:
      %TRUE if the @stream was properly added, else %FALSE
    • getSize

      public int getSize()
      Get the number of streams this collection contains
      Gibt zurück:
      The number of streams that @collection contains
    • getStream

      public Stream getStream(int index)
      Retrieve the #GstStream with index @index from the collection.

      The caller should not modify the returned #GstStream
      Parameter:
      index - Index of the stream to retrieve
      Gibt zurück:
      A #GstStream
    • getUpstreamId

      public Str getUpstreamId()
      Returns the upstream id of the @collection.
      Gibt zurück:
      The upstream id
    • onStreamNotify

      public SignalHandler onStreamNotify(StreamCollection.OnStreamNotify signal)
      Connect to signal "stream-notify".
      See StreamCollection.OnStreamNotify.onStreamNotify(ch.bailu.gtk.gst.Stream, ch.bailu.gtk.gobject.ParamSpec) for signal description.
      Field SIGNAL_ON_STREAM_NOTIFY 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()