Gst.Stream¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The caps of the stream |
||
r/w/c |
The stream flags |
||
r/w/co |
The stream ID of the stream |
||
r/w/c |
The type of stream |
||
r/w |
The tags of the stream |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
||
stream_id |
r |
The Stream Identifier for this |
Class Details¶
- class Gst.Stream(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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.Stream
does 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.Stream
contains all the information pertinent to a stream, such as stream-id, tags, caps, type, …Elements can subclass a
Gst.Stream
for 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 (
str
orNone
) – the id for the new stream. IfNone
, a new one will be automatically generatedtype (
Gst.StreamType
) – theGst.StreamType
of the streamflags (
Gst.StreamFlags
) – theGst.StreamFlags
of the stream
- Returns:
The new
Gst.Stream
- Return type:
Create a new
Gst.Stream
for the given stream_id, caps, type and flagsNew in version 1.10.
- get_stream_flags()[source]¶
- Returns:
The
Gst.StreamFlags
for self- Return type:
Retrieve the current stream flags for self
New in version 1.10.
- get_stream_type()[source]¶
- Returns:
The
Gst.StreamType
for self- Return type:
Retrieve the stream type for self
New in version 1.10.
- get_tags()[source]¶
- Returns:
The
Gst.TagList
for self- Return type:
Gst.TagList
orNone
Retrieve the tags for self, if any
New in version 1.10.
- set_caps(caps)[source]¶
-
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.
- set_tags(tags)[source]¶
- Parameters:
tags (
Gst.TagList
orNone
) – aGst.TagList
Set the tags for the
Gst.Stream
New in version 1.10.
Property Details¶
- Gst.Stream.props.caps¶
-
The
Gst.Caps
of theGst.Stream
.
- Gst.Stream.props.stream_flags¶
- Name:
stream-flags
- Type:
- Default Value:
- Flags:
The stream flags
- Gst.Stream.props.stream_id¶
- Name:
stream-id
- Type:
- Default Value:
- Flags:
The unique identifier of the
Gst.Stream
. Can only be set at construction time.
- Gst.Stream.props.stream_type¶
- Name:
stream-type
- Type:
- Default Value:
- Flags:
The
Gst.StreamType
of theGst.Stream
. Can only be set at construction time.
- Gst.Stream.props.tags¶
- Name:
tags
- Type:
- Default Value:
- Flags:
The
Gst.TagList
of theGst.Stream
.