Gst.Stream¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | Gst.Object (27), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(stream_id, caps, type, flags) | 
| get_caps() | |
| get_stream_flags() | |
| get_stream_id() | |
| get_stream_type() | |
| get_tags() | |
| set_caps(caps) | |
| set_stream_flags(flags) | |
| set_stream_type(stream_type) | |
| set_tags(tags) | 
Virtual Methods¶
| Inherited: | Gst.Object (1), GObject.Object (7) | 
|---|
Properties¶
| Inherited: | Gst.Object (2) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| caps | Gst.Caps | r/w | The caps of the stream | 
| stream-flags | Gst.StreamFlags | r/w/c | The stream flags | 
| stream-id | str | r/w/co | The stream ID of the stream | 
| stream-type | Gst.StreamType | r/w/c | The type of stream | 
| tags | Gst.TagList | r/w | The tags of the stream | 
Signals¶
| Inherited: | Gst.Object (1), GObject.Object (1) | 
|---|
Fields¶
| Inherited: | Gst.Object (1), GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| object | Gst.Object | r | |
| stream_id | str | r | The Stream Identifier for this Gst.Stream | 
Class Details¶
- 
class Gst.Stream(**kwargs)¶
- Bases: - Gst.Object- Abstract: - No - Structure: - Gst.StreamClass- A high-level object representing a single stream. It might be backed, or not, by an actual flow of data in a pipeline ( - Gst.Pad).- A - Gst.Streamdoes not care about data changes (such as decoding, encoding, parsing,…) as long as the underlying data flow corresponds to the same high-level flow (ex: a certain audio track).- A - Gst.Streamcontains all the information pertinent to a stream, such as stream-id, tags, caps, type, …- Elements can subclass a - Gst.Streamfor internal usage (to contain information pertinent to streams of data).- New in version 1.10. - 
classmethod new(stream_id, caps, type, flags)[source]¶
- Parameters: - stream_id (strorNone) – the id for the new stream. IfNone, a new one will be automatically generated
- caps (Gst.CapsorNone) – theGst.Capsof the stream
- type (Gst.StreamType) – theGst.StreamTypeof the stream
- flags (Gst.StreamFlags) – theGst.StreamFlagsof the stream
 - Returns: - The new - Gst.Stream- Return type: - Create a new - Gst.Streamfor the given stream_id, caps, type and flags- New in version 1.10. 
- stream_id (
 - 
get_caps()[source]¶
- Returns: - The - Gst.Capsfor self- Return type: - Gst.Capsor- None- Retrieve the caps for self, if any - New in version 1.10. 
 - 
get_stream_flags()[source]¶
- Returns: - The - Gst.StreamFlagsfor self- Return type: - Gst.StreamFlags- Retrieve the current stream flags for self - New in version 1.10. 
 - 
get_stream_id()[source]¶
- Returns: - the stream ID of self. Only valid during the lifetime of self. - Return type: - stror- None- Returns the stream ID of self. - New in version 1.10. 
 - 
get_stream_type()[source]¶
- Returns: - The - Gst.StreamTypefor self- Return type: - Gst.StreamType- Retrieve the stream type for self - New in version 1.10. 
 - Returns: - The - Gst.TagListfor self- Return type: - Gst.TagListor- None- Retrieve the tags for self, if any - New in version 1.10. 
 - 
set_caps(caps)[source]¶
- Parameters: - caps ( - Gst.Capsor- None) – a- Gst.Caps- Set the caps for the - Gst.Stream- New in version 1.10. 
 - 
set_stream_flags(flags)[source]¶
- Parameters: - flags ( - Gst.StreamFlags) – the flags to set on self- Set the flags for the self. - New in version 1.10. 
 - 
set_stream_type(stream_type)[source]¶
- Parameters: - stream_type ( - Gst.StreamType) – the type to set on self- Set the stream type of self - New in version 1.10. 
 - Parameters: - tags ( - Gst.TagListor- None) – a- Gst.TagList- Set the tags for the - Gst.Stream- New in version 1.10. 
 
- 
classmethod 
Property Details¶
- 
Gst.Stream.props.caps¶
- Name: - caps- Type: - Gst.Caps- Default Value: - None- Flags: - READABLE,- WRITABLE- The - Gst.Capsof the- Gst.Stream.
- 
Gst.Stream.props.stream_flags¶
- Name: - stream-flags- Type: - Gst.StreamFlags- Default Value: - Gst.StreamFlags.NONE- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The stream flags 
- 
Gst.Stream.props.stream_id¶
- Name: - stream-id- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The unique identifier of the - Gst.Stream. Can only be set at construction time.
- 
Gst.Stream.props.stream_type¶
- Name: - stream-type- Type: - Gst.StreamType- Default Value: - Gst.StreamType.UNKNOWN- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The - Gst.StreamTypeof the- Gst.Stream. Can only be set at construction time.
- Name: - tags- Type: - Gst.TagList- Default Value: - None- Flags: - READABLE,- WRITABLE- The - Gst.TagListof the- Gst.Stream.