Gst.StreamCollection¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | Gst.Object (27), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(upstream_id) | 
| add_stream(stream) | |
| get_size() | |
| get_stream(index) | |
| get_upstream_id() | 
Properties¶
| Inherited: | Gst.Object (2) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| upstream-id | str | r/w/c | The stream ID of the parent stream | 
Fields¶
| Inherited: | Gst.Object (1), GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| object | Gst.Object | r | |
| upstream_id | str | r | 
Class Details¶
- 
class Gst.StreamCollection(**kwargs)¶
- Bases: - Gst.Object- Abstract: - No - Structure: - Gst.StreamCollectionClass- 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 using- Gst.StreamCollection.get_stream()- Once posted, a - Gst.StreamCollectionis immutable. Updates are made by sending a new- Gst.StreamCollectionmessage, which may or may not share some of the- Gst.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 ( - stror- None) – The stream id of the parent stream- Returns: - The new - Gst.StreamCollection.- Return type: - Gst.StreamCollection- Create a new - Gst.StreamCollection.- New in version 1.10. 
 - 
add_stream(stream)[source]¶
- Parameters: - stream ( - Gst.Stream) – the- Gst.Streamto add- Returns: - Trueif the stream was properly added, else- False- Return type: - bool- 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: - int- 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: - A - Gst.Stream- Return type: - Gst.Streamor- None- Retrieve the - Gst.Streamwith index index from the collection.- The caller should not modify the returned - Gst.Stream- New in version 1.10. 
 - 
get_upstream_id()[source]¶
- Returns: - The upstream id - Return type: - stror- None- Returns the upstream id of the self. - New in version 1.10. 
 - 
do_stream_notify(stream, pspec) virtual¶
- Parameters: - stream (Gst.Stream) –
- pspec (GObject.ParamSpec) –
 
- stream (
 
- 
classmethod 
Signal Details¶
- 
Gst.StreamCollection.signals.stream_notify(stream_collection, object, p0)¶
- Signal Name: - stream-notify- Flags: - Parameters: - stream_collection (Gst.StreamCollection) – The object which received the signal
- object (Gst.Stream) –
- p0 (GObject.ParamSpec) –
 
- stream_collection (