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.Streamthat are available.A
Gst.StreamCollectionwill 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.StreamCollectionis immutable. Updates are made by sending a newGst.StreamCollectionmessage, which may or may not share some of theGst.Streamobjects 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_STREAMSevent on a pipeline, bin or element.New in version 1.10.
- classmethod new(upstream_id)[source]¶
- Parameters:
upstream_id (
strorNone) – 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.Streamto 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.StreamorNone
Retrieve the
Gst.Streamwith index index from the collection.The caller should not modify the returned
Gst.StreamNew 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.Streamthat 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.