Gst.StreamCollection¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The stream ID of the parent stream |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The stream notify signal is used to be notified of property changes to streams within the collection. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
||
upstream_id |
r |
Class Details¶
- class Gst.StreamCollection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A collection of
Gst.Stream
that are available.A
Gst.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 usingGst.StreamCollection.get_stream
()Once posted, a
Gst.StreamCollection
is immutable. Updates are made by sending a newGst.StreamCollection
message, which may or may not share some of theGst.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
Gst.StreamCollection
.Applications can activate streams from a collection by using the
Gst.EventType.SELECT_STREAMS
event on a pipeline, bin or element.New in version 1.10.
- classmethod new(upstream_id)[source]¶
- Parameters:
upstream_id (
str
orNone
) – The stream id of the parent stream- Returns:
The new
Gst.StreamCollection
.- Return type:
Create a new
Gst.StreamCollection
.New in version 1.10.
- add_stream(stream)[source]¶
- Parameters:
stream (
Gst.Stream
) – theGst.Stream
to add- Returns:
- Return type:
Add the given stream to the self.
New in version 1.10.
- get_size()[source]¶
- Returns:
The number of streams that self contains
- Return type:
Get the number of streams this collection contains
New in version 1.10.
- get_stream(index)[source]¶
- Parameters:
index (
int
) – Index of the stream to retrieve- Returns:
- Return type:
Gst.Stream
orNone
Retrieve the
Gst.Stream
with index index from the collection.The caller should not modify the returned
Gst.Stream
New in version 1.10.
- do_stream_notify(stream, pspec) virtual¶
- Parameters:
stream (
Gst.Stream
) –pspec (
GObject.ParamSpec
) –
default signal handler for the stream-notify signal
Signal Details¶
- Gst.StreamCollection.signals.stream_notify(stream_collection, prop_stream, prop)¶
- Signal Name:
stream-notify
- Flags:
- Parameters:
stream_collection (
Gst.StreamCollection
) – The object which received the signalprop_stream (
Gst.Stream
) – theGst.Stream
that originated the signalprop (
GObject.ParamSpec
) – the property that changed
The stream notify signal is used to be notified of property changes to streams within the collection.