StreamCollection#
Added in version 1.10.
Superclasses: Object, InitiallyUnowned, Object
A collection of Stream that are available.
A StreamCollection 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 %:func:get_stream
Once posted, a StreamCollection is immutable. Updates are made by sending
a new StreamCollection message, which may or may not share some of
the Stream 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 StreamCollection.
Applications can activate streams from a collection by using the
GST_EVENT_SELECT_STREAMS event on a pipeline, bin or element.
Constructors#
- class StreamCollection
 - classmethod new(upstream_id: str | None = None) StreamCollection#
 Create a new
StreamCollection.Added in version 1.10.
- Parameters:
 upstream_id – The stream id of the parent stream
Methods#
- class StreamCollection
 - add_stream(stream: Stream) bool#
 Add the given
streamto thecollection.Added in version 1.10.
- Parameters:
 stream – the
Streamto add