gst.stream_collection
Module for [StreamCollection] class
Types 3
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.StreamCollection.getStream]
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.
StreamCollection self()Returns `this`, for use in `with` statements.StreamCollectionGidBuilder builder()Get builder for [gst.stream_collection.StreamCollection] Returns: New builder objectbool addStream(gst.stream.Stream stream)Add the given stream to the collection.uint getSize()Get the number of streams this collection contains Returns: The number of streams that collection containsgst.stream.Stream getStream(uint index)Retrieve the #GstStream with index index from the collection.string getUpstreamId()Returns the upstream id of the collection. Returns: The upstream idgulong connectStreamNotify(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gst.stream.Stream)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gobject.param_spec.ParamSpec)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gst.stream_collection.StreamCollection)))
&& Parameters!T.length < 4)Connect to `StreamNotify` signal.T upstreamId(string propval)Set `upstreamId` property. Params: propval = stream-id Returns: Builder instance for fluent chainingFluent builder for [gst.stream_collection.StreamCollection]
StreamCollection build()